6#ifndef KIS_VISUAL_RECTANGLE_SELECTOR_SHAPE_H
7#define KIS_VISUAL_RECTANGLE_SELECTOR_SHAPE_H
18 int channel1,
int channel2,
int width=20,
The KisVisualColorSelectorShape class A 2d widget can represent at maximum 2 coordinates....
Dimensions
The Dimensions enum Whether or not the shape is single or two dimensional.
The KisVisualColorSelector class.
void setBorderWidth(int width) override
setBorderWidth set the border of the single dimensional selector.
QRect getSpaceForSquare(QRect geom) override
getSpaceForSquare
QRegion getMaskMap() override
getPixmap
QRect getAvailableSpace(QRect geom, bool stretch)
void setOneDimensionalType(singelDTypes type)
QRect getSpaceForCircle(QRect geom) override
QRect getSpaceForTriangle(QRect geom) override
QImage renderAlphaMask() const override
render the alpha mask for the widget background the returned image is expected to be QImage::Format_A...
QPointF convertWidgetCoordinateToShapeCoordinate(QPointF coordinate) const override
convertWidgetCoordinateToShapeCoordinate Convert a coordinate in the widget's height/width to a shape...
void drawCursor(QPainter &painter) override
~KisVisualRectangleSelectorShape() override
KisVisualRectangleSelectorShape(KisVisualColorSelector *parent, Dimensions dimension, int channel1, int channel2, int width=20, KisVisualRectangleSelectorShape::singelDTypes d=KisVisualRectangleSelectorShape::vertical)
QPointF convertShapeCoordinateToWidgetCoordinate(QPointF coordinate) const override
convertShapeCoordinateToWidgetCoordinate