class WXDLLIMPEXP_CORE wxMacCGContextStateSaver
{
- DECLARE_NO_COPY_CLASS(wxMacCGContextStateSaver)
+ wxDECLARE_NO_COPY_CLASS(wxMacCGContextStateSaver);
public:
wxMacCGContextStateSaver( CGContextRef cg )
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 :
protected :
wxMenuItem* m_peer;
- DECLARE_ABSTRACT_CLASS(wxMenuItemImpl);
+ DECLARE_ABSTRACT_CLASS(wxMenuItemImpl)
} ;
class wxMenuImpl : public wxObject
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)
} ;
-
+#endif
class WXDLLIMPEXP_CORE wxWidgetImpl : public wxObject
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;
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;
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;
// is the clicked event sent AFTER the state already changed, so no additional
// state changing logic is required from the outside
virtual bool ButtonClickDidStateChange() = 0;
+
+ virtual void InstallEventHandler( WXWidget control = NULL ) = 0;
+
+ // static methods for associating native controls and their implementations
+ static wxWidgetImpl*
+ FindFromWXWidget(WXWidget control);
+
+ static void RemoveAssociations( wxWidgetImpl* impl);
+
+ static void Associate( WXWidget control, wxWidgetImpl *impl );
+
+ static WXWidget FindFocus();
+
// static creation methods, must be implemented by all toolkits
static wxWidgetImplType* CreateUserPane( wxWindowMac* wxpeer,
bool m_isRootControl;
wxWindowMac* m_wxPeer;
bool m_needsFocusRect;
+ bool m_needsFrame;
DECLARE_ABSTRACT_CLASS(wxWidgetImpl)
};
virtual void Paste() ;
virtual bool CanPaste() const ;
virtual void SetEditable( bool editable ) ;
- virtual wxTextPos GetLastPosition() const ;
+ virtual long GetLastPosition() const ;
virtual void Replace( long from, long to, const wxString &str ) ;
virtual void Remove( long from, long to ) ;
void wxMacCocoaRelease( void* obj );
void wxMacCocoaAutorelease( void* obj );
-void wxMacCocoaRetain( void* obj );
+void* wxMacCocoaRetain( void* obj );
#endif