The Shape class The shape class is a wrapper around Krita's vector objects.
Some example code to parse through interesting information in a given vector layer with shapes.
Methods
Re-implemented methods
Member documentation
transformation the 2D transformation matrix of the shape including all grandparent transforms.
Return
the 2D transformation matrix. |
the bounding box of the shape in points
Return
RectF containing the bounding box. |
Return
whether the shape is protected from user changing the shape geometry. |
the position of the shape in points.
Return
the position of the shape in points. |
Parameters
protect | whether the shape should be geometry protected from the user. |
set the position of the shape.
Parameters
point | the new position in points |
Parameters
selectable | whether the shape should be user selectable. |
set the 2D transformation matrix of the shape.
Parameters
matrix | the new 2D transformation matrix. |
convert the shape to svg, will not include style definitions.
Parameters
prependStyles | prepend the style data. Default: false |
stripTextMode | enable strip text mode. Default: true |
Return
the svg in a string. |
the 2D transformation matrix of the shape.
Return
the 2D transformation matrix. |
queue the shape update in the specified rectangle.
Parameters
box | the RectF rectangle to update. |