X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/adb4816c3eb825108e8e94ef523a5da666111430..6181cef53222dc7f04e0e52fc4a2d399709a076e:/include/wx/cocoa/window.h?ds=inline diff --git a/include/wx/cocoa/window.h b/include/wx/cocoa/window.h index cbfc40a11b..d9d55e3218 100644 --- a/include/wx/cocoa/window.h +++ b/include/wx/cocoa/window.h @@ -65,6 +65,9 @@ public: WX_NSView GetNSViewForSuperview() const; // Returns the NSView that may be hidden/is being hidden WX_NSView GetNSViewForHiding() const; + // Returns the NSView for non-client drawing + virtual WX_NSView GetNonClientNSView() { return GetNSViewForSuperview(); } + // Add/remove children void CocoaAddChild(wxWindowCocoa *child); void CocoaRemoveFromParent(void); protected: @@ -78,6 +81,7 @@ protected: 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); @@ -92,6 +96,7 @@ protected: 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(); void SetNSView(WX_NSView cocoaNSView); WX_NSView m_cocoaNSView; wxWindowCocoaHider *m_cocoaHider; @@ -157,6 +162,8 @@ public: // Get/set client (application-useable) size virtual void DoGetClientSize(int *width, int *height) const; virtual void DoSetClientSize(int width, int size); + // Set this window's tooltip + virtual void DoSetToolTip( wxToolTip *tip ); // Set the size of the wxWindow (the contentView of an NSWindow) // wxTopLevelWindow will override this and set the NSWindow size // such that the contentView will be this size