Canvas
#include <Canvas.h>
Public Slots | |
bool | levelOfDetailMode () const |
bool | mirror () const |
void | resetRotation () |
void | resetZoom () |
qreal | rotation () const |
void | setLevelOfDetailMode (bool enable) |
void | setMirror (bool value) |
void | setRotation (qreal angle) |
void | setWrapAroundMode (bool enable) |
void | setZoomLevel (qreal value) |
View * | view () const |
bool | wrapAroundMode () const |
qreal | zoomLevel () const |
Detailed Description
Canvas wraps the canvas inside a view on an image/document.
It is responsible for the view parameters of the document: zoom, rotation, mirror, wraparound and instant preview.
Constructor & Destructor Documentation
◆ Canvas()
|
explicit |
Definition at line 21 of file Canvas.cpp.
◆ ~Canvas()
|
override |
Definition at line 28 of file Canvas.cpp.
Member Function Documentation
◆ levelOfDetailMode
|
slot |
- Returns
- true if the canvas is in Instant Preview mode, false if not. Only when OpenGL is enabled, is Instant Preview mode available.
Definition at line 120 of file Canvas.cpp.
◆ mirror
|
slot |
- Returns
- return true if the canvas is mirrored, false otherwise.
Definition at line 83 of file Canvas.cpp.
◆ operator!=()
Definition at line 39 of file Canvas.cpp.
◆ operator==()
bool Canvas::operator== | ( | const Canvas & | other | ) | const |
Definition at line 34 of file Canvas.cpp.
◆ resetRotation
|
slot |
resetRotation reset the canvas rotation.
Definition at line 64 of file Canvas.cpp.
◆ resetZoom
|
slot |
resetZoom set the zoomlevel to 100%
Definition at line 57 of file Canvas.cpp.
◆ rotation
|
slot |
- Returns
- the rotation of the canvas in degrees.
Definition at line 70 of file Canvas.cpp.
◆ setLevelOfDetailMode
|
slot |
setLevelOfDetailMode sets Instant Preview to
- Parameters
-
enable
Definition at line 126 of file Canvas.cpp.
◆ setMirror
|
slot |
setMirror turn the canvas mirroring on or off depending on
- Parameters
-
value
Definition at line 89 of file Canvas.cpp.
◆ setRotation
|
slot |
setRotation set the rotation of the canvas to the given
- Parameters
-
angle in degrees.
Definition at line 76 of file Canvas.cpp.
◆ setWrapAroundMode
|
slot |
setWrapAroundMode set wraparound mode to
- Parameters
-
enable
Definition at line 114 of file Canvas.cpp.
◆ setZoomLevel
|
slot |
setZoomLevel set the zoomlevel to the given value
.
1.0 is 100%.
Definition at line 51 of file Canvas.cpp.
◆ view
|
slot |
- Returns
- the view that holds this canvas
Definition at line 95 of file Canvas.cpp.
◆ wrapAroundMode
|
slot |
- Returns
- true if the canvas is in wraparound mode, false if not. Only when OpenGL is enabled, is wraparound mode available.
Definition at line 108 of file Canvas.cpp.
◆ zoomLevel
|
slot |
- Returns
- the current zoomlevel. 1.0 is 100%.
Definition at line 45 of file Canvas.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 14 2024 11:53:13 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.