// Created: 29/01/98
// RCS-ID: $Id$
// Copyright: (c) 1998 Julian Smart
-// Licence: wxWindows license
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_LAYOUTH__
// headers
// ----------------------------------------------------------------------------
-#if defined(__GNUG__) && !defined(__APPLE__)
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma interface "layout.h"
#endif
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
- wxWindowBase *otherWin;
-
- wxEdge myEdge;
- wxRelationship relationship;
- int margin;
- int value;
- int percent;
- wxEdge otherEdge;
- bool done;
-
public:
wxIndividualLayoutConstraint();
+
+ // note that default copy ctor and assignment operators are ok
+
~wxIndividualLayoutConstraint();
void Set(wxRelationship rel, wxWindowBase *otherW, wxEdge otherE, int val = 0, int marg = wxLAYOUT_DEFAULT_MARGIN);
// is not determinable, -1.
int GetEdge(wxEdge which, wxWindowBase *thisWin, wxWindowBase *other) const;
- DECLARE_NO_COPY_CLASS(wxIndividualLayoutConstraint)
+protected:
+ // To be allowed to modify the internal variables
+ friend class wxIndividualLayoutConstraint_Serialize;
+
+ // 'This' window is the parent or sibling of otherWin
+ wxWindowBase *otherWin;
+
+ wxEdge myEdge;
+ wxRelationship relationship;
+ int margin;
+ int value;
+ int percent;
+ wxEdge otherEdge;
+ bool done;
+
+ DECLARE_DYNAMIC_CLASS(wxIndividualLayoutConstraint)
};
// ----------------------------------------------------------------------------
class WXDLLEXPORT wxLayoutConstraints : public wxObject
{
- DECLARE_DYNAMIC_CLASS(wxLayoutConstraints)
-
public:
// Edge constraints
wxIndividualLayoutConstraint left;
wxIndividualLayoutConstraint centreY;
wxLayoutConstraints();
+
+ // note that default copy ctor and assignment operators are ok
+
~wxLayoutConstraints();
bool SatisfyConstraints(wxWindowBase *win, int *noChanges);
return left.GetDone() && top.GetDone() &&
width.GetDone() && height.GetDone();
}
+
+ DECLARE_DYNAMIC_CLASS(wxLayoutConstraints)
};
#endif