1//--------------------------------------------------------------------------- 2// This file is generated by wxPython's SIP generator. Do not edit by hand. 3// 4// Copyright: (c) 2018 by Total Control Software 5// License: wxWindows License 6// 7// This file will be included by _core.sip 8// 9//--------------------------------------------------------------------------- 10 11//--------------------------------------------------------------------------- 12 13enum wxEdge 14{ 15 wxLeft, 16 wxTop, 17 wxRight, 18 wxBottom, 19 wxWidth, 20 wxHeight, 21 wxCentre, 22 wxCenter, 23 wxCentreX, 24 wxCentreY 25}; 26 27enum wxRelationship 28{ 29 wxUnconstrained, 30 wxAsIs, 31 wxPercentOf, 32 wxAbove, 33 wxBelow, 34 wxLeftOf, 35 wxRightOf, 36 wxSameAs, 37 wxAbsolute 38}; 39 40const int wxLAYOUT_DEFAULT_MARGIN; 41 42class wxIndividualLayoutConstraint : wxObject 43{ 44 %Docstring 45 IndividualLayoutConstraint() 46 %End 47 %TypeHeaderCode 48 #include <wx/layout.h> 49 %End 50 51public: 52 wxIndividualLayoutConstraint(); 53 54 virtual 55 ~wxIndividualLayoutConstraint(); 56 57 void Set( 58 wxRelationship rel, 59 wxWindow * otherW, 60 wxEdge otherE, 61 int val = 0, 62 int margin = wxLAYOUT_DEFAULT_MARGIN 63 ); 64 %Docstring 65 Set(rel, otherW, otherE, val=0, margin=LAYOUT_DEFAULT_MARGIN) 66 %End 67 68 void LeftOf( 69 wxWindow * sibling, 70 int margin = wxLAYOUT_DEFAULT_MARGIN 71 ); 72 %Docstring 73 LeftOf(sibling, margin=LAYOUT_DEFAULT_MARGIN) 74 %End 75 76 void RightOf( 77 wxWindow * sibling, 78 int margin = wxLAYOUT_DEFAULT_MARGIN 79 ); 80 %Docstring 81 RightOf(sibling, margin=LAYOUT_DEFAULT_MARGIN) 82 %End 83 84 void Above( 85 wxWindow * sibling, 86 int margin = wxLAYOUT_DEFAULT_MARGIN 87 ); 88 %Docstring 89 Above(sibling, margin=LAYOUT_DEFAULT_MARGIN) 90 %End 91 92 void Below( 93 wxWindow * sibling, 94 int margin = wxLAYOUT_DEFAULT_MARGIN 95 ); 96 %Docstring 97 Below(sibling, margin=LAYOUT_DEFAULT_MARGIN) 98 %End 99 100 void SameAs( 101 wxWindow * otherW, 102 wxEdge edge, 103 int margin = wxLAYOUT_DEFAULT_MARGIN 104 ); 105 %Docstring 106 SameAs(otherW, edge, margin=LAYOUT_DEFAULT_MARGIN) 107 %End 108 109 void PercentOf( 110 wxWindow * otherW, 111 wxEdge wh, 112 int per 113 ); 114 %Docstring 115 PercentOf(otherW, wh, per) 116 %End 117 118 void Absolute( 119 int val 120 ); 121 %Docstring 122 Absolute(val) 123 %End 124 125 void Unconstrained(); 126 %Docstring 127 Unconstrained() 128 %End 129 130 void AsIs(); 131 %Docstring 132 AsIs() 133 %End 134 135 wxWindow * GetOtherWindow(); 136 %Docstring 137 GetOtherWindow() -> Window 138 %End 139 %MethodCode 140 PyErr_Clear(); 141 Py_BEGIN_ALLOW_THREADS 142 sipRes = _wxIndividualLayoutConstraint_GetOtherWindow(sipCpp); 143 Py_END_ALLOW_THREADS 144 if (PyErr_Occurred()) sipIsErr = 1; 145 %End 146 %TypeCode 147 wxWindow * _wxIndividualLayoutConstraint_GetOtherWindow(wxIndividualLayoutConstraint* self) 148 { 149 return (wxWindow*)self->GetOtherWindow(); 150 } 151 %End 152 153 wxEdge GetMyEdge() const; 154 %Docstring 155 GetMyEdge() -> Edge 156 %End 157 158 void SetEdge( 159 wxEdge which 160 ); 161 %Docstring 162 SetEdge(which) 163 %End 164 165 void SetValue( 166 int v 167 ); 168 %Docstring 169 SetValue(v) 170 %End 171 172 int GetMargin(); 173 %Docstring 174 GetMargin() -> int 175 %End 176 177 void SetMargin( 178 int m 179 ); 180 %Docstring 181 SetMargin(m) 182 %End 183 184 int GetValue() const; 185 %Docstring 186 GetValue() -> int 187 %End 188 189 int GetPercent() const; 190 %Docstring 191 GetPercent() -> int 192 %End 193 194 int GetOtherEdge() const; 195 %Docstring 196 GetOtherEdge() -> int 197 %End 198 199 bool GetDone() const; 200 %Docstring 201 GetDone() -> bool 202 %End 203 204 void SetDone( 205 bool d 206 ); 207 %Docstring 208 SetDone(d) 209 %End 210 211 wxRelationship GetRelationship(); 212 %Docstring 213 GetRelationship() -> Relationship 214 %End 215 216 void SetRelationship( 217 wxRelationship r 218 ); 219 %Docstring 220 SetRelationship(r) 221 %End 222 223 bool ResetIfWin( 224 wxWindow * otherW 225 ); 226 %Docstring 227 ResetIfWin(otherW) -> bool 228 %End 229 230 bool SatisfyConstraint( 231 wxLayoutConstraints * constraints, 232 wxWindow * win 233 ); 234 %Docstring 235 SatisfyConstraint(constraints, win) -> bool 236 %End 237 238 int GetEdge( 239 wxEdge which, 240 wxWindow * thisWin, 241 wxWindow * other 242 ) const; 243 %Docstring 244 GetEdge(which, thisWin, other) -> int 245 %End 246 247 %Property(name=Done, get=GetDone, set=SetDone) 248 %Property(name=Margin, get=GetMargin, set=SetMargin) 249 %Property(name=MyEdge, get=GetMyEdge) 250 %Property(name=OtherEdge, get=GetOtherEdge) 251 %Property(name=OtherWindow, get=GetOtherWindow) 252 %Property(name=Percent, get=GetPercent) 253 %Property(name=Relationship, get=GetRelationship, set=SetRelationship) 254 %Property(name=Value, get=GetValue, set=SetValue) 255}; // end of class wxIndividualLayoutConstraint 256 257 258class wxLayoutConstraints : wxObject 259{ 260 %Docstring 261 LayoutConstraints() 262 %End 263 %TypeHeaderCode 264 #include <wx/layout.h> 265 %End 266 267public: 268 wxLayoutConstraints(); 269 270 virtual 271 ~wxLayoutConstraints(); 272 273 wxIndividualLayoutConstraint left; 274 275 wxIndividualLayoutConstraint top; 276 277 wxIndividualLayoutConstraint right; 278 279 wxIndividualLayoutConstraint bottom; 280 281 wxIndividualLayoutConstraint width; 282 283 wxIndividualLayoutConstraint height; 284 285 wxIndividualLayoutConstraint centreX; 286 287 wxIndividualLayoutConstraint centreY; 288 289 bool SatisfyConstraints( 290 wxWindow * win, 291 int * noChanges 292 ); 293 %Docstring 294 SatisfyConstraints(win, noChanges) -> bool 295 %End 296 297 bool AreSatisfied() const; 298 %Docstring 299 AreSatisfied() -> bool 300 %End 301 302}; // end of class wxLayoutConstraints 303 304 305 306//--------------------------------------------------------------------------- 307 308