X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a3622daa901777a33969d8bc04e2d62dee14d164..3eb78d7ebb6f0dcf9222c379189068266d93c463:/include/wx/layout.h diff --git a/include/wx/layout.h b/include/wx/layout.h index 2f525bb1f0..04ae4f1401 100644 --- a/include/wx/layout.h +++ b/include/wx/layout.h @@ -9,8 +9,8 @@ // Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// -#ifndef __LAYOUTH__ -#define __LAYOUTH__ +#ifndef _WX_LAYOUTH__ +#define _WX_LAYOUTH__ #ifdef __GNUG__ #pragma interface "layout.h" @@ -48,6 +48,9 @@ class WXDLLEXPORT wxIndividualLayoutConstraint: public wxObject DECLARE_DYNAMIC_CLASS(wxIndividualLayoutConstraint) protected: + // To be allowed to modify the internal variables + friend class wxIndividualLayoutConstraint_Serialize; + // 'This' window is the parent or sibling of otherWin wxWindow *otherWin; @@ -228,11 +231,9 @@ class WXDLLEXPORT wxSizer: public wxWindow 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 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) @@ -274,9 +275,7 @@ class WXDLLEXPORT wxRowColSizer: public wxSizer ~wxRowColSizer(); bool Create(wxWindow *parent, bool rowOrCol = wxSIZER_ROWS, int rowsOrColSize = 20, wxSizerBehaviour = wxSizerShrink); - void SetSize(int x, int y, int w, int h, int flags = wxSIZE_AUTO); - // Avoid compiler warning - void SetSize(int w, int h) { wxSizer::SetSize(w, h); } + virtual void SetSize(int x, int y, int w, int h, int flags = wxSIZE_AUTO); inline virtual void SetRowOrCol(bool rc) { rowOrCol = rc; } inline virtual bool GetRowOrCol() { return rowOrCol; } @@ -306,4 +305,4 @@ class WXDLLEXPORT wxSpacingSizer: public wxSizer }; #endif - // __LAYOUTH__ + // _WX_LAYOUTH__