/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. #include <Cocoa/Cocoa.h>
  4. #include <Foundation/Foundation.h>
  5. #include "OSXWindow.h"
  6. @class _OSXView;
  7. struct _OSXViewPlatformVars
  8. {
  9. //contains the stuff for drawing text
  10. //font colors and attributes and font description
  11. NSMutableDictionary* cur_font;
  12. NSLayoutManager* layout;
  13. NSTextContainer* container;
  14. NSTextStorage* txtstore;
  15. _OSXView* viewRef;
  16. NSRect nsRect;
  17. CGContextRef cgContext;
  18. // Buffers:
  19. NSBitmapImageRep* dib_image_rep;
  20. NSImage* dib_image;
  21. };
  22. #endif // _OSXVIEW_INC