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

#include <editor_context.h>

Collaboration diagram for yaze::editor::GlobalEditorContext:

Public Member Functions

 GlobalEditorContext (EventBus &bus)
 
EventBusGetEventBus ()
 
const EventBusGetEventBus () const
 
void SetCurrentRom (Rom *rom)
 
RomGetCurrentRom () const
 
void SetSessionId (size_t id)
 
size_t GetSessionId () const
 

Private Attributes

EventBusbus_
 
Romrom_ = nullptr
 
size_t session_id_ = 0
 

Detailed Description

Definition at line 11 of file editor_context.h.

Constructor & Destructor Documentation

◆ GlobalEditorContext()

yaze::editor::GlobalEditorContext::GlobalEditorContext ( EventBus & bus)
inlineexplicit

Definition at line 13 of file editor_context.h.

Member Function Documentation

◆ GetEventBus() [1/2]

EventBus & yaze::editor::GlobalEditorContext::GetEventBus ( )
inline

Definition at line 15 of file editor_context.h.

References bus_.

Referenced by yaze::editor::StatusBar::Initialize().

◆ GetEventBus() [2/2]

const EventBus & yaze::editor::GlobalEditorContext::GetEventBus ( ) const
inline

Definition at line 16 of file editor_context.h.

References bus_.

◆ SetCurrentRom()

void yaze::editor::GlobalEditorContext::SetCurrentRom ( Rom * rom)
inline

Definition at line 18 of file editor_context.h.

References rom_.

◆ GetCurrentRom()

Rom * yaze::editor::GlobalEditorContext::GetCurrentRom ( ) const
inline

Definition at line 19 of file editor_context.h.

References rom_.

◆ SetSessionId()

void yaze::editor::GlobalEditorContext::SetSessionId ( size_t id)
inline

Definition at line 21 of file editor_context.h.

References session_id_.

◆ GetSessionId()

size_t yaze::editor::GlobalEditorContext::GetSessionId ( ) const
inline

Definition at line 22 of file editor_context.h.

References session_id_.

Member Data Documentation

◆ bus_

EventBus& yaze::editor::GlobalEditorContext::bus_
private

Definition at line 25 of file editor_context.h.

Referenced by GetEventBus(), and GetEventBus().

◆ rom_

Rom* yaze::editor::GlobalEditorContext::rom_ = nullptr
private

Definition at line 26 of file editor_context.h.

Referenced by GetCurrentRom(), and SetCurrentRom().

◆ session_id_

size_t yaze::editor::GlobalEditorContext::session_id_ = 0
private

Definition at line 27 of file editor_context.h.

Referenced by GetSessionId(), and SetSessionId().


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