Module implementing a canvas class.
E4Canvas | Class implementing a canvas. |
None |
Class implementing a canvas.
E4Canvas | Constructor |
addItem | Public method to add an item to the canvas. |
clear | Public method to clear the canvas. |
collisions | Public method returning all items that collide with a point or rectangle. |
getCanvasHeight | Public method to get the canvas height. |
getCanvasSize | Public method to get the canvas size. |
getCanvasWidth | Public method to get the canvas width. |
getItems | Public method to get all items of the canvas. |
getSelectedItems | Public method to retrieve all selected items. |
paintEvent | Protected overridden method to paint the canvas. |
removeItem | Public method to remove an item from the canvas. |
resizeEvent | Protected overridden method to handle resize events. |
setCanvasSize | Public method to set the canvas size. |
setZoom | Public method to set the zoom level. |
sizeHint | Public method to give a size hint. |
zoom | Public method to get the zoom level. |
Constructor
Public method to add an item to the canvas.
Public method to clear the canvas.
Note: This does not delete the items.
Public method returning all items that collide with a point or rectangle.
Public method to get the canvas height.
Public method to get the canvas size.
Public method to get the canvas width.
Public method to get all items of the canvas.
Public method to retrieve all selected items.
Protected overridden method to paint the canvas.
Public method to remove an item from the canvas.
Protected overridden method to handle resize events.
Public method to set the canvas size.
Public method to set the zoom level.
Public method to give a size hint.
Public method to get the zoom level.