]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/cocoa/NSView.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/NSView.h
3 // Purpose: wxCocoaNSView class
4 // Author: David Elliott
8 // Copyright: (c) 2003 David Elliott
9 // Licence: wxWindows license
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef __WX_COCOA_NSVIEW_H__
13 #define __WX_COCOA_NSVIEW_H__
15 #include "wx/hashmap.h"
16 #include "wx/cocoa/ObjcPose.h"
18 typedef struct _NSRect NSRect
;
20 WX_DECLARE_OBJC_HASHMAP(NSView
);
23 /* NSView is a rather special case and requires some extra attention */
24 WX_DECLARE_OBJC_INTERFACE_HASHMAP(NSView
)
26 void AssociateNSView(WX_NSView cocoaNSView
);
27 void DisassociateNSView(WX_NSView cocoaNSView
);
29 static void *sm_cocoaObserver
;
31 virtual void Cocoa_FrameChanged(void) = 0;
32 virtual bool Cocoa_drawRect(const NSRect
&rect
) = 0;
35 #endif // _WX_COCOA_NSVIEW_H_