- private:
- protected:
- wxSizerBehaviour sizerBehaviour;
- int borderX;
- int borderY;
- int sizerWidth;
- int sizerHeight;
- int sizerX;
- int sizerY;
- public:
- wxSizer();
- wxSizer(wxWindow *parent, wxSizerBehaviour behav = wxSizerNone);
- ~wxSizer();
-
- bool Create(wxWindow *parent, wxSizerBehaviour behav = wxSizerNone);
- virtual void SetSize(int x, int y, int w, int h, int flags = wxSIZE_AUTO);
- // Avoid compiler warning
- void SetSize(int w, int h) { wxWindow::SetSize(w, h); }
- virtual void Move(int x, int y);
- virtual void GetSize(int *w, int *h) const;
- inline virtual void GetClientSize(int *w, int *h) const { GetSize(w, h); }
- virtual void GetPosition(int *x, int *y) const;
-
- inline void SizerSetSize(int x, int y, int w, int h)
- { SetSize(x, y, w, h); }
- inline void SizerMove(int x, int y)
- { Move(x, y); }
-
- virtual void SetBorder(int w, int h);
- inline int GetBorderX() { return borderX ; }
- inline int GetBorderY() { return borderY ; }
-
- virtual void AddSizerChild(wxWindow *child);
- virtual void RemoveSizerChild(wxWindow *child);
-
- inline virtual void SetBehaviour(wxSizerBehaviour b) { sizerBehaviour = b; }
- inline virtual wxSizerBehaviour GetBehaviour() { return sizerBehaviour; }
-
- virtual bool LayoutPhase1(int *);
- virtual bool LayoutPhase2(int *);
+protected:
+ wxSizerBehaviour sizerBehaviour;
+ int borderX;
+ int borderY;
+ int sizerWidth;
+ int sizerHeight;
+ int sizerX;
+ int sizerY;
+
+public:
+ wxSizer();
+ wxSizer(wxWindow *parent, wxSizerBehaviour behav = wxSizerNone);
+ ~wxSizer();
+
+ bool Create(wxWindow *parent, wxSizerBehaviour behav = wxSizerNone);
+
+ virtual void GetSize(int *w, int *h) const;
+
+ virtual void GetClientSize(int *w, int *h) const { GetSize(w, h); }
+
+ virtual void GetPosition(int *x, int *y) const;
+
+ void SizerSetSize(int x, int y, int w, int h) { SetSize(x, y, w, h); }
+ void SizerMove(int x, int y) { Move(x, y); }
+
+ virtual void SetBorder(int w, int h);
+ int GetBorderX() { return borderX ; }
+ int GetBorderY() { return borderY ; }
+
+ virtual void AddSizerChild(wxWindow *child);
+ virtual void RemoveSizerChild(wxWindow *child);
+
+ virtual void SetBehaviour(wxSizerBehaviour b) { sizerBehaviour = b; }
+ virtual wxSizerBehaviour GetBehaviour() { return sizerBehaviour; }
+
+ virtual bool LayoutPhase1(int *);
+ virtual bool LayoutPhase2(int *);
+
+protected:
+ virtual void DoSetSize(int x, int y,
+ int width, int height,
+ int sizeFlags = wxSIZE_AUTO);