X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1de8d512b7c844d67b2dab36addc89868e68c9b6..a02f7807ce4899bcd5b112b050ba2f8917f21805:/include/wx/gdicmn.h diff --git a/include/wx/gdicmn.h b/include/wx/gdicmn.h index b1e5d72c18..8462c37eb2 100644 --- a/include/wx/gdicmn.h +++ b/include/wx/gdicmn.h @@ -229,6 +229,9 @@ public: void DecTo(const wxSize& sz) { if ( sz.x < x ) x = sz.x; if ( sz.y < y ) y = sz.y; } + void Scale(float xscale, float yscale) + { x = (int)(x*xscale); y = (int)(y*yscale); } + // accessors void Set(int xx, int yy) { x = xx; y = yy; } void SetWidth(int w) { x = w; } @@ -414,6 +417,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; @@ -494,7 +499,7 @@ public: #endif }; -WX_DECLARE_STRING_HASH_MAP( wxColour *, wxStringToColourHashMap ); +WX_DECLARE_STRING_HASH_MAP(wxColour*, wxStringToColourHashMap); class WXDLLEXPORT wxColourDatabase { @@ -676,9 +681,6 @@ extern WXDLLEXPORT_DATA(const wxChar) wxPanelNameStr[]; extern WXDLLEXPORT_DATA(const wxSize) wxDefaultSize; extern WXDLLEXPORT_DATA(const wxPoint) wxDefaultPosition; -// The list of objects which should be deleted -extern WXDLLEXPORT_DATA(wxList) wxPendingDelete; - // --------------------------------------------------------------------------- // global functions // ---------------------------------------------------------------------------