X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0ed460c2e7802793d591c84f3cfdbff159c5549..d9a56bdeaf27254ad19694a0c0c277385f0613c0:/src/common/layout.cpp diff --git a/src/common/layout.cpp b/src/common/layout.cpp index 38750acead..e8f22391a6 100644 --- a/src/common/layout.cpp +++ b/src/common/layout.cpp @@ -22,8 +22,6 @@ #include "wx/defs.h" -#if wxUSE_CONSTRAINTS - #ifndef WX_PRECOMP #include "wx/window.h" #include "wx/utils.h" @@ -1275,7 +1273,7 @@ void wxSizer::RemoveSizerChild(wxWindow *child) GetChildren().DeleteObject(child); } -void wxSizer::SetSize(int x, int y, int w, int h, int WXUNUSED(flags)) +void wxSizer::DoSetSize(int x, int y, int w, int h, int WXUNUSED(flags)) { wxLayoutConstraints *constr = GetConstraints(); if (x != -1) @@ -1304,23 +1302,6 @@ void wxSizer::SetSize(int x, int y, int w, int h, int WXUNUSED(flags)) } } -void wxSizer::Move(int x, 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 wxSizer::GetSize(int *w, int *h) const { *w = sizerWidth; @@ -1519,11 +1500,6 @@ wxRowColSizer::~wxRowColSizer() { } -void wxRowColSizer::SetSize(int x, int y, int w, int h, int flags) -{ - wxSizer::SetSize(x, y, w, h, flags); -} - bool wxRowColSizer::LayoutPhase1(int *noChanges) { *noChanges = 0; @@ -1744,6 +1720,3 @@ wxSpacingSizer::~wxSpacingSizer() { } - - -#endif