- void Set(wxRelationship rel, wxWindow *otherW, wxEdge otherE, int val = 0, int marg = wxLAYOUT_DEFAULT_MARGIN);
-
- //
- // Sibling relationships
- //
- void LeftOf(wxWindow *sibling, int marg = 0);
- void RightOf(wxWindow *sibling, int marg = 0);
- void Above(wxWindow *sibling, int marg = 0);
- void Below(wxWindow *sibling, int marg = 0);
-
- //
- // 'Same edge' alignment
- //
- void SameAs(wxWindow *otherW, wxEdge edge, int marg = 0);
-
- // The edge is a percentage of the other window's edge
- void PercentOf(wxWindow *otherW, wxEdge wh, int per);
-
- //
- // Edge has absolute value
- //
- void Absolute(int val);
-
- //
- // Dimension is unconstrained
- //
- void Unconstrained() { relationship = wxUnconstrained; }
-
- //
- // Dimension is 'as is' (use current size settings)
- //
- void AsIs() { relationship = wxAsIs; }
-
- //
- // Accessors
- //
- wxWindow *GetOtherWindow();
- wxEdge GetMyEdge() const;
- void SetEdge(wxEdge which);
- void SetValue(int v);
- int GetMargin();
- void SetMargin(int m);
- int GetValue() const;
- int GetPercent() const;
- int GetOtherEdge() const;
- bool GetDone() const;
- void SetDone(bool d);
- wxRelationship GetRelationship();
- void SetRelationship(wxRelationship r);
-
- // Reset constraint if it mentions otherWin
- bool ResetIfWin(wxWindow *otherW);
-
- // Try to satisfy constraint
- bool SatisfyConstraint(wxLayoutConstraints *constraints, wxWindow *win);
-
- // Get the value of this edge or dimension, or if this
- // is not determinable, -1.
- int GetEdge(wxEdge which, wxWindow *thisWin, wxWindow *other) const;
+ DocDeclStr(
+ void , Set(wxRelationship rel, wxWindow *otherW, wxEdge otherE,
+ int val = 0, int marg = wxLAYOUT_DEFAULT_MARGIN),
+ "Sets the properties of the constraint. Normally called by one of the
+convenience functions such as Above, RightOf, SameAs.", "");
+
+
+ DocDeclStr(
+ void , LeftOf(wxWindow *sibling, int marg = 0),
+ "Constrains this edge to be to the left of the given window, with an
+optional margin. Implicitly, this is relative to the left edge of the
+other window.", "");
+
+ DocDeclStr(
+ void , RightOf(wxWindow *sibling, int marg = 0),
+ "Constrains this edge to be to the right of the given window, with an
+optional margin. Implicitly, this is relative to the right edge of the
+other window.", "");
+
+ DocDeclStr(
+ void , Above(wxWindow *sibling, int marg = 0),
+ "Constrains this edge to be above the given window, with an optional
+margin. Implicitly, this is relative to the top edge of the other
+window.", "");
+
+ DocDeclStr(
+ void , Below(wxWindow *sibling, int marg = 0),
+ "Constrains this edge to be below the given window, with an optional
+margin. Implicitly, this is relative to the bottom edge of the other
+window.", "");
+
+ DocDeclStr(
+ void , SameAs(wxWindow *otherW, wxEdge edge, int marg = 0),
+ "Constrains this edge or dimension to be to the same as the edge of the
+given window, with an optional margin.", "");
+
+
+ DocDeclStr(
+ void , PercentOf(wxWindow *otherW, wxEdge wh, int per),
+ "Constrains this edge or dimension to be to a percentage of the given
+window, with an optional margin.", "");
+
+
+ DocDeclStr(
+ void , Absolute(int val),
+ "Constrains this edge or dimension to be the given absolute value.", "");
+
+ DocDeclStr(
+ void , Unconstrained(),
+ "Sets this edge or dimension to be unconstrained, that is, dependent on
+other edges and dimensions from which this value can be deduced.", "");
+
+
+ DocDeclStr(
+ void , AsIs(),
+ "Sets this edge or constraint to be whatever the window's value is at
+the moment. If either of the width and height constraints are *as is*,
+the window will not be resized, but moved instead. This is important
+when considering panel items which are intended to have a default
+size, such as a button, which may take its size from the size of the
+button label.", "");
+
+
+ DocDeclStr(
+ wxWindow *, GetOtherWindow(),
+ "", "");
+
+ DocDeclStr(
+ wxEdge , GetMyEdge() const,
+ "", "");
+
+ DocDeclStr(
+ void , SetEdge(wxEdge which),
+ "", "");
+
+ DocDeclStr(
+ void , SetValue(int v),
+ "", "");
+
+ DocDeclStr(
+ int , GetMargin(),
+ "", "");
+
+ DocDeclStr(
+ void , SetMargin(int m),
+ "", "");
+
+ DocDeclStr(
+ int , GetValue() const,
+ "", "");
+
+ DocDeclStr(
+ int , GetPercent() const,
+ "", "");
+
+ DocDeclStr(
+ int , GetOtherEdge() const,
+ "", "");
+
+ DocDeclStr(
+ bool , GetDone() const,
+ "", "");
+
+ DocDeclStr(
+ void , SetDone(bool d),
+ "", "");
+
+ DocDeclStr(
+ wxRelationship , GetRelationship(),
+ "", "");
+
+ DocDeclStr(
+ void , SetRelationship(wxRelationship r),
+ "", "");
+
+
+ DocDeclStr(
+ bool , ResetIfWin(wxWindow *otherW),
+ "Reset constraint if it mentions otherWin", "");
+
+
+ DocDeclStr(
+ bool , SatisfyConstraint(wxLayoutConstraints *constraints, wxWindow *win),
+ "Try to satisfy constraint", "");
+
+
+ DocDeclStr(
+ int , GetEdge(wxEdge which, wxWindow *thisWin, wxWindow *other) const,
+ "Get the value of this edge or dimension, or if this\n"
+ "is not determinable, -1.", "");