#include <ImageBox.h>
Inheritance diagram for wxImageBox:
Public Member Functions | |
wxImageBox (wxWindow *parent, wxWindowID id=-1) | |
Constructs a image box. | |
bool | LoadFile (wxString fname) |
Loads an image from a file. | |
virtual void | Clear () |
Creates a empty image. | |
virtual bool | IsEmpty () |
Returns true if image is not empty. | |
virtual void | Update () |
Causes a event to be generated to repaint the image box. | |
virtual void | UpdatePaintBox () |
Repaints the image box. | |
void | SetScale (double scale=scFIT_TO_PAGE) |
Adjusts a zoom factor/level. | |
float | GetScale () |
Returns the current zoom factor/level. | |
float | GetScaleValue () |
Returns the current zoom factor. | |
wxImage & | GetImage () |
Returns the image. | |
void | SetPopupMenu (wxMenu *menu) |
Sets the pop up menu. | |
wxMenu * | GetPopupMenu () |
Returns the pop up menu if it was set, or null otherwise. | |
Protected Member Functions | |
bool | UpdateScaleValue () |
wxRect | getPaintRect () |
virtual void | Paint () |
virtual void | PaintImg (wxImage &img) |
void | OnPaint (wxPaintEvent &event) |
void | OnResize (wxSizeEvent &event) |
virtual void | OnMouseRightButton (wxMouseEvent &event) |
Protected Attributes | |
wxImage | m_image |
double | m_scale |
double | m_scaleV |
bool | m_repaint |
wxMenu * | m_pmenu |
|
Adjusts a zoom factor/level.
Zoom level can be: |