Added gravity
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30997 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -303,6 +303,33 @@ are resized and the sash and border are redrawn.", "");
|
|||||||
"Returns the surrent sash position.", "");
|
"Returns the surrent sash position.", "");
|
||||||
|
|
||||||
|
|
||||||
|
DocDeclStr(
|
||||||
|
void , SetSashGravity(double gravity),
|
||||||
|
"Set the sash gravity. Gravity is a floating-point factor between 0.0
|
||||||
|
and 1.0 which controls position of sash while resizing the
|
||||||
|
`wx.SplitterWindow`. The gravity specifies how much the left/top
|
||||||
|
window will grow while resizing.","
|
||||||
|
|
||||||
|
Example values:
|
||||||
|
|
||||||
|
======= =======================================
|
||||||
|
0.0 Only the bottom or right window is
|
||||||
|
automaticaly resized.
|
||||||
|
0.5 Both windows grow equally.
|
||||||
|
1.0 Only left/top window grows.
|
||||||
|
|
||||||
|
The default value of sash gravity is 0.0. That value is compatible
|
||||||
|
with the previous (before gravity was introduced) behaviour of the
|
||||||
|
`wx.SplitterWindow`.");
|
||||||
|
|
||||||
|
DocDeclStr(
|
||||||
|
double , GetSashGravity() const,
|
||||||
|
"Gets the sash gravity.
|
||||||
|
|
||||||
|
:see: `SetSashGravity`
|
||||||
|
", "");
|
||||||
|
|
||||||
|
|
||||||
DocDeclStr(
|
DocDeclStr(
|
||||||
void , SetMinimumPaneSize(int min),
|
void , SetMinimumPaneSize(int min),
|
||||||
"Sets the minimum pane size in pixels.
|
"Sets the minimum pane size in pixels.
|
||||||
|
Reference in New Issue
Block a user