Krita
Selection.cpp
132 KisHLineConstIteratorSP selectionIt = selectionProjection->createHLineIteratorNG(rc.x(), rc.y(), rc.width());
187 QRect rc = esf.changeRect(d->selection->selectedExactRect(), d->selection->pixelSelection()->defaultBounds());
195 QRect rc = dsf.changeRect(d->selection->selectedExactRect(), d->selection->pixelSelection()->defaultBounds());
203 QRect rc = sf.changeRect(d->selection->selectedExactRect(), d->selection->pixelSelection()->defaultBounds());
211 QRect rc = fsf.changeRect(d->selection->selectedExactRect(), d->selection->pixelSelection()->defaultBounds());
219 QRect rc = gsf.changeRect(d->selection->selectedExactRect(), d->selection->pixelSelection()->defaultBounds());
228 QRect rc = sf.changeRect(d->selection->selectedExactRect(), d->selection->pixelSelection()->defaultBounds());
236 QRect rc = sf.changeRect(d->selection->selectedExactRect(), d->selection->pixelSelection()->defaultBounds());
245 QRect rc = sf.changeRect(d->selection->selectedExactRect(), d->selection->pixelSelection()->defaultBounds());
270 d->selection->pixelSelection()->applySelection(selection->selection()->pixelSelection(), SELECTION_REPLACE);
276 d->selection->pixelSelection()->applySelection(selection->selection()->pixelSelection(), SELECTION_ADD);
282 d->selection->pixelSelection()->applySelection(selection->selection()->pixelSelection(), SELECTION_SUBTRACT);
288 d->selection->pixelSelection()->applySelection(selection->selection()->pixelSelection(), SELECTION_INTERSECT);
void contract(int value)
Make the selection's width and height smaller by the given value.
Definition: Selection.cpp:107
void selectAll(Node *node, int value)
Select all pixels in the given node.
Definition: Selection.cpp:261
QPoint topLeft() const const
void move(int x, int y)
Move the selection's top-left corner to the given coordinates.
Definition: Selection.cpp:94
Selection(KisSelectionSP selection, QObject *parent=0)
For internal use only.
Definition: Selection.cpp:26
void setPixelData(QByteArray value, int x, int y, int w, int h)
setPixelData writes the given bytes, of which there must be enough, into the Selection.
Definition: Selection.cpp:310
QByteArray pixelData(int x, int y, int w, int h) const
pixelData reads the given rectangle from the Selection's mask and returns it as a byte array.
Definition: Selection.cpp:298
void intersect(Selection *selection)
Intersect the given selection with this selection.
Definition: Selection.cpp:285
int width() const const
int x() const const
void symmetricdifference(Selection *selection)
Intersect with the inverse of the given selection with this selection.
Definition: Selection.cpp:291
int y() const const
void grow(int xradius, int yradius)
Grow the selection with the given radius.
Definition: Selection.cpp:215
void replace(Selection *selection)
Replace the current selection's selection with the one of the given selection.
Definition: Selection.cpp:267
void resize(int w, int h)
Resize the selection to the given width and height.
Definition: Selection.cpp:249
void add(Selection *selection)
Add the given selection's selected pixels to the current selection.
Definition: Selection.cpp:273
void subtract(Selection *selection)
Subtract the given selection's selected pixels from the current selection.
Definition: Selection.cpp:279
void copy(Node *node)
copy copies the area defined by the selection from the node to the clipboard.
Definition: Selection.cpp:113
void paste(Node *destination, int x, int y)
paste pastes the content of the clipboard to the given node, limited by the area of the current selec...
Definition: Selection.cpp:166
void cut(Node *node)
cut erases the area defined by the selection from the node and puts a copy on the clipboard.
Definition: Selection.cpp:154
int height() const const
void select(int x, int y, int w, int h, int value)
Select the given area.
Definition: Selection.cpp:255
const char * constData() const const
void shrink(int xRadius, int yRadius, bool edgeLock)
Shrink the selection with the given radius.
Definition: Selection.cpp:224
void border(int xRadius, int yRadius)
Border the selection with the given radius.
Definition: Selection.cpp:199
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Sep 27 2023 03:58:14 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Sep 27 2023 03:58:14 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.