.TH wxFlexGridSizer 3erl "wx 2.2.2.1" "wxWidgets team." "Erlang Module Definition" .SH NAME wxFlexGridSizer \- Functions for wxFlexGridSizer class .SH DESCRIPTION .LP A flex grid sizer is a sizer which lays out its children in a two-dimensional table with all table fields in one row having the same height and all fields in one column having the same width, but all rows or all columns are not necessarily the same height or width as in the \fIwxGridSizer\fR\&\&. .LP Since wxWidgets 2\&.5\&.0, \fIwxFlexGridSizer\fR\& can also size items equally in one direction but unequally ("flexibly") in the other\&. If the sizer is only flexible in one direction (this can be changed using \fIsetFlexibleDirection/2\fR\&), it needs to be decided how the sizer should grow in the other ("non-flexible") direction in order to fill the available space\&. The \fIsetNonFlexibleGrowMode/2\fR\& method serves this purpose\&. .LP See: \fIwxSizer\fR\&, Overview sizer .LP This class is derived (and can use functions) from: \fIwxGridSizer\fR\& \fIwxSizer\fR\& .LP wxWidgets docs: wxFlexGridSizer .SH DATA TYPES .nf \fBwxFlexGridSizer()\fR\& = wx:wx_object() .br .fi .SH EXPORTS .LP .nf .B new(Cols) -> wxFlexGridSizer() .br .fi .br .RS .LP Types: .RS 3 Cols = integer() .br .RE .RE .LP .nf .B new(Cols, Options :: [Option]) -> wxFlexGridSizer() .br .fi .br .RS .LP Types: .RS 3 Cols = integer() .br Option = {gap, {W :: integer(), H :: integer()}} .br .RE .RE .RS .RE .LP .nf .B new(Cols, Vgap, Hgap) -> wxFlexGridSizer() .br .fi .br .nf .B new(Rows, Cols, Gap) -> wxFlexGridSizer() .br .fi .br .RS .LP Types: .RS 3 Rows = Cols = integer() .br Gap = {W :: integer(), H :: integer()} .br .RE .RE .RS .RE .LP .nf .B new(Rows, Cols, Vgap, Hgap) -> wxFlexGridSizer() .br .fi .br .RS .LP Types: .RS 3 Rows = Cols = Vgap = Hgap = integer() .br .RE .RE .RS .RE .LP .nf .B addGrowableCol(This, Idx) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxFlexGridSizer() .br Idx = integer() .br .RE .RE .LP .nf .B addGrowableCol(This, Idx, Options :: [Option]) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxFlexGridSizer() .br Idx = integer() .br Option = {proportion, integer()} .br .RE .RE .RS .LP Specifies that column \fIidx\fR\& (starting from zero) should be grown if there is extra space available to the sizer\&. .LP The \fIproportion\fR\& parameter has the same meaning as the stretch factor for the sizers (see \fIwxBoxSizer\fR\&) except that if all proportions are 0, then all columns are resized equally (instead of not being resized at all)\&. .LP Notice that the column must not be already growable, if you need to change the proportion you must call \fIremoveGrowableCol/2\fR\& first and then make it growable (with a different proportion) again\&. You can use \fIIsColGrowable()\fR\& (not implemented in wx) to check whether a column is already growable\&. .RE .LP .nf .B addGrowableRow(This, Idx) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxFlexGridSizer() .br Idx = integer() .br .RE .RE .LP .nf .B addGrowableRow(This, Idx, Options :: [Option]) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxFlexGridSizer() .br Idx = integer() .br Option = {proportion, integer()} .br .RE .RE .RS .LP Specifies that row idx (starting from zero) should be grown if there is extra space available to the sizer\&. .LP This is identical to \fIaddGrowableCol/3\fR\& except that it works with rows and not columns\&. .RE .LP .nf .B getFlexibleDirection(This) -> integer() .br .fi .br .RS .LP Types: .RS 3 This = wxFlexGridSizer() .br .RE .RE .RS .LP Returns a ?wxOrientation value that specifies whether the sizer flexibly resizes its columns, rows, or both (default)\&. .LP Return: One of the following values: .LP See: \fIsetFlexibleDirection/2\fR\& .RE .LP .nf .B getNonFlexibleGrowMode(This) -> wx:wx_enum() .br .fi .br .RS .LP Types: .RS 3 This = wxFlexGridSizer() .br .RE .RE .RS .LP Returns the value that specifies how the sizer grows in the "non-flexible" direction if there is one\&. .LP The behaviour of the elements in the flexible direction (i\&.e\&. both rows and columns by default, or rows only if \fIgetFlexibleDirection/1\fR\& is \fIwxVERTICAL\fR\& or columns only if it is \fIwxHORIZONTAL\fR\&) is always governed by their proportion as specified in the call to \fIaddGrowableRow/3\fR\& or \fIaddGrowableCol/3\fR\&\&. What happens in the other direction depends on the value of returned by this function as described below\&. .LP Return: One of the following values: .LP See: \fIsetFlexibleDirection/2\fR\&, \fIsetNonFlexibleGrowMode/2\fR\& .RE .LP .nf .B removeGrowableCol(This, Idx) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxFlexGridSizer() .br Idx = integer() .br .RE .RE .RS .LP Specifies that the \fIidx\fR\& column index is no longer growable\&. .RE .LP .nf .B removeGrowableRow(This, Idx) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxFlexGridSizer() .br Idx = integer() .br .RE .RE .RS .LP Specifies that the \fIidx\fR\& row index is no longer growable\&. .RE .LP .nf .B setFlexibleDirection(This, Direction) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxFlexGridSizer() .br Direction = integer() .br .RE .RE .RS .LP Specifies whether the sizer should flexibly resize its columns, rows, or both\&. .LP Argument \fIdirection\fR\& can be \fIwxVERTICAL\fR\&, \fIwxHORIZONTAL\fR\& or \fIwxBOTH\fR\& (which is the default value)\&. Any other value is ignored\&. .LP See \fIgetFlexibleDirection/1\fR\& for the explanation of these values\&. Note that this method does not trigger relayout\&. .RE .LP .nf .B setNonFlexibleGrowMode(This, Mode) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxFlexGridSizer() .br Mode = wx:wx_enum() .br .RE .RE .RS .LP Specifies how the sizer should grow in the non-flexible direction if there is one (so \fIsetFlexibleDirection/2\fR\& must have been called previously)\&. .LP Argument \fImode\fR\& can be one of those documented in \fIgetNonFlexibleGrowMode/1\fR\&, please see there for their explanation\&. Note that this method does not trigger relayout\&. .RE .LP .nf .B destroy(This :: wxFlexGridSizer()) -> ok .br .fi .br .RS .LP Destroys the object\&. .RE