X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c4825ef73a5f190b8f39c59df098c3f39fa4464b..7e4952db837344e369ff9ccc7ece1f7b8c207cf1:/include/wx/osx/core/private.h diff --git a/include/wx/osx/core/private.h b/include/wx/osx/core/private.h index dec77345e5..b514797d89 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 ) @@ -130,7 +130,7 @@ public : protected : wxMenuItem* m_peer; - DECLARE_ABSTRACT_CLASS(wxMenuItemImpl); + DECLARE_ABSTRACT_CLASS(wxMenuItemImpl) } ; class wxMenuImpl : public wxObject @@ -152,12 +152,14 @@ public : wxMenu* GetWXPeer() { return m_peer ; } + virtual void PopUp( wxWindow *win, int x, int y ) = 0; + static wxMenuImpl* Create( wxMenu* peer, const wxString& title ); static wxMenuImpl* CreateRootMenu( wxMenu* peer ); protected : wxMenu* m_peer; - DECLARE_ABSTRACT_CLASS(wxMenuItemImpl); + DECLARE_ABSTRACT_CLASS(wxMenuItemImpl) } ; @@ -206,6 +208,9 @@ public : 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; @@ -218,6 +223,10 @@ public : virtual void PerformClick() = 0; virtual void SetLabel( const wxString& title, wxFontEncoding encoding ) = 0; + virtual void SetCursor( const wxCursor & cursor ) = 0; + virtual void CaptureMouse() = 0; + virtual void ReleaseMouse() = 0; + virtual wxInt32 GetValue() const = 0; virtual void SetValue( wxInt32 v ) = 0; virtual void SetBitmap( const wxBitmap& bitmap ) = 0; @@ -227,6 +236,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; @@ -437,6 +448,7 @@ protected : bool m_isRootControl; wxWindowMac* m_wxPeer; bool m_needsFocusRect; + bool m_needsFrame; DECLARE_ABSTRACT_CLASS(wxWidgetImpl) }; @@ -714,7 +726,7 @@ private : void wxMacCocoaRelease( void* obj ); void wxMacCocoaAutorelease( void* obj ); -void wxMacCocoaRetain( void* obj ); +void* wxMacCocoaRetain( void* obj ); #endif