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

Published when the active session changes. More...

#include <core_events.h>

Inheritance diagram for yaze::editor::SessionSwitchedEvent:
Collaboration diagram for yaze::editor::SessionSwitchedEvent:

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
 
RomSessionsession = nullptr
 

Additional Inherited Members

- Public Member Functions inherited from yaze::Event
virtual ~Event ()=default
 

Detailed Description

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.

Member Function Documentation

◆ Create()

static SessionSwitchedEvent yaze::editor::SessionSwitchedEvent::Create ( size_t old_idx,
size_t new_idx,
RomSession * sess )
inlinestatic

Member Data Documentation

◆ old_index

size_t yaze::editor::SessionSwitchedEvent::old_index = 0

Definition at line 89 of file core_events.h.

Referenced by Create().

◆ new_index

size_t yaze::editor::SessionSwitchedEvent::new_index = 0

Definition at line 90 of file core_events.h.

Referenced by Create().

◆ session

RomSession* yaze::editor::SessionSwitchedEvent::session = nullptr

Definition at line 91 of file core_events.h.

Referenced by Create().


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