Published when the active session changes. More...
#include <core_events.h>


Static Public Member Functions | |
| static SessionSwitchedEvent | Create (size_t old_idx, size_t new_idx, RomSession *sess) |
Public Attributes | |
| size_t | old_index = 0 |
| size_t | new_index = 0 |
| RomSession * | session = nullptr |
Additional Inherited Members | |
Public Member Functions inherited from yaze::Event | |
| virtual | ~Event ()=default |
Published when the active session changes.
Use this to update cross-component state without tight coupling.
Definition at line 88 of file core_events.h.
|
inlinestatic |
Definition at line 93 of file core_events.h.
References new_index, old_index, and session.
Referenced by yaze::editor::SessionCoordinator::NotifySessionSwitched(), and yaze::test::CoreSystemsTestSuite::RunCoreEventsCreationTest().
| size_t yaze::editor::SessionSwitchedEvent::old_index = 0 |
Definition at line 89 of file core_events.h.
Referenced by Create().
| size_t yaze::editor::SessionSwitchedEvent::new_index = 0 |
Definition at line 90 of file core_events.h.
Referenced by Create().
| RomSession* yaze::editor::SessionSwitchedEvent::session = nullptr |
Definition at line 91 of file core_events.h.
Referenced by Create().