coastline 0.0.4
Loading...
Searching...
No Matches
menutext.h File Reference

The text of the menus of the console, drawn with the fonts of the import. More...

#include <array>
#include <filesystem>
#include <memory>
#include <optional>
#include <span>
#include <string_view>
#include <unordered_map>
#include <vector>
#include "scenerenderer.h"
Include dependency graph for menutext.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  coastline::TextStyle
 How a string of the menus is drawn. More...
class  coastline::MenuText
 The two fonts of the menus, their gradients, and the layout of their glyphs. More...

Namespaces

namespace  coastline

Functions

int coastline::CenterLines (std::string_view text, int y, int lines, int lineHeight)
 Centre a string on the place of a block of a number of lines, as a release that draws a message in fewer lines than the USA release centres it.

Detailed Description

The text of the menus of the console, drawn with the fonts of the import.