X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/54f11060867c4c97ebbe7954353f5c311262fc4b..cbeda384e51acb82e13994cb67ac1714669cae10:/include/wx/osx/core/private.h?ds=sidebyside diff --git a/include/wx/osx/core/private.h b/include/wx/osx/core/private.h index 7a70f84fcf..cc2193377b 100644 --- a/include/wx/osx/core/private.h +++ b/include/wx/osx/core/private.h @@ -43,7 +43,7 @@ wxString WXDLLIMPEXP_CORE wxMacMakeStringFromPascal( const unsigned char * from class WXDLLIMPEXP_CORE wxMacCGContextStateSaver { - DECLARE_NO_COPY_CLASS(wxMacCGContextStateSaver) + wxDECLARE_NO_COPY_CLASS(wxMacCGContextStateSaver); public: wxMacCGContextStateSaver( CGContextRef cg ) @@ -95,12 +95,15 @@ class wxWidgetImpl; class wxNotebook; class wxTextCtrl; +WXDLLIMPEXP_CORE wxWindowMac * wxFindWindowFromWXWidget(WXWidget inControl ); + #if wxOSX_USE_CARBON typedef wxMacControl wxWidgetImplType; #else typedef wxWidgetImpl wxWidgetImplType; #endif +#if wxUSE_MENUS class wxMenuItemImpl : public wxObject { public : @@ -130,7 +133,7 @@ public : protected : wxMenuItem* m_peer; - DECLARE_ABSTRACT_CLASS(wxMenuItemImpl); + DECLARE_ABSTRACT_CLASS(wxMenuItemImpl) } ; class wxMenuImpl : public wxObject @@ -159,9 +162,9 @@ public : protected : wxMenu* m_peer; - DECLARE_ABSTRACT_CLASS(wxMenuItemImpl); + DECLARE_ABSTRACT_CLASS(wxMenuItemImpl) } ; - +#endif class WXDLLIMPEXP_CORE wxWidgetImpl : public wxObject @@ -202,12 +205,18 @@ public : virtual void GetSize( int &width, int &height ) const = 0; virtual void SetControlSize( wxWindowVariant variant ) = 0; + // native view coordinates are topleft to bottom right (flipped regarding CoreGraphics origin) + virtual bool IsFlipped() const { return true; } + virtual void SetNeedsDisplay( const wxRect* where = NULL ) = 0; virtual bool GetNeedsDisplay() const = 0; virtual bool NeedsFocusRect() const; virtual void SetNeedsFocusRect( bool needs ); + virtual bool NeedsFrame() const; + virtual void SetNeedsFrame( bool needs ); + virtual bool CanFocus() const = 0; // return true if successful virtual bool SetFocus() = 0; @@ -233,6 +242,8 @@ public : virtual void Enable( bool enable ) = 0; virtual void SetMinimum( wxInt32 v ) = 0; virtual void SetMaximum( wxInt32 v ) = 0; + virtual wxInt32 GetMinimum() const = 0; + virtual wxInt32 GetMaximum() const = 0; virtual void PulseGauge() = 0; virtual void SetScrollThumb( wxInt32 value, wxInt32 thumbSize ) = 0; @@ -253,6 +264,8 @@ public : static void Associate( WXWidget control, wxWidgetImpl *impl ); + static WXWidget FindFocus(); + // static creation methods, must be implemented by all toolkits static wxWidgetImplType* CreateUserPane( wxWindowMac* wxpeer, @@ -443,6 +456,7 @@ protected : bool m_isRootControl; wxWindowMac* m_wxPeer; bool m_needsFocusRect; + bool m_needsFrame; DECLARE_ABSTRACT_CLASS(wxWidgetImpl) }; @@ -720,7 +734,7 @@ private : void wxMacCocoaRelease( void* obj ); void wxMacCocoaAutorelease( void* obj ); -void wxMacCocoaRetain( void* obj ); +void* wxMacCocoaRetain( void* obj ); #endif