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

Event payload for rectangle selection operations. More...

#include <canvas_events.h>

Public Member Functions

void Reset ()
 
size_t Count () const
 Get number of selected tiles.
 
bool IsEmpty () const
 Check if selection is empty.
 

Public Attributes

std::vector< ImVec2 > selected_tiles
 Individual tile positions (grid coords)
 
ImVec2 start_pos
 Rectangle start (canvas coords)
 
ImVec2 end_pos
 Rectangle end (canvas coords)
 
int current_map = -1
 Map ID for coordinate calculation.
 
bool is_complete = false
 True when selection finishes.
 
bool is_active = false
 True while dragging.
 

Detailed Description

Event payload for rectangle selection operations.

Represents a multi-tile rectangular selection, typically from right-click drag. Provides both the rectangle bounds and the individual selected tile positions.

Definition at line 38 of file canvas_events.h.

Member Function Documentation

◆ Reset()

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

◆ Count()

size_t yaze::gui::RectSelectionEvent::Count ( ) const
inline

Get number of selected tiles.

Definition at line 56 of file canvas_events.h.

References selected_tiles.

◆ IsEmpty()

bool yaze::gui::RectSelectionEvent::IsEmpty ( ) const
inline

Check if selection is empty.

Definition at line 59 of file canvas_events.h.

References selected_tiles.

Member Data Documentation

◆ selected_tiles

std::vector<ImVec2> yaze::gui::RectSelectionEvent::selected_tiles

Individual tile positions (grid coords)

Definition at line 39 of file canvas_events.h.

Referenced by Count(), IsEmpty(), and Reset().

◆ start_pos

ImVec2 yaze::gui::RectSelectionEvent::start_pos

Rectangle start (canvas coords)

Definition at line 40 of file canvas_events.h.

Referenced by Reset().

◆ end_pos

ImVec2 yaze::gui::RectSelectionEvent::end_pos

Rectangle end (canvas coords)

Definition at line 41 of file canvas_events.h.

Referenced by Reset().

◆ current_map

int yaze::gui::RectSelectionEvent::current_map = -1

Map ID for coordinate calculation.

Definition at line 42 of file canvas_events.h.

Referenced by yaze::gui::HandleRectangleSelection(), and Reset().

◆ is_complete

bool yaze::gui::RectSelectionEvent::is_complete = false

True when selection finishes.

Definition at line 43 of file canvas_events.h.

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

◆ is_active

bool yaze::gui::RectSelectionEvent::is_active = false

True while dragging.

Definition at line 44 of file canvas_events.h.

Referenced by Reset().


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