Krita
Scratchpad.cpp
45 connect(d->scratchpad, SIGNAL(viewportChanged(const QRect)), this, SIGNAL(viewportChanged(const QRect)));
169 KisGradientPainter::enumGradientShape gradientShapeValue = KisGradientPainter::GradientShapeLinear;
170 KisGradientPainter::enumGradientRepeat gradientRepeatValue = KisGradientPainter::GradientRepeatNone;
void fillBackground()
Fill the entire scratchpad with current background color.
Definition Scratchpad.cpp:152
void fillLayer(bool fullContent=true)
Fill the entire scratchpad with current layer content.
Definition Scratchpad.cpp:202
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
void addWidget(QWidget *widget, int stretch, Qt::Alignment alignment)
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:51:16 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:51:16 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.