[ 1518434 ] wxSize::Scale with wxScale and wxPoint operators documented

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40257 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2006-07-24 08:26:38 +00:00
parent 7d70c3095c
commit 8efb290702
3 changed files with 86 additions and 10 deletions

View File

@@ -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; }