class wxComboBox;
class wxNotebook;
class wxTextCtrl;
+class wxSearchCtrl;
WXDLLIMPEXP_CORE wxWindowMac * wxFindWindowFromWXWidget(WXWidget inControl );
const wxString& strHelp,
wxItemKind kind,
wxMenu *pSubMenu );
-
+
+ // handle OS specific menu items if they weren't handled during normal processing
+ virtual bool DoDefault() { return false; }
protected :
wxMenuItem* m_peer;
virtual void GetPosition( int &x, int &y ) const = 0;
virtual void GetSize( int &width, int &height ) const = 0;
virtual void SetControlSize( wxWindowVariant variant ) = 0;
+ virtual float GetContentScaleFactor() const
+ {
+ return 1.0;
+ }
+
+ // the native coordinates may have an 'aura' for shadows etc, if this is the case the layout
+ // inset indicates on which insets the real control is drawn
+ virtual void GetLayoutInset(int &left , int &top , int &right, int &bottom) const
+ {
+ left = top = right = bottom = 0;
+ }
// native view coordinates are topleft to bottom right (flipped regarding CoreGraphics origin)
virtual bool IsFlipped() const { return true; }
virtual void SetDefaultButton( bool isDefault ) = 0;
virtual void PerformClick() = 0;
virtual void SetLabel( const wxString& title, wxFontEncoding encoding ) = 0;
+#if wxUSE_MARKUP && wxOSX_USE_COCOA
+ virtual void SetLabelMarkup( const wxString& WXUNUSED(markup) ) { }
+#endif
virtual void SetCursor( const wxCursor & cursor ) = 0;
virtual void CaptureMouse() = 0;
long style,
long extraStyle) ;
- static wxWidgetImplType* CreateSearchControl( wxTextCtrl* wxpeer,
+ static wxWidgetImplType* CreateSearchControl( wxSearchCtrl* wxpeer,
wxWindowMac* parent,
wxWindowID id,
const wxString& content,
virtual wxSize GetBestSize() const { return wxDefaultSize; }
+ virtual bool SetHint(const wxString& WXUNUSED(hint)) { return false; }
private:
wxTextEntry * const m_entry;