Krita
Scratchpad.cpp
44 connect(d->scratchpad, SIGNAL(viewportChanged(const QRect)), this, SIGNAL(viewportChanged(const QRect)));
168 KisGradientPainter::enumGradientShape gradientShapeValue = KisGradientPainter::GradientShapeLinear;
169 KisGradientPainter::enumGradientRepeat gradientRepeatValue = KisGradientPainter::GradientRepeatNone;
void fillBackground()
Fill the entire scratchpad with current background color.
Definition Scratchpad.cpp:151
void fillLayer(bool fullContent=true)
Fill the entire scratchpad with current layer content.
Definition Scratchpad.cpp:201
QRect contentBounds() const
The content of scratchpad can be bigger or smaller than scratchpad dimension.
Definition Scratchpad.cpp:221
void fillPattern(QTransform transform=QTransform())
Fill the entire scratchpad with current pattern.
Definition Scratchpad.cpp:211
void fillTransparent()
Fill the entire scratchpad with a transparent color.
Definition Scratchpad.cpp:146
QImage copyScratchpadImageData()
Take what is on the scratchpad area and grab image.
Definition Scratchpad.cpp:125
void scaleReset()
reset scale and pan to origin Note: call method is ignored if canvasZoomLink() is True
Definition Scratchpad.cpp:101
void setModeManually(bool value)
Switches between a GUI controlling the current mode and when mouse clicks control mode.
Definition Scratchpad.cpp:51
qreal scale()
return current zoom level applied on scratchpad (whatever the zoom source is: view zoom level or set ...
Definition Scratchpad.cpp:77
void linkCanvasZoom(bool value)
DEPRECATED – USE setCanvasZoomLink() instead Makes a connection between the zoom of the canvas and sc...
Definition Scratchpad.cpp:61
void setFillColor(QColor color)
Define default fill color for scratchpad.
Definition Scratchpad.cpp:136
void scaleToFit()
calculate scale automatically to fit scratchpad content in scratchpad viewport Note: call method is i...
Definition Scratchpad.cpp:92
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:161
void setCanvasZoomLink(bool value)
Makes a connection between the zoom of the canvas and scratchpad area so they zoom in sync.
Definition Scratchpad.cpp:67
void panTo(qint32 x, qint32 y)
pan scratchpad content to top-left position of scratchpad viewport Provided value are absolute
Definition Scratchpad.cpp:110
QRect viewportBounds() const
The viewport indicates which part of scratchpad content is visible.
Definition Scratchpad.cpp:216
void fillDocument(bool fullContent=true)
Fill the entire scratchpad with current document projection content.
Definition Scratchpad.cpp:206
void fillForeground()
Fill the entire scratchpad with current foreground color.
Definition Scratchpad.cpp:156
void clear()
Clears out scratchpad with color specified set during setup.
Definition Scratchpad.cpp:130
bool canvasZoomLink()
return if scratchpad zoom level is linked with current view zoom level
Definition Scratchpad.cpp:72
bool setScale(qreal scale) const
allow to manually set scratchpad zoom level Note: call method is ignored if canvasZoomLink() is True,
Definition Scratchpad.cpp:83
void loadScratchpadImage(QImage image)
Load image data to the scratchpad.
Definition Scratchpad.cpp:120
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 Mon Nov 4 2024 16:35:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:35:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.