X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c2c4d939f3e2c3971f56a0f741a575b5a4aae094..ce4b7808ca940be201422a066de141ca12f13863:/include/wx/gdicmn.h diff --git a/include/wx/gdicmn.h b/include/wx/gdicmn.h index 8a9d5df822..bc3efb2c50 100644 --- a/include/wx/gdicmn.h +++ b/include/wx/gdicmn.h @@ -229,6 +229,15 @@ public: void DecTo(const wxSize& sz) { if ( sz.x < x ) x = sz.x; if ( sz.y < y ) y = sz.y; } + void IncBy(int dx, int dy) { x += dx; y += dy; } + void IncBy(const wxSize& sz) { IncBy(sz.x, sz.y); } + void IncBy(int d) { IncBy(d, d); } + + void DecBy(int dx, int dy) { IncBy(-dx, -dy); } + void DecBy(const wxSize& sz) { DecBy(sz.x, sz.y); } + void DecBy(int d) { DecBy(d, d); } + + void Scale(float xscale, float yscale) { x = (int)(x*xscale); y = (int)(y*yscale); }