+ // enable==false: disables the control
+ // enable==true: enables the control IF it should be enabled
+ bool EnableSelfAndChildren(bool enable);
+ // actually enable/disable the cocoa control, overridden by subclasses
+ virtual void CocoaSetEnabled(bool enable) { }
+ // Reflects the state for THIS window (ignoring disables by parents)
+ bool m_shouldBeEnabled;
+
+ void CocoaCreateNSScrollView();
+ void InitMouseEvent(wxMouseEvent &event, WX_NSEvent cocoaEvent);
+ virtual wxWindow* GetWxWindow() const;
+ virtual void Cocoa_FrameChanged(void);
+ virtual bool Cocoa_drawRect(const NSRect &rect);
+ virtual bool Cocoa_mouseDown(WX_NSEvent theEvent);
+ virtual bool Cocoa_mouseDragged(WX_NSEvent theEvent);
+ virtual bool Cocoa_mouseUp(WX_NSEvent theEvent);
+ virtual bool Cocoa_mouseMoved(WX_NSEvent theEvent);
+ virtual bool Cocoa_mouseEntered(WX_NSEvent theEvent);
+ virtual bool Cocoa_mouseExited(WX_NSEvent theEvent);
+ virtual bool Cocoa_rightMouseDown(WX_NSEvent theEvent);
+ virtual bool Cocoa_rightMouseDragged(WX_NSEvent theEvent);
+ virtual bool Cocoa_rightMouseUp(WX_NSEvent theEvent);
+ virtual bool Cocoa_otherMouseDown(WX_NSEvent theEvent);
+ virtual bool Cocoa_otherMouseDragged(WX_NSEvent theEvent);
+ virtual bool Cocoa_otherMouseUp(WX_NSEvent theEvent);
+ virtual bool Cocoa_resetCursorRects();