Published when selection changes in any editor. More...
#include <core_events.h>


Public Member Functions | |
| bool | IsEmpty () const |
| size_t | Count () const |
Public Member Functions inherited from yaze::Event | |
| virtual | ~Event ()=default |
Static Public Member Functions | |
| static SelectionChangedEvent | Create (const std::string &src, const std::vector< int > &ids, size_t session=0) |
| static SelectionChangedEvent | CreateSingle (const std::string &src, int id, size_t session=0) |
| static SelectionChangedEvent | CreateEmpty (const std::string &src, size_t session=0) |
Public Attributes | |
| std::string | source |
| std::vector< int > | selected_ids |
| int | primary_id = -1 |
| size_t | session_id = 0 |
Published when selection changes in any editor.
Subscribers can respond to selection changes for cross-component updates, status bar updates, or property panel refreshes.
Definition at line 160 of file core_events.h.
|
inlinestatic |
Definition at line 166 of file core_events.h.
References primary_id, selected_ids, session_id, and source.
|
inlinestatic |
Definition at line 177 of file core_events.h.
References primary_id, selected_ids, session_id, and source.
Referenced by yaze::editor::DungeonRoomSelector::DrawEntranceSelector(), yaze::editor::DungeonRoomSelector::DrawGroupedRoomList(), and yaze::editor::DungeonRoomSelector::DrawRoomSelector().
|
inlinestatic |
Definition at line 187 of file core_events.h.
References primary_id, selected_ids, session_id, and source.
|
inline |
Definition at line 197 of file core_events.h.
References selected_ids.
|
inline |
Definition at line 198 of file core_events.h.
References selected_ids.
| std::string yaze::editor::SelectionChangedEvent::source |
Definition at line 161 of file core_events.h.
Referenced by Create(), CreateEmpty(), and CreateSingle().
| std::vector<int> yaze::editor::SelectionChangedEvent::selected_ids |
Definition at line 162 of file core_events.h.
Referenced by Count(), Create(), CreateEmpty(), CreateSingle(), and IsEmpty().
| int yaze::editor::SelectionChangedEvent::primary_id = -1 |
Definition at line 163 of file core_events.h.
Referenced by Create(), CreateEmpty(), and CreateSingle().
| size_t yaze::editor::SelectionChangedEvent::session_id = 0 |
Definition at line 164 of file core_events.h.
Referenced by Create(), CreateEmpty(), and CreateSingle().