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::GetRect
}\label{wxsizeritemgetrect
}
109 \func{wxRect
}{GetRect
}{\void}
111 Get the rectangle of the item on the parent window.
113 \membersection{wxSizerItem::GetSize
}\label{wxsizeritemgetsize
}
115 \constfunc{wxSize
}{GetSize
}{\void}
117 Get the current size of the item, as set in the last Layout.
119 \membersection{wxSizerItem::GetSizer
}\label{wxsizeritemgetsizer
}
121 \constfunc{wxSizer*
}{GetSizer
}{\void}
123 If this item is tracking a sizer, return it. NULL otherwise.
126 \membersection{wxSizerItem::GetSpacer
}\label{wxsizeritemgetspacer
}
128 \constfunc{const wxSize\&
}{GetSpacer
}{\void}
130 If this item is tracking a spacer, return its size.
133 \membersection{wxSizerItem::GetUserData
}\label{wxsizeritemgetuserdata
}
135 \constfunc{wxObject*
}{GetUserData
}{\void}
137 Get the userData item attribute.
140 \membersection{wxSizerItem::GetWindow
}\label{wxsizeritemgetwindow
}
142 \constfunc{wxWindow*
}{GetWindow
}{\void}
144 If this item is trackign a window then return it. NULL otherwise.
146 \membersection{wxSizerItem::IsShown
}\label{wxsizeritemisshown
}
148 \constfunc{bool
}{IsShown
}{\void}
153 \membersection{wxSizerItem::IsSizer
}\label{wxsizeritemissizer
}
155 \constfunc{bool
}{IsSizer
}{\void}
157 Is this item a sizer?
160 \membersection{wxSizerItem::IsSpacer
}\label{wxsizeritemisspacer
}
162 \constfunc{bool
}{IsSpacer
}{\void}
164 Is this item a spacer?
167 \membersection{wxSizerItem::IsWindow
}\label{wxsizeritemiswindow
}
169 \constfunc{bool
}{IsWindow
}{\void}
171 Is this item a window?
174 \membersection{wxSizerItem::SetBorder
}\label{wxsizeritemsetborder
}
176 \func{void
}{SetBorder
}{\param{int
}{border
}}
178 Set the border item attribute.
180 \membersection{wxSizerItem::SetDimension
}\label{wxsizeritemsetdimension
}
182 \func{void
}{SetDimension
}{\param{wxPoint
}{pos
},
\param{wxSize
}{size
}}
184 Set the position and size of the space allocated to the sizer, and
185 adjust the position and size of the item to be within that space
186 taking alignment and borders into account.
189 \membersection{wxSizerItem::SetFlag
}\label{wxsizeritemsetflag
}
191 \func{void
}{SetFlag
}{\param{int
}{flag
}}
193 Set the flag item attribute.
196 \membersection{wxSizerItem::SetInitSize
}\label{wxsizeritemsetinitsize
}
198 \func{void
}{SetInitSize
}{\param{int
}{x
},
\param{int
}{y
}}
201 \membersection{wxSizerItem::SetProportion
}\label{wxsizeritemsetproportion
}
203 \func{void
}{SetProportion
}{\param{int
}{proportion
}}
205 Set the proportion item attribute.
207 \membersection{wxSizerItem::SetRatio
}\label{wxsizeritemsetratio
}
209 \func{void
}{SetRatio
}{\param{int
}{width
},
\param{int
}{height
}}
211 \func{void
}{SetRatio
}{\param{wxSize
}{size
}}
213 \func{void
}{SetRatio
}{\param{float
}{ratio
}}
215 Set the ratio item attribute.
218 \membersection{wxSizerItem::SetSizer
}\label{wxsizeritemsetsizer
}
220 \func{void
}{SetSizer
}{\param{wxSizer*
}{sizer
}}
222 Set the sizer tracked by this item.
225 \membersection{wxSizerItem::SetSpacer
}\label{wxsizeritemsetspacer
}
227 \func{void
}{SetSpacer
}{\param{const wxSize\&
}{size
}}
229 Set the size of the spacer tracked by this item.
232 \membersection{wxSizerItem::SetWindow
}\label{wxsizeritemsetwindow
}
234 \func{void
}{SetWindow
}{\param{wxWindow*
}{window
}}
236 Set the window to be tracked by thsi item.
239 \membersection{wxSizerItem::Show
}\label{wxsizeritemshow
}
241 \func{void
}{Show
}{\param{bool
}{show
}}
243 Set the show item attribute, which sizers use to determine if the item
244 is to be made part of the layout or not. If the item is tracking a
245 window then it is shown or hidden as needed.