]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/cocoa/objc/NSView.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/objc/NSView.h
3 // Purpose: WXNSView class
4 // Author: David Elliott
6 // Created: 2007/04/20 (move from NSView.mm)
7 // Copyright: (c) 2003 David Elliott
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef __WX_COCOA_OBJC_NSVIEW_H__
12 #define __WX_COCOA_OBJC_NSVIEW_H__
14 #include "wx/cocoa/objc/objc_uniquifying.h"
16 #import <AppKit/NSView.h>
18 // ============================================================================
20 // ============================================================================
21 @interface WXNSView
: NSView
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
;
39 - (void)viewDidMoveToWindow
;
40 - (void)viewWillMoveToWindow
:(NSWindow
*)newWindow
;
42 WX_DECLARE_GET_OBJC_CLASS(WXNSView
,NSView
)
44 #endif //ndef __WX_COCOA_OBJC_NSVIEW_H__