![]() |
Contur 2
Educational OS kernel simulator
|
TUI controller interface for command/state orchestration. More...
#include <i_tui_controller.h>
Public Member Functions | |
| virtual | ~ITuiController ()=default |
| Virtual destructor for interface-safe polymorphic cleanup. | |
| virtual Result< void > | dispatch (const TuiCommand &command)=0 |
| Dispatches one controller command. | |
| virtual Result< void > | advanceAutoplay (std::uint32_t elapsedMs)=0 |
| Advances autoplay timer and executes due tick steps. | |
| virtual const TuiSnapshot & | current () const noexcept=0 |
| Returns current UI snapshot at history cursor. | |
| virtual TuiControllerState | state () const noexcept=0 |
| Returns current playback state. | |
| virtual std::size_t | historySize () const noexcept=0 |
| Returns retained history entry count. | |
| virtual std::size_t | historyCursor () const noexcept=0 |
| Returns current history cursor index. | |
TUI controller interface for command/state orchestration.
Definition at line 28 of file i_tui_controller.h.
|
virtualdefault |
Virtual destructor for interface-safe polymorphic cleanup.
|
nodiscardpure virtual |
Advances autoplay timer and executes due tick steps.
| elapsedMs | Elapsed wall-clock milliseconds since previous call. |
Implemented in contur::TuiController.
|
nodiscardpure virtualnoexcept |
Returns current UI snapshot at history cursor.
Implemented in contur::TuiController.
|
nodiscardpure virtual |
Dispatches one controller command.
| command | Command payload. |
Implemented in contur::TuiController.
|
nodiscardpure virtualnoexcept |
Returns current history cursor index.
Implemented in contur::TuiController.
References historyCursor().
Referenced by historyCursor().
|
nodiscardpure virtualnoexcept |
Returns retained history entry count.
Implemented in contur::TuiController.
References historySize().
Referenced by historySize().
|
nodiscardpure virtualnoexcept |
Returns current playback state.
Implemented in contur::TuiController.
References state().
Referenced by state().