// Get the value of this edge or dimension, or if this
// is not determinable, -1.
// Get the value of this edge or dimension, or if this
// is not determinable, -1.
{
// If the edge or dimension belongs to the parent, then we
// know the dimension is obtainable immediately.
// E.g. a wxExpandSizer may contain a button (but the button's
// true parent is a panel, not the sizer)
{
// If the edge or dimension belongs to the parent, then we
// know the dimension is obtainable immediately.
// E.g. a wxExpandSizer may contain a button (but the button's
// true parent is a panel, not the sizer)
}
*/
// Now set the sizes and positions of the children, and
// recursively call Layout().
}
*/
// Now set the sizes and positions of the children, and
// recursively call Layout().
{
// Remove all children without deleting them,
// or ~wxbWindow will delete proper windows _twice_
{
// Remove all children without deleting them,
// or ~wxbWindow will delete proper windows _twice_
-void wxSizer::SetSize(const int x, const int y, const int w, const int h, const int WXUNUSED(flags))
+void wxSizer::SetSize(int x, int y, int w, int h, int WXUNUSED(flags))
-void wxSizer::Move(const int x, const int y)
-{
- wxLayoutConstraints *constr = GetConstraints();
- if (x != -1)
- {
- sizerX = x;
- if (constr)
- constr->left.SetValue(x);
- }
- if (y != -1)
- {
- sizerY = y;
- if (constr)
- constr->top.SetValue(y);
- }
-}
-
-void wxRowColSizer::SetSize(const int x, const int y, const int w, const int h, const int flags)
+void wxRowColSizer::SetSize(int x, int y, int w, int h, int flags)
{
wxSizer::SetSize(x, y, w, h, flags);
}
{
wxSizer::SetSize(x, y, w, h, flags);
}