#include <tilemapbrushtool.h>
◆ TileMapBrushTool()
◆ cellActivated()
void TileMapBrushTool::cellActivated |
( |
int |
, |
|
|
int |
, |
|
|
QMouseEvent * |
|
|
) |
| |
|
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.
- Parameters
-
x | The cell's x position. |
y | The cell's y position. |
Reimplemented from AbstractTileMapTool.
◆ cellHovered()
void TileMapBrushTool::cellHovered |
( |
int |
, |
|
|
int |
, |
|
|
QMouseEvent * |
|
|
) |
| |
|
overridevirtual |
Called when the mouse hovers over a new cell.
- Parameters
-
x | The cell's x position. |
y | The cell's y position. |
Reimplemented from AbstractTileMapTool.
◆ cellReleased()
void TileMapBrushTool::cellReleased |
( |
int |
, |
|
|
int |
, |
|
|
QMouseEvent * |
|
|
) |
| |
|
overridevirtual |
Called when the left mouse button is released over a cell.
- Parameters
-
x | The cell's x position. |
y | The cell's y position. |
Reimplemented from AbstractTileMapTool.
◆ contextActions()
QList<QAction *> TileMapBrushTool::contextActions |
( |
| ) |
|
|
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.
◆ mouseExitedMap()
void TileMapBrushTool::mouseExitedMap |
( |
QMouseEvent * |
| ) |
|
|
virtual |
Called when the mouse is no longer hovering over a cell.
Reimplemented from AbstractTileMapTool.
The documentation for this class was generated from the following files: