]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gdicmn.h
oops, make it build with wxbase too.
[wxWidgets.git] / include / wx / gdicmn.h
index a5845367228e1f0e5a8b02eee4858d62142cf581..9f206f30fcec33f9c0ee96702a450c2d441b52e6 100644 (file)
@@ -16,7 +16,7 @@
 // headers
 // ---------------------------------------------------------------------------
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(__APPLE__)
     #pragma interface "gdicmn.h"
 #endif
 
@@ -307,7 +307,10 @@ public:
     void SetHeight(int h) { height = h; }
 
     wxPoint GetPosition() const { return wxPoint(x, y); }
+    void SetPosition( const wxPoint &p ) { x = p.x; y = p.y; }
+
     wxSize GetSize() const { return wxSize(width, height); }
+    void SetSize( const wxSize &s ) { width = s.GetWidth(); height = s.GetHeight(); }
 
     int GetLeft()   const { return x; }
     int GetTop()    const { return y; }