summaryrefslogtreecommitdiff
path: root/lib/wx/doc/src/wxFlexGridSizer.xml
blob: 638d6a1a18082d89dafeb1dde54cbcfaeabd145d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE erlref SYSTEM "erlref.dtd">

<!-- THIS FILE IS GENERATED DO NOT EDIT -->


<erlref>
<header>
  <copyright>
    <year>2020</year>
    <holder>wxWidgets team.</holder></copyright>
  <legalnotice>Licensed under the wxWindows Free Documentation Licence, Version 3
  </legalnotice>
  <title>wxFlexGridSizer</title>
</header>
<module>wxFlexGridSizer</module>
<modulesummary>Functions for wxFlexGridSizer class</modulesummary>
<description><p>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 <seeerl marker="wxGridSizer"><c>wxGridSizer</c></seeerl>.
      </p><p>Since wxWidgets 2.5.0, <seeerl marker="wxFlexGridSizer"><c>wxFlexGridSizer</c></seeerl> 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 <seemfa marker="#setFlexibleDirection/2"><c>setFlexibleDirection/2</c></seemfa>), it needs to be decided how the sizer should grow in the other ("non-flexible") direction in order to fill the available space. The <seemfa marker="#setNonFlexibleGrowMode/2"><c>setNonFlexibleGrowMode/2</c></seemfa> method serves this purpose.
      </p><p>See: <seeerl marker="wxSizer"><c>wxSizer</c></seeerl>, <url href="https://docs.wxwidgets.org/3.1/overview_sizer.html#overview_sizer">Overview sizer</url>
      </p>
  <p>This class is derived (and can use functions) from: 
    <seeerl marker="wxGridSizer"><c>wxGridSizer</c></seeerl> <seeerl marker="wxSizer"><c>wxSizer</c></seeerl></p>
  
  <p>wxWidgets docs: <url href="https://docs.wxwidgets.org/3.1/classwx_flex_grid_sizer.html">wxFlexGridSizer</url></p>
  </description>
<datatypes><datatype><name name="wxFlexGridSizer"/></datatype></datatypes>

