karbon
VCanvas Class Reference
List of all members.Detailed Description
Definition at line 34 of file vcanvas.h.
Signals | |
void | viewportChanged () |
Public Member Functions | |
VCanvas (QWidget *parent, KarbonView *view, KarbonPart *part) | |
virtual | ~VCanvas () |
void | repaintAll (const KoRect &) |
void | repaintAll (bool drawVObjects=true) |
QPixmap * | pixmap () |
void | setPos (const KoPoint &p) |
KoPoint | toViewport (const KoPoint &) const |
KoPoint | toContents (const KoPoint &) const |
KoRect | boundingBox () const |
void | setViewport (double centerX, double centerY) |
void | setViewportRect (const KoRect &rect) |
int | pageOffsetX () const |
int | pageOffsetY () const |
KoPoint | snapToGrid (const KoPoint &) |
Protected Member Functions | |
virtual void | dragEnterEvent (QDragEnterEvent *) |
virtual void | dropEvent (QDropEvent *) |
virtual void | focusInEvent (QFocusEvent *) |
virtual void | viewportPaintEvent (QPaintEvent *) |
virtual void | drawContents (QPainter *painter, int clipx, int clipy, int clipw, int cliph) |
void | drawDocument (QPainter *painter, const KoRect &rect, bool drawVObjects=true) |
virtual void | resizeEvent (QResizeEvent *event) |
virtual bool | eventFilter (QObject *object, QEvent *event) |
void | setYMirroring (VPainter *) |
Member Function Documentation
void VCanvas::repaintAll | ( | const KoRect & | ) |
void VCanvas::setPos | ( | const KoPoint & | p | ) |
void VCanvas::setViewport | ( | double | centerX, | |
double | centerY | |||
) |
Adjusts the viewport top-left position.
This doesn't change the zoom level. Note that centerX and centerY is a value between 0.0 and 1.0, indicating a percentage of the total width/height. Thus centerX/centerY indicates the center of the viewport.
Definition at line 264 of file vcanvas.cc.
void VCanvas::setViewportRect | ( | const KoRect & | rect | ) |
Sets the canvas viewport rectangle to rect.
The zoom level is adjusted for this, if needed.
Definition at line 271 of file vcanvas.cc.
The documentation for this class was generated from the following files: