- 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);
+ ~wxWindowDC(void);
+
+ // NSView specific functions
+ virtual void Clear();
+protected:
+ wxWindow *m_window;
+ WX_NSView m_lockedNSView;
+// DC stack
+ virtual bool CocoaLockFocus();
+ virtual bool CocoaUnlockFocus();
+ bool CocoaLockFocusOnNSView(WX_NSView nsview);
+ bool CocoaUnlockFocusOnNSView();