18 unsigned VidCellWidth = 8;
19 unsigned VidCellHeight = 16;
21 unsigned WindowWidth = 80;
22 unsigned WindowHeight = 25;
24 bool Headless =
false;
28 bool Allow_Windows_Bigger_Than_Desktop =
false;
38 return {VidCellWidth,VidCellHeight};
43 return {WindowWidth,WindowHeight};
57 void ResizeTo(
unsigned cellx,
unsigned celly,
unsigned width,
unsigned height);
85 std::pair<int, resizetype>,
99 UI(
const UI&) =
delete;
101 UI& operator=(
const UI&) =
delete;
102 UI& operator=(
UI&&) =
delete;
void PresentGraphics(const std::uint32_t *pixels)
Definition: ui.cc:163
~UI()
Definition: ui.cc:305
void SetHeadless(bool state)
Definition: ui.hh:95
void ResizeTo(unsigned cellx, unsigned celly, unsigned width, unsigned height)
Definition: ui.cc:154
UI()
Definition: ui.cc:301
std::pair< std::string, std::variant< std::pair< int, int >, std::pair< int, resizetype >, bool > > EventType
Definition: ui.hh:87
void BeepOn()
Definition: ui.cc:107
EventType HandleEvents(bool permit_text_input)
Definition: ui.cc:211
std::pair< unsigned, unsigned > GetWindowSize() const
Definition: ui.hh:41
resizetype
Definition: ui.hh:72
bool IsHeadless() const
Definition: ui.hh:46
void SetIconName(std::string_view str)
Definition: ui.cc:149
std::pair< unsigned, unsigned > GetCellSize() const
Definition: ui.hh:36
void SetWindowTitle(std::string_view str)
Definition: ui.cc:143
UI ui
Definition: ui.cc:310