|
Walls And Holes
1
|
#include <tilemapbrushtool.h>


Public Member Functions | |
| TileMapBrushTool (TileMapPreviewGraphicsItem *previewItem, QUndoStack *undoStack) | |
| void | cellActivated (int x, int y, QMouseEvent *) override |
| Called when the left mouse button is down over a new cell. More... | |
| void | cellHovered (int x, int y, QMouseEvent *) override |
| Called when the mouse hovers over a new cell. More... | |
| void | cellReleased (int, int, QMouseEvent *) override |
| Called when the left mouse button is released over a cell. More... | |
| void | mouseExitedMap (QMouseEvent *) |
| Called when the mouse is no longer hovering over a cell. More... | |
| QList< QAction * > | contextActions () override |
| Returns a vector of qactions which can be used to modify the behaviour of the tool. Will be used by the tool manager to add the actions to a context tool bar. More... | |
Public Member Functions inherited from AbstractTileMapTool | |
| AbstractTileMapTool (TileMapPreviewGraphicsItem *previewItem) | |
| void | setTileMap (TileMap *tileMap) |
| void | setTileTemplate (TileTemplate *tileTemplate) |
| virtual void | toolTileMapChanged (TileMap *previous=nullptr) |
| Called whenever mTileMap changes. Called in constructor. More... | |
| virtual void | cellClicked (int, int, QMouseEvent *) |
| Called the first time the left mouse button is pressed over a cell. More... | |
Public Member Functions inherited from AbstractTool | |
| virtual | ~AbstractTool () |
| virtual void | activate () |
| Activates the tool. This is called before the tool is used. More... | |
| virtual void | deactivate () |
| Deactivates the tool. This is called before the tool stops being used. More... | |
| virtual void | mousePressEvent (QMouseEvent *) |
| virtual void | mouseReleaseEvent (QMouseEvent *) |
| virtual void | mouseMoveEvent (QMouseEvent *) |
| virtual void | wheelEvent (QWheelEvent *) |
Additional Inherited Members | |
Protected Member Functions inherited from AbstractTileMapTool | |
| TileMap * | getTileMap () const |
| TileTemplate * | getTileTemplate () const |
Protected Attributes inherited from AbstractTileMapTool | |
| TileMapPreviewGraphicsItem *const | mPreviewItem |
| TileMapBrushTool::TileMapBrushTool | ( | TileMapPreviewGraphicsItem * | previewItem, |
| QUndoStack * | undoStack | ||
| ) |
|
overridevirtual |
Called when the left mouse button is down over a new cell.
This function is invoked when the mouse button is pressed down or when the mouse moves over a new cell while pressed down.
| x | The cell's x position. |
| y | The cell's y position. |
Reimplemented from AbstractTileMapTool.

|
overridevirtual |
Called when the mouse hovers over a new cell.
| x | The cell's x position. |
| y | The cell's y position. |
Reimplemented from AbstractTileMapTool.

|
overridevirtual |
Called when the left mouse button is released over a cell.
| x | The cell's x position. |
| y | The cell's y position. |
Reimplemented from AbstractTileMapTool.

|
inlineoverridevirtual |
Returns a vector of qactions which can be used to modify the behaviour of the tool. Will be used by the tool manager to add the actions to a context tool bar.
Reimplemented from AbstractTool.
|
virtual |
Called when the mouse is no longer hovering over a cell.
Reimplemented from AbstractTileMapTool.
