merge of RTL changes (with many modifications) from SOC2006_RTL branch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2980,3 +2980,21 @@ wxAccStatus wxWindowAccessible::GetSelections(wxVariant* WXUNUSED(selections))
|
||||
}
|
||||
|
||||
#endif // wxUSE_ACCESSIBILITY
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// RTL support
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
wxCoord
|
||||
wxWindowBase::AdjustForLayoutDirection(wxCoord x,
|
||||
wxCoord width,
|
||||
wxCoord widthTotal) const
|
||||
{
|
||||
if ( GetLayoutDirection() == wxLayout_RightToLeft )
|
||||
{
|
||||
x = widthTotal - x - width;
|
||||
}
|
||||
|
||||
return x;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user