]>
Commit | Line | Data |
---|---|---|
ad3628fa DE |
1 | /////////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/cocoa/objc/NSView.h | |
829a2e95 | 3 | // Purpose: WXNSView class |
ad3628fa DE |
4 | // Author: David Elliott |
5 | // Modified by: | |
6 | // Created: 2007/04/20 (move from NSView.mm) | |
ad3628fa DE |
7 | // Copyright: (c) 2003 David Elliott |
8 | // Licence: wxWindows licence | |
9 | /////////////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | #ifndef __WX_COCOA_OBJC_NSVIEW_H__ | |
12 | #define __WX_COCOA_OBJC_NSVIEW_H__ | |
13 | ||
a24aa427 DE |
14 | #include "wx/cocoa/objc/objc_uniquifying.h" |
15 | ||
ad3628fa DE |
16 | #import <AppKit/NSView.h> |
17 | ||
18 | // ============================================================================ | |
829a2e95 | 19 | // @class WXNSView |
ad3628fa | 20 | // ============================================================================ |
829a2e95 | 21 | @interface WXNSView : NSView |
ad3628fa DE |
22 | { |
23 | } | |
24 | ||
25 | - (void)drawRect: (NSRect)rect; | |
26 | - (void)mouseDown:(NSEvent *)theEvent; | |
27 | - (void)mouseDragged:(NSEvent *)theEvent; | |
28 | - (void)mouseUp:(NSEvent *)theEvent; | |
29 | - (void)mouseMoved:(NSEvent *)theEvent; | |
30 | - (void)mouseEntered:(NSEvent *)theEvent; | |
31 | - (void)mouseExited:(NSEvent *)theEvent; | |
32 | - (void)rightMouseDown:(NSEvent *)theEvent; | |
33 | - (void)rightMouseDragged:(NSEvent *)theEvent; | |
34 | - (void)rightMouseUp:(NSEvent *)theEvent; | |
35 | - (void)otherMouseDown:(NSEvent *)theEvent; | |
36 | - (void)otherMouseDragged:(NSEvent *)theEvent; | |
37 | - (void)otherMouseUp:(NSEvent *)theEvent; | |
38 | - (void)resetCursorRects; | |
7c5a378f DE |
39 | - (void)viewDidMoveToWindow; |
40 | - (void)viewWillMoveToWindow:(NSWindow *)newWindow; | |
829a2e95 | 41 | @end // WXNSView |
a24aa427 | 42 | WX_DECLARE_GET_OBJC_CLASS(WXNSView,NSView) |
ad3628fa DE |
43 | |
44 | #endif //ndef __WX_COCOA_OBJC_NSVIEW_H__ |