]>
Commit | Line | Data |
---|---|---|
fb896a32 DE |
1 | /////////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/cocoa/NSView.h | |
3 | // Purpose: wxCocoaNSView class | |
4 | // Author: David Elliott | |
5 | // Modified by: | |
6 | // Created: 2003/02/15 | |
7 | // RCS-ID: $Id: | |
8 | // Copyright: (c) 2003 David Elliott | |
65571936 | 9 | // Licence: wxWindows licence |
fb896a32 DE |
10 | /////////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef __WX_COCOA_NSVIEW_H__ | |
13 | #define __WX_COCOA_NSVIEW_H__ | |
14 | ||
15 | #include "wx/hashmap.h" | |
e6686511 | 16 | #include "wx/cocoa/ObjcAssociate.h" |
fb896a32 | 17 | |
8ea5271e | 18 | typedef struct _NSRect NSRect; |
f7e98dee | 19 | class wxWindow; |
8ea5271e | 20 | |
fb896a32 DE |
21 | WX_DECLARE_OBJC_HASHMAP(NSView); |
22 | class wxCocoaNSView | |
23 | { | |
24 | /* NSView is a rather special case and requires some extra attention */ | |
25 | WX_DECLARE_OBJC_INTERFACE_HASHMAP(NSView) | |
26 | public: | |
27 | void AssociateNSView(WX_NSView cocoaNSView); | |
28 | void DisassociateNSView(WX_NSView cocoaNSView); | |
29 | protected: | |
30 | static void *sm_cocoaObserver; | |
31 | public: | |
f7e98dee RN |
32 | virtual wxWindow* GetWxWindow() const |
33 | { return NULL; } | |
fb896a32 | 34 | virtual void Cocoa_FrameChanged(void) = 0; |
c05e07cb DE |
35 | virtual bool Cocoa_acceptsFirstMouse(bool &acceptsFirstMouse, WX_NSEvent theEvent) |
36 | { return false; } | |
2d6c4e48 DE |
37 | virtual bool Cocoa_drawRect(const NSRect &rect) |
38 | { return false; } | |
39 | virtual bool Cocoa_mouseDown(WX_NSEvent theEvent) | |
40 | { return false; } | |
41 | virtual bool Cocoa_mouseDragged(WX_NSEvent theEvent) | |
42 | { return false; } | |
43 | virtual bool Cocoa_mouseUp(WX_NSEvent theEvent) | |
44 | { return false; } | |
45 | virtual bool Cocoa_mouseMoved(WX_NSEvent theEvent) | |
46 | { return false; } | |
47 | virtual bool Cocoa_mouseEntered(WX_NSEvent theEvent) | |
48 | { return false; } | |
49 | virtual bool Cocoa_mouseExited(WX_NSEvent theEvent) | |
50 | { return false; } | |
51 | virtual bool Cocoa_rightMouseDown(WX_NSEvent theEvent) | |
52 | { return false; } | |
53 | virtual bool Cocoa_rightMouseDragged(WX_NSEvent theEvent) | |
54 | { return false; } | |
55 | virtual bool Cocoa_rightMouseUp(WX_NSEvent theEvent) | |
56 | { return false; } | |
57 | virtual bool Cocoa_otherMouseDown(WX_NSEvent theEvent) | |
58 | { return false; } | |
59 | virtual bool Cocoa_otherMouseDragged(WX_NSEvent theEvent) | |
60 | { return false; } | |
61 | virtual bool Cocoa_otherMouseUp(WX_NSEvent theEvent) | |
62 | { return false; } | |
5558135c RN |
63 | virtual bool Cocoa_resetCursorRects() |
64 | { return false; } | |
fb896a32 DE |
65 | }; |
66 | ||
67 | #endif // _WX_COCOA_NSVIEW_H_ |