X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fb896a322a2ed53d393ee738765ddd3f72cee004..75d3838010e2d8a9592a4a016e2994f4f0d3070b:/include/wx/cocoa/window.h diff --git a/include/wx/cocoa/window.h b/include/wx/cocoa/window.h index b0542e1bfa..94cf3e1a85 100644 --- a/include/wx/cocoa/window.h +++ b/include/wx/cocoa/window.h @@ -53,11 +53,26 @@ public: inline WX_NSView GetNSView() { return m_cocoaNSView; } void CocoaAddChild(wxWindowCocoa *child); void CocoaRemoveFromParent(void); - virtual void Cocoa_FrameChanged(void); protected: + void InitMouseEvent(wxMouseEvent &event, WX_NSEvent cocoaEvent); + 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); void SetNSView(WX_NSView cocoaNSView); WX_NSView m_cocoaNSView; WX_NSView m_dummyNSView; + bool m_isInPaint; // ------------------------------------------------------------------------ // Implementation // ------------------------------------------------------------------------