diff --git a/interface/wx/intl.h b/interface/wx/intl.h index 0f537d4dc0..c655db5e04 100644 --- a/interface/wx/intl.h +++ b/interface/wx/intl.h @@ -264,7 +264,8 @@ enum wxLanguage /** This is the layout direction stored in wxLanguageInfo and returned by - wxApp::GetLayoutDirection() for RTL (right-to-left) languages support. + wxApp::GetLayoutDirection(), wxWindow::GetLayoutDirection(), + wxDC::GetLayoutDirection() for RTL (right-to-left) languages support. */ enum wxLayoutDirection { diff --git a/interface/wx/window.h b/interface/wx/window.h index 82f484cb5b..83577f96e3 100644 --- a/interface/wx/window.h +++ b/interface/wx/window.h @@ -2327,6 +2327,12 @@ public: */ virtual wxString GetLabel() const; + /** + Returns the layout direction for this window, + Note that @c wxLayout_Default is returned if layout direction is not supported. + */ + virtual wxLayoutDirection GetLayoutDirection() const; + /** Returns the window's name. @@ -2365,6 +2371,11 @@ public: */ virtual void SetLabel(const wxString& label); + /** + Sets the layout direction for this window. + */ + virtual void SetLayoutDirection(wxLayoutDirection dir); + /** Sets the window's name. @@ -2385,7 +2396,6 @@ public: */ void SetWindowVariant(wxWindowVariant variant); - /** Gets the accelerator table for this window. See wxAcceleratorTable. */