From 51c0d02b654665b4b09bb8b74df6607b05ce4ce2 Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Sat, 7 Feb 2009 14:42:40 +0000 Subject: [PATCH] document the wxWindow::Get/SetLayoutDirection functions git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58708 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/intl.h | 3 ++- interface/wx/window.h | 12 +++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) 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. */ -- 2.45.2