#include <qjpixmapview.h>
Public Slots | |
| void | setZoom (double zoom) |
Signals | |
| void | zoomChanged (double) |
Public Member Functions | |
| QjPixmapView (QWidget *parent=0, char *name=0) | |
| QjPixmapView (const QPixmap &pm, QWidget *parent=0, char *name=0) | |
| QjPixmapView (double zoom, const QPixmap &pm, QWidget *parent=0, char *name=0) | |
| void | clear () |
| void | setPixmap (const QPixmap &pm) |
| void | setPixmapAndZoom (double zoom, const QPixmap &pm) |
Protected Member Functions | |
| QPoint | pmToViewport (const QPoint &p) |
| QPoint | viewportToPm (const QPoint &p) |
| virtual void | drawContents (QPainter *p, int clipx, int clipy, int clipw, int cliph) |
|
||||||||||||
|
Creates and empty pixmap view. |
|
||||||||||||||||
|
Creates a pixmap view at 1:1 zoom factor. |
|
||||||||||||||||||||
|
Creates a pixmap view with a custom zoom factor. |
|
|
Clears the pixmap view. |
|
||||||||||||||||||||||||
|
Draws the actual contents. |
|
|
Converts a point (i.e. a co-ordinate) from pixmap co-ordinates to viewportco-ordinates. By converting a viewport coordinate to a pixmap coordinate and then back again the coordinate will snap to pixel boundaries. |
|
|
Assigns the view with a new pixmap. |
|
||||||||||||
|
Assigns the view with a new pixmap and sets the zoom factor. |
|
|
Alters the zoom factor. |
|
|
Converts a point( i.e. a co-ordinate) from viewport co-ordinates to pixmap co-ordinates. |
|
|
Emitted when the zoom factor is altered. |
1.3.7