yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::gui::TilePaintEvent Struct Reference

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.
 

Detailed Description

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.

Member Function Documentation

◆ Reset()

void yaze::gui::TilePaintEvent::Reset ( )
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().

Member Data Documentation

◆ position

ImVec2 yaze::gui::TilePaintEvent::position

Canvas-space pixel coordinates.

Definition at line 17 of file canvas_events.h.

Referenced by Reset().

◆ grid_position

ImVec2 yaze::gui::TilePaintEvent::grid_position

Grid-aligned tile position.

Definition at line 18 of file canvas_events.h.

Referenced by Reset().

◆ tile_id

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().

◆ is_drag

bool yaze::gui::TilePaintEvent::is_drag = false

True for continuous drag painting.

Definition at line 20 of file canvas_events.h.

Referenced by Reset().

◆ is_complete

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().


The documentation for this struct was generated from the following file: