KritaWidgets
KisVisualRectangleSelectorShape.cpp
Go to the documentation of this file.
72 QPointF KisVisualRectangleSelectorShape::convertShapeCoordinateToWidgetCoordinate(QPointF coordinate) const
160 QPointF KisVisualRectangleSelectorShape::convertWidgetCoordinateToShapeCoordinate(QPointF coordinate) const
257 if (m_type==KisVisualRectangleSelectorShape::border || m_type==KisVisualRectangleSelectorShape::borderMirrored) {
258 mask = mask.subtracted(QRegion(m_barWidth, m_barWidth, width()-(m_barWidth*2), height()-(m_barWidth*2)));
266 // actual widget size in device pixels is not accessible unfortunately, it might be 1px smaller...
289 //qDebug() << this << "KisVisualRectangleSelectorShape::drawCursor: image needs update" << imagesNeedUpdate();
313 if (getDimensions() == KisVisualColorSelectorShape::onedimensional && m_type!=KisVisualRectangleSelectorShape::border && m_type!=KisVisualRectangleSelectorShape::borderMirrored) {
void append(const T &value)
int y() const
singelDTypes
Definition: KisVisualRectangleSelectorShape.h:15
void setPen(const QColor &color)
QPoint topLeft() const
QImage renderAlphaMask() const override
render the alpha mask for the widget background the returned image is expected to be QImage::Format_A...
Definition: KisVisualRectangleSelectorShape.cpp:263
void fill(uint pixelValue)
QRect getSpaceForCircle(QRect geom) override
Definition: KisVisualRectangleSelectorShape.cpp:62
void drawEllipse(const QRectF &rectangle)
void drawRect(const QRectF &rectangle)
QRect rect() const
Dimensions
The Dimensions enum Whether or not the shape is single or two dimensional.
Definition: KisVisualColorSelectorShape.h:45
void setBorderWidth(int width) override
setBorderWidth set the border of the single dimensional selector.
Definition: KisVisualRectangleSelectorShape.cpp:36
int width() const
QImage getImageMap()
Definition: KisVisualColorSelectorShape.cpp:156
int x() const
int x() const
int y() const
QPoint bottomRight() const
void setFullImage(QImage full)
setFullImage Set the full widget image to be painted.
Definition: KisVisualColorSelectorShape.cpp:350
void setCoords(int x1, int y1, int x2, int y2)
bool begin(QPaintDevice *device)
IntersectType intersect(const QLineF &line, QPointF *intersectionPoint) const
bool end()
void setStyle(Qt::BrushStyle style)
KisVisualRectangleSelectorShape(QWidget *parent, Dimensions dimension, const KoColorSpace *cs, int channel1, int channel2, const KoColorDisplayRendererInterface *displayRenderer=KoDumbColorDisplayRenderer::instance(), int width=20, KisVisualRectangleSelectorShape::singelDTypes d=KisVisualRectangleSelectorShape::vertical)
Definition: KisVisualRectangleSelectorShape.cpp:17
qreal length() const
void setBrush(const QBrush &brush)
The KisVisualColorSelectorShape class A 2d widget can represent at maximum 2 coordinates.
Definition: KisVisualColorSelectorShape.h:37
int height() const
int height() const
qreal x() const
qreal y() const
QRegion mask() const
void setColor(const QColor &color)
QPoint toPoint() const
~KisVisualRectangleSelectorShape() override
Definition: KisVisualRectangleSelectorShape.cpp:31
const QRect & geometry() const
QRect getSpaceForTriangle(QRect geom) override
Definition: KisVisualRectangleSelectorShape.cpp:67
QPointF pointAt(qreal t) const
QRegion subtracted(const QRegion &r) const
void setRenderHint(RenderHint hint, bool on)
int width() const
QRect getSpaceForSquare(QRect geom) override
getSpaceForSquare
Definition: KisVisualRectangleSelectorShape.cpp:41
QColor getColorFromConverter(KoColor c)
getColorFromConverter
Definition: KisVisualColorSelectorShape.cpp:129
QPointF p1() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Jan 23 2021 11:48:22 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Jan 23 2021 11:48:22 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.