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

Event payload for single tile selection. More...

#include <canvas_events.h>

Public Member Functions

void Reset ()
 

Public Attributes

ImVec2 tile_position
 Selected tile position (grid coords)
 
int tile_id = -1
 Selected tile ID.
 
bool is_valid = false
 True if selection is valid.
 

Detailed Description

Event payload for single tile selection.

Represents selecting a single tile, typically from a right-click.

Definition at line 67 of file canvas_events.h.

Member Function Documentation

◆ Reset()

void yaze::gui::TileSelectionEvent::Reset ( )
inline

Definition at line 72 of file canvas_events.h.

References is_valid, tile_id, and tile_position.

Referenced by yaze::gui::CanvasInteractionEvents::Reset().

Member Data Documentation

◆ tile_position

ImVec2 yaze::gui::TileSelectionEvent::tile_position

Selected tile position (grid coords)

Definition at line 68 of file canvas_events.h.

Referenced by Reset().

◆ tile_id

int yaze::gui::TileSelectionEvent::tile_id = -1

Selected tile ID.

Definition at line 69 of file canvas_events.h.

Referenced by Reset().

◆ is_valid

bool yaze::gui::TileSelectionEvent::is_valid = false

True if selection is valid.

Definition at line 70 of file canvas_events.h.

Referenced by yaze::gui::CanvasInteractionEvents::HasAnyEvent(), and Reset().


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