#include <winrect.h>
Public Member Functions | |
WinRect () | |
Default constructor for WinRect class. | |
WinRect (INT32 Left, INT32 Top, INT32 Right, INT32 Bottom) | |
Constructor for WinRect class. | |
const WinRect & | operator= (const wxRect &rect) |
INT32 | GetRightEx () const |
INT32 | GetBottomEx () const |
wxPoint | GetBottomRightEx () const |
void | SetRightEx (INT32 right) |
void | SetBottomEx (INT32 bottom) |
void | SetBottomRightEx (const wxPoint &pt) |
OilRect | ToOil (View *pView) const |
Converts a WinRect to an OilRect. |
Definition at line 122 of file winrect.h.
|
Default constructor for WinRect class.
Definition at line 133 of file winrect.cpp.
|
|
Constructor for WinRect class.
Definition at line 155 of file winrect.cpp.
|
|
Definition at line 139 of file winrect.h.
|
|
Definition at line 140 of file winrect.h.
|
|
Definition at line 138 of file winrect.h.
|
|
Definition at line 128 of file winrect.h. 00129 { 00130 x = rect.x; 00131 y = rect.y; 00132 width = rect.width; 00133 height = rect.height; 00134 return(*this); 00135 }
|
|
Definition at line 143 of file winrect.h.
|
|
Definition at line 144 of file winrect.h.
|
|
Definition at line 142 of file winrect.h.
|
|
Converts a WinRect to an OilRect.
Definition at line 175 of file winrect.cpp. 00176 { 00177 // Get pixel size for this view 00178 // NB. Previously this was done with 4 function calls! - Tim 00179 FIXED16 PixelWidth, PixelHeight; 00180 pView->GetPixelSize(&PixelWidth, &PixelHeight); 00181 00182 // Do the conversion and return the results. 00183 return OilRect(OilCoord(LongMulFixed16( x, PixelWidth ), 00184 -LongMulFixed16( y + height, PixelHeight ) ), 00185 OilCoord(LongMulFixed16( x + width, PixelWidth ), 00186 -LongMulFixed16( y, PixelHeight ) ) ); 00187 }
|