]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gdicmn.h
define wxGetenv() for WinCE which doesn't have _tgetenv() to always return NULL
[wxWidgets.git] / include / wx / gdicmn.h
index a4541556166fb8025c444614c42f329f9028c0a4..968feded8829599274169eb1782dac932d6dc368 100644 (file)
@@ -346,6 +346,8 @@ public:
     wxSize GetSize() const { return wxSize(width, height); }
     void SetSize( const wxSize &s ) { width = s.GetWidth(); height = s.GetHeight(); }
 
+    bool IsEmpty() const { return (width <= 0) || (height <= 0); }
+
     wxPoint GetTopLeft() const { return GetPosition(); }
     wxPoint GetLeftTop() const { return GetTopLeft(); }
     void SetTopLeft(const wxPoint &p) { SetPosition(p); }