- DECLARE_DYNAMIC_CLASS(wxWindowDC)
-
- public:
- wxWindowDC(void);
-
- // Create a DC corresponding to a canvas
- wxWindowDC(wxWindow *win);
-
- ~wxWindowDC(void);
+ DECLARE_DYNAMIC_CLASS(wxWindowDC)
+public:
+ wxWindowDC(void);
+ // Create a DC corresponding to a window
+ wxWindowDC(wxWindow *win);
+ virtual ~wxWindowDC(void);
+
+protected:
+ wxWindow *m_window;
+ WX_NSView m_lockedNSView;
+// DC stack
+ virtual bool CocoaLockFocus();
+ virtual bool CocoaUnlockFocus();
+ bool CocoaLockFocusOnNSView(WX_NSView nsview);
+ bool CocoaUnlockFocusOnNSView();
+ virtual bool CocoaGetBounds(void *rectData);