]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/window.h
added wxWindow::ClientToWindowSize and WindowToClientSize helpers
[wxWidgets.git] / include / wx / window.h
index 013426c8f80e1877375d33536654f199091830d7..4451f8f50d44dd74273417c10a974d9bf7e6c1e9 100644 (file)
@@ -355,6 +355,10 @@ public:
         return wxRect(GetClientAreaOrigin(), GetClientSize());
     }
 
+    // client<->window size conversion
+    virtual wxSize ClientToWindowSize(const wxSize& size) const;
+    virtual wxSize WindowToClientSize(const wxSize& size) const;
+
         // get the size best suited for the window (in fact, minimal
         // acceptable size using which it will still look "nice" in
         // most situations)