Event payload for tile painting operations. More...
#include <canvas_events.h>
Public Member Functions | |
void | Reset () |
Public Attributes | |
ImVec2 | position |
Canvas-space pixel coordinates. | |
ImVec2 | grid_position |
Grid-aligned tile position. | |
int | tile_id = -1 |
Tile ID being painted (-1 if none) | |
bool | is_drag = false |
True for continuous drag painting. | |
bool | is_complete = false |
True when paint action finishes. | |
Event payload for tile painting operations.
Represents a single tile paint action, either from a click or drag operation. Canvas-space coordinates are provided for positioning.
Definition at line 16 of file canvas_events.h.
|
inline |
Definition at line 23 of file canvas_events.h.
References grid_position, is_complete, is_drag, position, and tile_id.
Referenced by yaze::gui::CanvasInteractionEvents::Reset().
ImVec2 yaze::gui::TilePaintEvent::position |
Canvas-space pixel coordinates.
Definition at line 17 of file canvas_events.h.
Referenced by Reset().
ImVec2 yaze::gui::TilePaintEvent::grid_position |
int yaze::gui::TilePaintEvent::tile_id = -1 |
Tile ID being painted (-1 if none)
Definition at line 19 of file canvas_events.h.
Referenced by yaze::gui::HandleTilemapPaint(), yaze::gui::HandleTilePaint(), and Reset().
bool yaze::gui::TilePaintEvent::is_drag = false |
True for continuous drag painting.
Definition at line 20 of file canvas_events.h.
Referenced by Reset().
bool yaze::gui::TilePaintEvent::is_complete = false |
True when paint action finishes.
Definition at line 21 of file canvas_events.h.
Referenced by yaze::gui::CanvasInteractionEvents::HasAnyEvent(), and Reset().