Get/Set LayoutDirection
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41925 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -975,6 +975,24 @@ box doesn't contain anything.", "");
|
|||||||
%pythoncode { def __nonzero__(self): return self.IsOk() };
|
%pythoncode { def __nonzero__(self): return self.IsOk() };
|
||||||
|
|
||||||
|
|
||||||
|
// RTL related functions
|
||||||
|
// ---------------------
|
||||||
|
|
||||||
|
DocDeclStr(
|
||||||
|
virtual wxLayoutDirection , GetLayoutDirection() const,
|
||||||
|
"Get the layout direction (LTR or RTL)_ for this dc. On platforms
|
||||||
|
where RTL layout is supported, the return value will either be
|
||||||
|
``wx.Layout_LeftToRight`` or ``wx.Layout_RightToLeft``.
|
||||||
|
``wx.Layout_Default`` is returned if layout direction is not
|
||||||
|
supported.", "");
|
||||||
|
|
||||||
|
DocDeclStr(
|
||||||
|
virtual void , SetLayoutDirection(wxLayoutDirection dir),
|
||||||
|
"Change the layout direction for this dc.", "");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
long GetHDC();
|
long GetHDC();
|
||||||
#endif
|
#endif
|
||||||
@@ -1201,6 +1219,8 @@ box doesn't contain anything.", "");
|
|||||||
%property(TextExtent, GetTextExtent, doc="See `GetTextExtent`");
|
%property(TextExtent, GetTextExtent, doc="See `GetTextExtent`");
|
||||||
%property(TextForeground, GetTextForeground, SetTextForeground, doc="See `GetTextForeground` and `SetTextForeground`");
|
%property(TextForeground, GetTextForeground, SetTextForeground, doc="See `GetTextForeground` and `SetTextForeground`");
|
||||||
%property(UserScale, GetUserScale, SetUserScale, doc="See `GetUserScale` and `SetUserScale`");
|
%property(UserScale, GetUserScale, SetUserScale, doc="See `GetUserScale` and `SetUserScale`");
|
||||||
|
|
||||||
|
%property(LayoutDirection, GetLayoutDirection, SetLayoutDirection);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -1298,7 +1318,7 @@ natively so using this class on those platforms will normally result
|
|||||||
in an unneeded level of buffering.
|
in an unneeded level of buffering.
|
||||||
", "");
|
", "");
|
||||||
|
|
||||||
class wxBufferedDC : public wxMemoryDC
|
class wxBufferedDC : public wxDC
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxBufferedDC
|
%pythonAppend wxBufferedDC
|
||||||
|
Reference in New Issue
Block a user