Krita
Scratchpad.h
92 * @param fullContent when True, full document projection is loaded in scratchpad, otherwise only content matching scratchpad viewport is loaded
98 * @param fullContent when True, full layer content is loaded in scratchpad, otherwise only content matching scratchpad viewport is loaded
139 * @return return True if connection between the zoom of the canvas and scratchpad (so they zoom in sync) is active
144 * @brief Makes a connection between the zoom of the canvas and scratchpad area so they zoom in sync
151 * @brief return current zoom level applied on scratchpad (whatever the zoom source is: view zoom level or set manually)
void contentChanged()
signal is emitted when scratchpad content is changed (stroke or fill)
void fillBackground()
Fill the entire scratchpad with current background color.
Definition Scratchpad.cpp:152
void scaleChanged(qreal scale)
signal is emitted when scratchpad scale is changed (from zoom canvas or manually)
void fillLayer(bool fullContent=true)
Fill the entire scratchpad with current layer content.
Definition Scratchpad.cpp:202
void viewportChanged(const QRect rect)
signal is emitted when scratchpad viewport has been modified (pan, zoom)
QRect contentBounds() const
The content of scratchpad can be bigger or smaller than scratchpad dimension.
Definition Scratchpad.cpp:222
void fillPattern(QTransform transform=QTransform())
Fill the entire scratchpad with current pattern.
Definition Scratchpad.cpp:212
void fillTransparent()
Fill the entire scratchpad with a transparent color.
Definition Scratchpad.cpp:147
QImage copyScratchpadImageData()
Take what is on the scratchpad area and grab image.
Definition Scratchpad.cpp:126
void scaleReset()
reset scale and pan to origin Note: call method is ignored if canvasZoomLink() is True
Definition Scratchpad.cpp:102
void setModeManually(bool value)
Switches between a GUI controlling the current mode and when mouse clicks control mode.
Definition Scratchpad.cpp:52
qreal scale()
return current zoom level applied on scratchpad (whatever the zoom source is: view zoom level or set ...
Definition Scratchpad.cpp:78
void linkCanvasZoom(bool value)
DEPRECATED – USE setCanvasZoomLink() instead Makes a connection between the zoom of the canvas and sc...
Definition Scratchpad.cpp:62
void setFillColor(QColor color)
Define default fill color for scratchpad.
Definition Scratchpad.cpp:137
void scaleToFit()
calculate scale automatically to fit scratchpad content in scratchpad viewport Note: call method is i...
Definition Scratchpad.cpp:93
void fillGradient(const QPoint &gradientVectorStart=QPoint(), const QPoint &gradientVectorEnd=QPoint(), const QString &gradientShape="linear", const QString &gradientRepeat="none", bool reverseGradient=false, bool dither=false)
Fill the entire scratchpad with current gradient.
Definition Scratchpad.cpp:162
void setCanvasZoomLink(bool value)
Makes a connection between the zoom of the canvas and scratchpad area so they zoom in sync.
Definition Scratchpad.cpp:68
void panTo(qint32 x, qint32 y)
pan scratchpad content to top-left position of scratchpad viewport Provided value are absolute
Definition Scratchpad.cpp:111
QRect viewportBounds() const
The viewport indicates which part of scratchpad content is visible.
Definition Scratchpad.cpp:217
void fillDocument(bool fullContent=true)
Fill the entire scratchpad with current document projection content.
Definition Scratchpad.cpp:207
void fillForeground()
Fill the entire scratchpad with current foreground color.
Definition Scratchpad.cpp:157
void clear()
Clears out scratchpad with color specified set during setup.
Definition Scratchpad.cpp:131
bool canvasZoomLink()
return if scratchpad zoom level is linked with current view zoom level
Definition Scratchpad.cpp:73
bool setScale(qreal scale) const
allow to manually set scratchpad zoom level Note: call method is ignored if canvasZoomLink() is True,
Definition Scratchpad.cpp:84
void loadScratchpadImage(QImage image)
Load image data to the scratchpad.
Definition Scratchpad.cpp:121
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
QWidget(QWidget *parent, Qt::WindowFlags f)
rect
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:51:04 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:51:04 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.