2 \section{\class{wxSizerItem
}}\label{wxsizeritem
}
4 The wxSizerItem class is used to track the position, size and other
5 attributes of each item managed by a
\helpref{wxSizer
}{wxsizer
}. In
6 normal usage user code should never need to deal directly with a
7 wxSizerItem, but derived sizer classes will.
10 \wxheading{Derived from
}
12 \helpref{wxObject
}{wxobject
}
14 \wxheading{Include files
}
19 \latexignore{\rtfignore{\wxheading{Members
}}}
22 \membersection{wxSizerItem::wxSizerItem
}\label{wxsizeritemwxsizeritem
}
24 \func{}{wxSizerItem
}{\param{int
}{width
},
\param{int
}{height
},
\param{int
}{proportion
},
\param{int
}{flag
},
\param{int
}{border
},
\param{wxObject*
}{userData
}}
26 Construct a sizer item for tracking a spacer.
29 \func{}{wxSizerItem
}{\param{wxWindow*
}{window
},
\param{int
}{proportion
},
\param{int
}{flag
},
\param{int
}{border
},
\param{wxObject*
}{userData
}}
31 Construct a sizer item for tracking a window.
34 \func{}{wxSizerItem
}{\param{wxSizer*
}{sizer
},
\param{int
}{proportion
},
\param{int
}{flag
},
\param{int
}{border
},
\param{wxObject*
}{userData
}}
36 Construct a sizer item for tracking a subsizer.
40 \membersection{wxSizerItem::
\destruct{wxSizerItem
}}\label{wxsizeritemdtor
}
42 \func{}{\destruct{wxSizerItem
}}{\void}
44 Deletes the user data and subsizer, if any.
47 \membersection{wxSizerItem::CalcMin
}\label{wxsizeritemcalcmin
}
49 \func{wxSize
}{CalcMin
}{\void}
51 Calculates the minimum desired size for the item, including any space
55 \membersection{wxSizerItem::DeleteWindows
}\label{wxsizeritemdeletewindows
}
57 \func{void
}{DeleteWindows
}{\void}
59 Destroy the window or the windows in a subsizer, depending on the type
63 \membersection{wxSizerItem::DetachSizer
}\label{wxsizeritemdetachsizer
}
65 \func{void
}{DetachSizer
}{\void}
67 Enable deleting the SizerItem without destroying the contained sizer.
70 \membersection{wxSizerItem::GetBorder
}\label{wxsizeritemgetborder
}
72 \constfunc{int
}{GetBorder
}{\void}
74 Return the border attribute.
76 \membersection{wxSizerItem::GetFlag
}\label{wxsizeritemgetflag
}
78 \constfunc{int
}{GetFlag
}{\void}
80 Return the flags attribute.
83 \membersection{wxSizerItem::GetMinSize
}\label{wxsizeritemgetminsize
}
85 \constfunc{wxSize
}{GetMinSize
}{\void}
87 Get the minimum size needed for the item.
89 \membersection{wxSizerItem::GetPosition
}\label{wxsizeritemgetposition
}
91 \constfunc{wxPoint
}{GetPosition
}{\void}
93 What is the current position of the item, as set in the last Layout.
95 \membersection{wxSizerItem::GetProportion
}\label{wxsizeritemgetproportion
}
97 \constfunc{int
}{GetProportion
}{\void}
99 Get the proportion item attribute.
101 \membersection{wxSizerItem::GetRatio
}\label{wxsizeritemgetratio
}
103 \constfunc{float
}{GetRatio
}{\void}
105 Get the ration item attribute.
107 \membersection{wxSizerItem::GetSize
}\label{wxsizeritemgetsize
}
109 \constfunc{wxSize
}{GetSize
}{\void}
111 Get the current size of the item, as set in the last Layout.
113 \membersection{wxSizerItem::GetSizer
}\label{wxsizeritemgetsizer
}
115 \constfunc{wxSizer*
}{GetSizer
}{\void}
117 If this item is tracking a sizer, return it. NULL otherwise.
120 \membersection{wxSizerItem::GetSpacer
}\label{wxsizeritemgetspacer
}
122 \constfunc{const wxSize\&
}{GetSpacer
}{\void}
124 If this item is tracking a spacer, return its size.
127 \membersection{wxSizerItem::GetUserData
}\label{wxsizeritemgetuserdata
}
129 \constfunc{wxObject*
}{GetUserData
}{\void}
131 Get the userData item attribute.
134 \membersection{wxSizerItem::GetWindow
}\label{wxsizeritemgetwindow
}
136 \constfunc{wxWindow*
}{GetWindow
}{\void}
138 If this item is trackign a window then return it. NULL otherwise.
140 \membersection{wxSizerItem::IsShown
}\label{wxsizeritemisshown
}
142 \constfunc{bool
}{IsShown
}{\void}
147 \membersection{wxSizerItem::IsSizer
}\label{wxsizeritemissizer
}
149 \constfunc{bool
}{IsSizer
}{\void}
151 Is this item a sizer?
154 \membersection{wxSizerItem::IsSpacer
}\label{wxsizeritemisspacer
}
156 \constfunc{bool
}{IsSpacer
}{\void}
158 Is this item a spacer?
161 \membersection{wxSizerItem::IsWindow
}\label{wxsizeritemiswindow
}
163 \constfunc{bool
}{IsWindow
}{\void}
165 Is this item a window?
168 \membersection{wxSizerItem::SetBorder
}\label{wxsizeritemsetborder
}
170 \func{void
}{SetBorder
}{\param{int
}{border
}}
172 Set the border item attribute.
174 \membersection{wxSizerItem::SetDimension
}\label{wxsizeritemsetdimension
}
176 \func{void
}{SetDimension
}{\param{wxPoint
}{pos
},
\param{wxSize
}{size
}}
178 Set the position and size of the space allocated to the sizer, and
179 adjust the position and size of the item to be within that space
180 taking alignment and borders into account.
183 \membersection{wxSizerItem::SetFlag
}\label{wxsizeritemsetflag
}
185 \func{void
}{SetFlag
}{\param{int
}{flag
}}
187 Set the flag item attribute.
190 \membersection{wxSizerItem::SetInitSize
}\label{wxsizeritemsetinitsize
}
192 \func{void
}{SetInitSize
}{\param{int
}{x
},
\param{int
}{y
}}
195 \membersection{wxSizerItem::SetProportion
}\label{wxsizeritemsetproportion
}
197 \func{void
}{SetProportion
}{\param{int
}{proportion
}}
199 Set the proportion item attribute.
201 \membersection{wxSizerItem::SetRatio
}\label{wxsizeritemsetratio
}
203 \func{void
}{SetRatio
}{\param{int
}{width
},
\param{int
}{height
}}
205 \func{void
}{SetRatio
}{\param{wxSize
}{size
}}
207 \func{void
}{SetRatio
}{\param{float
}{ratio
}}
209 Set the ratio item attribute.
212 \membersection{wxSizerItem::SetSizer
}\label{wxsizeritemsetsizer
}
214 \func{void
}{SetSizer
}{\param{wxSizer*
}{sizer
}}
216 Set the sizer tracked by this item.
219 \membersection{wxSizerItem::SetSpacer
}\label{wxsizeritemsetspacer
}
221 \func{void
}{SetSpacer
}{\param{const wxSize\&
}{size
}}
223 Set the size of the spacer tracked by this item.
226 \membersection{wxSizerItem::SetWindow
}\label{wxsizeritemsetwindow
}
228 \func{void
}{SetWindow
}{\param{wxWindow*
}{window
}}
230 Set the window to be tracked by thsi item.
233 \membersection{wxSizerItem::Show
}\label{wxsizeritemshow
}
235 \func{void
}{Show
}{\param{bool
}{show
}}
237 Set the show item attribute, which sizers use to determine if the item
238 is to be made part of the layout or not. If the item is tracking a
239 window then it is shown or hidden as needed.