]> git.saurik.com Git - wxWidgets.git/commitdiff
document the wxWindow::Get/SetLayoutDirection functions
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Sat, 7 Feb 2009 14:42:40 +0000 (14:42 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Sat, 7 Feb 2009 14:42:40 +0000 (14:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58708 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

interface/wx/intl.h
interface/wx/window.h

index 0f537d4dc0ff19cc4380d290b493b87d4a068efb..c655db5e041e1137e290b54bda8e7415d7786a31 100644 (file)
@@ -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
 {
index 82f484cb5bbb2cfd097a24d20ce3ee00bfd33824..83577f96e36573294c3d20a31784d018eed94d0a 100644 (file)
@@ -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.
     */