coastline 0.0.4
Loading...
Searching...
No Matches
coastline::MenuSetup Struct Reference

What a frame of a screen shows, the arguments of ProcessScreenState(). More...

#include <menuscreen.h>

Collaboration diagram for coastline::MenuSetup:

Public Attributes

std::string_view title
std::span< const MenuItem > items
int * selection = nullptr
std::function< bool(int)> isSelectable
std::array< int, 3 > top {}
std::array< int, 3 > bottom {}

Detailed Description

What a frame of a screen shows, the arguments of ProcessScreenState().

Member Data Documentation

◆ title

std::string_view coastline::MenuSetup::title

The heading, drawn in red and yellow.

◆ items

std::span<const MenuItem> coastline::MenuSetup::items

The items.

◆ selection

int* coastline::MenuSetup::selection = nullptr

The item chosen, read when the screen starts.

◆ isSelectable

std::function<bool(int)> coastline::MenuSetup::isSelectable

Whether an item may be moved to, or none for all.

◆ top

std::array<int, 3> coastline::MenuSetup::top {}

The red, green, and blue of the dark background.

◆ bottom

std::array<int, 3> coastline::MenuSetup::bottom {}

The colour the texels of the background lerp to.


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