X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/54ea28348cd5123e42e2029139d9772a736ed57c..6485c8d7fbede5752cd3f763d0d5ccf9b0b51f2e:/include/wx/osx/core/private.h diff --git a/include/wx/osx/core/private.h b/include/wx/osx/core/private.h index 5eec53c0c6..1ea155f056 100644 --- a/include/wx/osx/core/private.h +++ b/include/wx/osx/core/private.h @@ -114,6 +114,7 @@ class wxWidgetImpl; class wxComboBox; class wxNotebook; class wxTextCtrl; +class wxSearchCtrl; WXDLLIMPEXP_CORE wxWindowMac * wxFindWindowFromWXWidget(WXWidget inControl ); @@ -234,6 +235,10 @@ public : 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 @@ -265,6 +270,9 @@ public : 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; @@ -377,7 +385,7 @@ public : long style, long extraStyle) ; - static wxWidgetImplType* CreateSearchControl( wxTextCtrl* wxpeer, + static wxWidgetImplType* CreateSearchControl( wxSearchCtrl* wxpeer, wxWindowMac* parent, wxWindowID id, const wxString& content, @@ -648,6 +656,7 @@ public : virtual wxSize GetBestSize() const { return wxDefaultSize; } + virtual bool SetHint(const wxString& WXUNUSED(hint)) { return false; } private: wxTextEntry * const m_entry; @@ -844,6 +853,12 @@ public : virtual void SetModified(bool WXUNUSED(modified)) { } virtual bool IsModified() const { return false; } +#if wxOSX_USE_IPHONE + virtual CGFloat GetWindowLevel() const { return 0.0; } +#else + virtual CGWindowLevel GetWindowLevel() const { return kCGNormalWindowLevel; } +#endif + virtual void RestoreWindowLevel() {} protected : wxNonOwnedWindow* m_wxPeer; DECLARE_ABSTRACT_CLASS(wxNonOwnedWindowImpl)