// None/NULL is now handled properly by the typemap, so these are not needed.
// %extend {
-// bool __eq__(const wxSize* other) { return other ? (*self == *other) : False; }
-// bool __ne__(const wxSize* other) { return other ? (*self != *other) : True; }
+// bool __eq__(const wxSize* other) { return other ? (*self == *other) : false; }
+// bool __ne__(const wxSize* other) { return other ? (*self != *other) : true; }
// }
DocDeclStr(
wxRect(const wxPoint& pos, const wxSize& size),
"Create a new Rect from a position and size.", "",
RectPS);
-
+
+ DocCtorStrName(
+ wxRect(const wxSize& size),
+ "Create a new Rect from a size only.", "",
+ RectS);
+
~wxRect();
int GetX() const;
};
+MustHaveApp(wxIntersectRect);
+
DocAStr(wxIntersectRect,
"IntersectRect(Rect r1, Rect r2) -> Rect",
"Calculate and return the intersection of r1 and r2.", "");
if (dest != wxRect(0,0,0,0)) {
bool blocked = wxPyBeginBlockThreads();
wxRect* newRect = new wxRect(dest);
- obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), True);
+ obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), true);
wxPyEndBlockThreads(blocked);
return obj;
}