]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gdicmn.h
Also set GTK text direction to m_wxwindow.
[wxWidgets.git] / include / wx / gdicmn.h
index bc7cd6d11464a6b6b25a394751eee5831dc8bf6d..1c02e3dfc972edcf2dd79f716ecf6e88819aa8ff 100644 (file)
@@ -307,6 +307,8 @@ public:
 
     wxPoint operator+(const wxSize& s) const { return wxPoint(x + s.GetWidth(), y + s.GetHeight()); }
     wxPoint operator-(const wxSize& s) const { return wxPoint(x - s.GetWidth(), y - s.GetHeight()); }
+
+    wxPoint operator-() const { return wxPoint(-x, -y); }
 };
 
 // ---------------------------------------------------------------------------
@@ -417,6 +419,8 @@ public:
     // return true if the point is (not strcitly) inside the rect
     bool Inside(int x, int y) const;
     bool Inside(const wxPoint& pt) const { return Inside(pt.x, pt.y); }
+    // return true if the rectangle is (not strcitly) inside the rect
+    bool Inside(const wxRect& rect) const;
 
     // return true if the rectangles have a non empty intersection
     bool Intersects(const wxRect& rect) const;
@@ -539,7 +543,7 @@ public:
 #if !wxUSE_STL
     wxResourceCache(const unsigned int keyType) : wxList(keyType) { }
 #endif
-    ~wxResourceCache();
+    virtual ~wxResourceCache();
 };
 
 // ---------------------------------------------------------------------------