PageRenderTime 21ms CodeModel.GetById 14ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/platform/osx/objc/OSXView.h

http://github.com/wilkie/djehuty
C Header | 35 lines | 19 code | 13 blank | 3 comment | 0 complexity | 7795592df84b0b01491504021071fdb4 MD5 | raw file
 1#ifndef _OSXVIEW_INC
 2#define _OSXVIEW_INC
 3
 4#include <Cocoa/Cocoa.h>
 5#include <Foundation/Foundation.h>
 6
 7#include "OSXWindow.h"
 8
 9@class _OSXView;
10
11struct _OSXViewPlatformVars
12{
13	//contains the stuff for drawing text
14	//font colors and attributes and font description
15	NSMutableDictionary* cur_font;
16
17	NSLayoutManager* layout;
18
19	NSTextContainer* container;
20
21	NSTextStorage* txtstore;
22
23	_OSXView* viewRef;
24
25	NSRect nsRect;
26	CGContextRef cgContext;
27
28	// Buffers:
29
30	NSBitmapImageRep* dib_image_rep;
31
32	NSImage* dib_image;
33};
34
35#endif // _OSXVIEW_INC