X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ab1f7d2aa9cb1857cf87e105ebbd36a92676bbde..b519803b436486ca933d750c990ef64a29551221:/wxPython/src/_splitter.i diff --git a/wxPython/src/_splitter.i b/wxPython/src/_splitter.i index af4516454a..6ca3487294 100644 --- a/wxPython/src/_splitter.i +++ b/wxPython/src/_splitter.i @@ -274,12 +274,12 @@ showing the top-level window.", ""); DocDeclStr( void , SetSashSize(int width), - "Sets the sash size", ""); + "Sets the sash size. Currently a NOP.", ""); DocDeclStr( void , SetBorderSize(int width), - "Sets the border size", ""); + "Sets the border size. Currently a NOP.", ""); DocDeclStr( @@ -293,7 +293,7 @@ showing the top-level window.", ""); DocDeclStr( - void , SetSashPosition(int position, bool redraw = True), + void , SetSashPosition(int position, bool redraw = true), "Sets the sash position, in pixels. If redraw is Ttrue then the panes are resized and the sash and border are redrawn.", ""); @@ -303,6 +303,33 @@ are resized and the sash and border are redrawn.", ""); "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( void , SetMinimumPaneSize(int min), "Sets the minimum pane size in pixels.