X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d22699b5ebc820af126478d8ef5da4385cef940b..6d693bb4fc299b7375dd4da9d878768d80ceaf55:/include/wx/window.h diff --git a/include/wx/window.h b/include/wx/window.h index 5ae7d448c9..a265f57e52 100644 --- a/include/wx/window.h +++ b/include/wx/window.h @@ -28,6 +28,7 @@ #include "wx/font.h" // so we can't do without them #include "wx/colour.h" #include "wx/region.h" +#include "wx/utils.h" #if wxUSE_VALIDATORS #include "wx/validate.h" // defines wxDefaultValidator @@ -276,6 +277,11 @@ public: int maxW = -1, int maxH = -1, int incW = -1, int incH = -1 ); + int GetMinWidth() const { return m_minWidth; } + int GetMinHeight() const { return m_minHeight; } + int GetMaxWidth() const { return m_maxWidth; } + int GetMaxHeight() const { return m_maxHeight; } + // window state // ------------ @@ -606,7 +612,6 @@ public: virtual bool DoPhase(int); // these methods are virtual but normally won't be overridden - virtual void TransformSizerToActual(int *x, int *y) const ; virtual void SetSizeConstraint(int x, int y, int w, int h); virtual void MoveConstraint(int x, int y); virtual void GetSizeConstraint(int *w, int *h) const ; @@ -617,12 +622,6 @@ public: // TODO: what are they and how do they work?? void SetSizer( wxSizer *sizer ); wxSizer *GetSizer() const { return m_windowSizer; } - - void SetSizerParent( wxWindowBase *win ) { m_sizerParent = win; } - wxWindowBase *GetSizerParent() const { return m_sizerParent; } - - virtual void SizerSetSize(int x, int y, int w, int h); - virtual void SizerMove(int x, int y); #endif // wxUSE_CONSTRAINTS // backward compatibility