<funcs>
  <func>
    <name name="new" arity="1" clause_i="1" since=""/>
    <fsummary>See: <c>new/2</c></fsummary>
  </func>
  
  <func>
    <name name="new" arity="2" clause_i="1" since=""/>
    <fsummary/>
    <desc/>
  </func>
  
  <func>
    <name name="new" arity="3" clause_i="1" since=""/>
  
    <name name="new" arity="3" clause_i="2" since=""/>
    <fsummary/>
    <desc/>
  </func>
  
  <func>
    <name name="new" arity="4" clause_i="1" since=""/>
    <fsummary/>
    <desc/>
  </func>
  
  <func>
    <name name="addGrowableCol" arity="2" clause_i="1" since=""/>
    <fsummary>See: <c>addGrowableCol/3</c></fsummary>
  </func>
  
  <func>
    <name name="addGrowableCol" arity="3" clause_i="1" since=""/>
    <fsummary>Specifies that column <c>idx</c> (starting from zero) should be grown if there is extra space available to the sizer. </fsummary>
    <desc><p>Specifies that column <c>idx</c> (starting from zero) should be grown if there is extra space available to the sizer. 
      </p><p>The <c>proportion</c> parameter has the same meaning as the stretch factor for the sizers (see <seeerl marker="wxBoxSizer"><c>wxBoxSizer</c></seeerl>) except that if all proportions are 0, then all columns are resized equally (instead of not being resized at all).
      </p><p>Notice that the column must not be already growable, if you need to change the proportion you must call <seemfa marker="#removeGrowableCol/2"><c>removeGrowableCol/2</c></seemfa> first and then make it growable (with a different proportion) again. You can use <c>IsColGrowable()</c> (not implemented in wx) to check whether a column is already growable. 
      </p></desc>
  </func>
  
  <func>
    <name name="addGrowableRow" arity="2" clause_i="1" since=""/>
    <fsummary>See: <c>addGrowableRow/3</c></fsummary>
  </func>
  
  <func>
    <name name="addGrowableRow" arity="3" clause_i="1" since=""/>
    <fsummary>Specifies that row idx (starting from zero) should be grown if there is extra space available to the sizer. </fsummary>
    <desc><p>Specifies that row idx (starting from zero) should be grown if there is extra space available to the sizer. 
      </p><p>This is identical to <seemfa marker="#addGrowableCol/3"><c>addGrowableCol/3</c></seemfa> except that it works with rows and not columns. 
      </p></desc>
  </func>
  
  <func>
    <name name="getFlexibleDirection" arity="1" clause_i="1" since=""/>
    <fsummary>Returns a ?wxOrientation value that specifies whether the sizer flexibly resizes its columns, rows, or both (default). </fsummary>
    <desc><p>Returns a ?wxOrientation value that specifies whether the sizer flexibly resizes its columns, rows, or both (default). 
      </p><p>Return: One of the following values: 
      </p><p>See: <seemfa marker="#setFlexibleDirection/2"><c>setFlexibleDirection/2</c></seemfa>
      </p></desc>
  </func>
  
  <func>
    <name name="getNonFlexibleGrowMode" arity="1" clause_i="1" since=""/>
    <fsummary>Returns the value that specifies how the sizer grows in the "non-flexible" direction if there is one. </fsummary>
    <desc><p>Returns the value that specifies how the sizer grows in the "non-flexible" direction if there is one. 
      </p><p>The behaviour of the elements in the flexible direction (i.e. both rows and columns by default, or rows only if <seemfa marker="#getFlexibleDirection/1"><c>getFlexibleDirection/1</c></seemfa> is <c>wxVERTICAL</c> or columns only if it is <c>wxHORIZONTAL</c>) is always governed by their proportion as specified in the call to <seemfa marker="#addGrowableRow/3"><c>addGrowableRow/3</c></seemfa> or <seemfa marker="#addGrowableCol/3"><c>addGrowableCol/3</c></seemfa>. What happens in the other direction depends on the value of returned by this function as described below.
      </p><p>Return: One of the following values: 
      </p><p>See: <seemfa marker="#setFlexibleDirection/2"><c>setFlexibleDirection/2</c></seemfa>, <seemfa marker="#setNonFlexibleGrowMode/2"><c>setNonFlexibleGrowMode/2</c></seemfa>
      </p></desc>
  </func>
  
  <func>
    <name name="removeGrowableCol" arity="2" clause_i="1" since=""/>
    <fsummary>Specifies that the <c>idx</c> column index is no longer growable. </fsummary>
    <desc><p>Specifies that the <c>idx</c> column index is no longer growable. 
      </p></desc>
  </func>
  
  <func>
    <name name="removeGrowableRow" arity="2" clause_i="1" since=""/>
    <fsummary>Specifies that the <c>idx</c> row index is no longer growable. </fsummary>
    <desc><p>Specifies that the <c>idx</c> row index is no longer growable. 
      </p></desc>
  </func>
  
  <func>
    <name name="setFlexibleDirection" arity="2" clause_i="1" since=""/>
    <fsummary>Specifies whether the sizer should flexibly resize its columns, rows, or both. </fsummary>
    <desc><p>Specifies whether the sizer should flexibly resize its columns, rows, or both. 
      </p><p>Argument <c>direction</c> can be <c>wxVERTICAL</c>, <c>wxHORIZONTAL</c> or <c>wxBOTH</c> (which is the default value). Any other value is ignored.
      </p><p>See <seemfa marker="#getFlexibleDirection/1"><c>getFlexibleDirection/1</c></seemfa> for the explanation of these values. Note that this method does not trigger relayout. 
      </p></desc>
  </func>
  
  <func>
    <name name="setNonFlexibleGrowMode" arity="2" clause_i="1" since=""/>
    <fsummary>Specifies how the sizer should grow in the non-flexible direction if there is one (so <c>setFlexibleDirection/2</c> must have been called previously). </fsummary>
    <desc><p>Specifies how the sizer should grow in the non-flexible direction if there is one (so <seemfa marker="#setFlexibleDirection/2"><c>setFlexibleDirection/2</c></seemfa> must have been called previously). 
      </p><p>Argument <c>mode</c> can be one of those documented in <seemfa marker="#getNonFlexibleGrowMode/1"><c>getNonFlexibleGrowMode/1</c></seemfa>, please see there for their explanation. Note that this method does not trigger relayout. 
      </p></desc>
  </func>
  
  <func>
    <name name="destroy" arity="1" clause_i="1" since=""/>
    <fsummary>Destructor</fsummary>
    <desc><p>Destroys the object.</p></desc>
  </func>
  </funcs>
</erlref>