Module implementing the base class of all canvas items.
E4CanvasItem | Class implementing the base class of all canvas items. |
None |
Class implementing the base class of all canvas items.
E4CanvasItem | Constructor |
_adaptCanvasSize | Protected method to update the size of the canvas. |
boundingRect | Public method to get the bounding rectangle. |
drawSelected | Public method to draw the widget as selected. |
drawShape | Public method to draw the shape. |
getBrush | Public method to get the current brush. |
getCanvas | Public method to get a reference to the canvas object. |
getOrigin | Public method to get the origin of the item. |
getPen | Public method to get the current pen. |
hide | Public method to hide the item. |
isSelected | Public method to check the items selection status. |
isVisible | Public method to check the items visibility. |
move | Public method to move the item to an absolute position. |
moveBy | Public method to move the item relative to its current position. |
setCanvas | Public method to set the items canvas. |
setSelected | Public method to set the items selection status. |
setVisible | Public method to set the items visibility. |
setX | Public method to set the x-coordinate of the origin. |
setY | Public method to set the x-coordinate of the origin. |
setZ | Public method to set the z-coordinate of the item. |
show | Public method to show the item. |
update | Protected method to update the canvas' changed parts. |
x | Public method to get the x-coordinate. |
y | Public method to get the y-coordinate. |
z | Public method to get the z-coordinate. |
Constructor
Protected method to update the size of the canvas.
This method does never shrink the canvas.
Public method to get the bounding rectangle.
Public method to draw the widget as selected.
Public method to draw the shape.
Note: This method must be overridden by implementation classes.
Public method to get the current brush.
Public method to get a reference to the canvas object.
Public method to get the origin of the item.
Public method to get the current pen.
Public method to hide the item.
Public method to check the items selection status.
Public method to check the items visibility.
Public method to move the item to an absolute position.
Public method to move the item relative to its current position.
Public method to set the items canvas.
Public method to set the items selection status.
Public method to set the items visibility.
Public method to set the x-coordinate of the origin.
Public method to set the x-coordinate of the origin.
Public method to set the z-coordinate of the item.
Public method to show the item.
Protected method to update the canvas' changed parts.
Public method to get the x-coordinate.
Public method to get the y-coordinate.
Public method to get the z-coordinate.