X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6062fe5c9e63cae73d1705fecc32587f0b80270f..8e77fd8bca165aab9709649d79a7cbc6a172d4e1:/include/wx/osx/window.h diff --git a/include/wx/osx/window.h b/include/wx/osx/window.h index 757455f813..3af0c97038 100644 --- a/include/wx/osx/window.h +++ b/include/wx/osx/window.h @@ -55,6 +55,8 @@ public: long style = 0, const wxString& name = wxPanelNameStr ); + virtual void SendSizeEvent(int flags = 0); + // implement base class pure virtuals virtual void SetLabel( const wxString& label ); virtual wxString GetLabel() const; @@ -95,7 +97,7 @@ public: virtual int GetCharHeight() const; virtual int GetCharWidth() const; - + public: virtual void SetScrollbar( int orient, int pos, int thumbVisible, int range, bool refresh = true ); @@ -259,7 +261,10 @@ public: // optimization to avoid creating a user pane in wxWindow::Create if we already know // we will replace it with our own peer void DontCreatePeer(); - + + // return true unless DontCreatePeer() had been called + bool ShouldCreatePeer() const; + // sets the native implementation wrapper, can replace an existing peer, use peer = NULL to // release existing peer void SetPeer(wxOSXWidgetImpl* peer); @@ -283,10 +288,11 @@ public: virtual bool OSXHandleClicked( double timestampsec ); virtual bool OSXHandleKeyEvent( wxKeyEvent& event ); + virtual void OSXSimulateFocusEvents(); bool IsNativeWindowWrapper() const { return m_isNativeWindowWrapper; } - float GetContentScaleFactor() const ; + double GetContentScaleFactor() const ; // internal response to size events virtual void MacOnInternalSize() {}