mirror of
https://github.com/vicliu624/trail-mate.git
synced 2026-07-18 09:37:17 +00:00
30 lines
766 B
C++
30 lines
766 B
C++
#pragma once
|
|
|
|
#include "linux_sim_runtime_entry.h"
|
|
#include "ui_ascii_runtime/ascii_descriptor_renderer.h"
|
|
|
|
#include <cstddef>
|
|
|
|
namespace trailmate::apps::linux_sim_shell
|
|
{
|
|
|
|
class LinuxSimRuntimeRenderer
|
|
{
|
|
public:
|
|
bool render(const LinuxSimRuntimeEntry& entry);
|
|
|
|
bool ready() const noexcept;
|
|
bool usingPrimaryScreenGraph() const noexcept;
|
|
bool usedPrimaryScreenGraph() const noexcept;
|
|
std::size_t lineCount() const noexcept;
|
|
const trailmate::linux_sim::AsciiRenderLine* lines() const noexcept;
|
|
const char* line(std::size_t index) const noexcept;
|
|
|
|
private:
|
|
trailmate::linux_sim::AsciiDescriptorRenderer descriptor_renderer_{};
|
|
bool ready_ = false;
|
|
bool primary_ = false;
|
|
};
|
|
|
|
} // namespace trailmate::apps::linux_sim_shell
|