#include <filltool.h>
◆ FillTool()
◆ cellClicked()
void FillTool::cellClicked |
( |
int |
x, |
|
|
int |
y, |
|
|
QMouseEvent * |
|
|
) |
| |
|
overridevirtual |
This will immediately fill an area.
- Parameters
-
x | The X position of the clicked tile. |
y | The Y position of the clicked tile. |
Reimplemented from AbstractTileMapTool.
◆ cellHovered()
void FillTool::cellHovered |
( |
int |
x, |
|
|
int |
y, |
|
|
QMouseEvent * |
|
|
) |
| |
|
overridevirtual |
◆ clearOverlay()
void FillTool::clearOverlay |
( |
| ) |
|
|
protected |
◆ deactivate()
void FillTool::deactivate |
( |
| ) |
|
|
overridevirtual |
Deactivates the tool. This is called before the tool stops being used.
Reimplemented from AbstractTool.
◆ drawOverlay()
void FillTool::drawOverlay |
( |
int |
endX, |
|
|
int |
endY |
|
) |
| |
|
protected |
Draws an overlay previewing the area that will be filled.
◆ invalidateSelection
void FillTool::invalidateSelection |
( |
| ) |
|
|
slot |
◆ mouseExitedMap()
void FillTool::mouseExitedMap |
( |
QMouseEvent * |
| ) |
|
|
overridevirtual |
Called when the mouse is no longer hovering over a cell.
Reimplemented from AbstractTileMapTool.
◆ toolTileMapChanged()
void FillTool::toolTileMapChanged |
( |
TileMap * |
previous | ) |
|
|
overridevirtual |
Called whenever mTileMap changes. Called in constructor.
- Parameters
-
previous | The OLD mTileMap. The new one can be retreived using getTileMap(). |
Reimplemented from AbstractTileMapTool.
◆ updateSelection()
void FillTool::updateSelection |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
protected |
Updates mSelection to match the points that will be filled if the given point is selected.
◆ mSelection
QSet<QPoint> FillTool::mSelection |
|
protected |
The set of points that will be filled in.
◆ mUndoStack
QUndoStack* FillTool::mUndoStack |
|
protected |
The documentation for this class was generated from the following files: