31 KisCursor::load(
"tool_rectangular_selection_cursor.png", 6, 6))
33 setObjectName(
"tool_select_rectangular");
49 QRect rc(
rect.normalized().toRect());
82 if (roundCornersX > 0 || roundCornersY > 0) {
83 path.addRoundedRect(rc, roundCornersX, roundCornersY);
90 [tmpSel, antiAlias, grow, feather, path]()
mutable
109 }
else if (grow < 0) {
122 if (grow == 0 && feather == 0) {
137 const qreal docRoundCornersX =
convertToPt(roundCornersX);
138 const qreal docRoundCornersY =
convertToPt(roundCornersY);
QVector< KisImageSignalType > KisImageSignalVector
KisViewManager * viewManager() const
static QCursor load(const QString &cursorName, int hotspotX=-1, int hotspotY=-1)
void process(KisPixelSelectionSP pixelSelection, const QRect &rect) override
void process(KisPixelSelectionSP pixelSelection, const QRect &rect) override
const KoColorSpace * colorSpace() const
@ FillStyleForegroundColor
void paintPainterPath(const QPainterPath &path)
void setStrokeStyle(StrokeStyle strokeStyle)
Set the current brush stroke style.
void setFillStyle(FillStyle fillStyle)
Set the current style with which to fill.
void setPaintColor(const KoColor &color)
void setAntiAliasPolygonFill(bool antiAliasPolygonFill)
Set whether a polygon's filled area should be anti-aliased or not. The default is true.
void applyCommand(KUndo2Command *command, KisStrokeJobData::Sequentiality sequentiality=KisStrokeJobData::SEQUENTIAL, KisStrokeJobData::Exclusivity exclusivity=KisStrokeJobData::NORMAL)
void process(KisPixelSelectionSP pixelSelection, const QRect &rect) override
KisSelectionSP selection()
void rotate(qreal angle)
Rotate the shape (relative)
KUndo2MagicString kundo2_i18n(const char *text)
The LambdaCommand struct is a shorthand for creation of AggregateCommand commands using C++ lambda fe...
void invalidateOutlineCache()
void setOutlineCache(const QPainterPath &cache)
QRect selectedRect() const