#include <resizec.h>
Public Member Functions | |
wxZoomData () | |
Ctor. | |
wxZoomData (const wxSize &size, const wxPoint &pos) | |
Ctor. | |
void | SetZoomSize (wxWindow *Window, float zoom) |
Set new zoom factor (changes size only). | |
void | SetZoomRect (wxWindow *Window, float zoom, int curxoffs, int curyoffs, int newxoffs, int newyoffs) |
Set new zoom factor (position and size). | |
void | SetCurrentZoom (float zoom) |
Changes zoom factor without resizing the window. | |
float | GetZoom () |
Returns the set zoom factor. | |
void | SetSize (int width, int height) |
Updates the original window size. | |
void | Move (int xpos, int ypos) |
Updates the original window position. | |
Private Attributes | |
wxSize | m_orgSize |
Original window size. | |
wxPoint | m_orgPos |
Original window pos. | |
wxRect | m_currRect |
Current window size. | |
float | m_zoom |
Current zoom factor. |
Stores the original size of the window, so that Zooming is always computed from this data, and thus rounding errors are avoided.
Definition at line 29 of file resizec.h.
|
Ctor.
|
|
Ctor.
|
|
Returns the set zoom factor.
Definition at line 72 of file resizec.h. References m_zoom. |
|
Updates the original window position.
Definition at line 64 of file resizec.cpp. References m_currRect, m_orgPos, and m_zoom. Referenced by wxResizeableControl::DoSetSize(), and wxResizeableControl::OnMove(). |
|
Changes zoom factor without resizing the window.
Definition at line 63 of file resizec.h. References m_orgPos, m_orgSize, and m_zoom. Referenced by wxResizeableControl::SetCurrentZoom(). |
|
Updates the original window size.
Definition at line 52 of file resizec.cpp. Referenced by wxResizeableControl::DoSetSize(), and wxResizeableControl::OnSize(). |
|
Set new zoom factor (position and size). curxoffs and curyoffs are the current offset values (e. g. scroll position) in absolute size (unzoomed) newxoffs and newyoffs are the new offset values Definition at line 76 of file resizec.cpp. References m_currRect, m_orgPos, m_orgSize, and m_zoom. |
|
Set new zoom factor (changes size only).
Definition at line 46 of file resizec.h. References m_currRect, m_orgSize, and m_zoom. Referenced by wxResizeableControl::SetZoom(). |
|
Current window size.
Definition at line 36 of file resizec.h. Referenced by Move(), SetZoomRect(), and SetZoomSize(). |
|
Original window pos.
Definition at line 34 of file resizec.h. Referenced by Move(), SetCurrentZoom(), and SetZoomRect(). |
|
Original window size.
Definition at line 32 of file resizec.h. Referenced by SetCurrentZoom(), SetZoomRect(), and SetZoomSize(). |
|
Current zoom factor.
Definition at line 38 of file resizec.h. Referenced by GetZoom(), Move(), SetCurrentZoom(), SetZoomRect(), and SetZoomSize(). |