34#include <NDEVR/File.h>
35#include <NDEVR/RGBColor.h>
36#include <NDEVR/Dictionary.h>
A hash-based key-value store, useful for quick associative lookups. Key features include:
Definition Dictionary.h:61
Logic for reading or writing to a file as well as navigating filesystems.
Definition File.h:48
Stores many different types of font.
Definition Font.h:74
static void PullFontFromFolder(const File &folder)
static void SetSettingsFile(const File &file)
static File FindBestFitFontFile(const Font &font)
static File TryFontName(const String &family)
static void SaveFontSettings()
static Dictionary< String, Font > s_system_fonts
Definition Font.h:92
static void SetApplicationFont(const String &app_font, const Font &font)
static bool HasFontFile(const String &font_name)
static Dictionary< String, Font > s_application_fonts
Definition Font.h:93
static bool HasApplicationFont(const String &app_font)
static Dictionary< String, uint04 > s_font_indices
Definition Font.h:95
static File s_settings_file
Definition Font.h:97
static void ReadFontSettings()
static constexpr char DefaultFont[8]
Definition Font.h:76
static const Font & ApplicationFont(const String &app_font)
static void SetFontFile(const String &font_name, const File &file, uint04 index=0)
static void AddFontListener(const String &app_font, UUID id, std::function< void(const String &)> callback)
static Dictionary< String, String > s_font_files
Definition Font.h:94
static void RemoveFontListener(const String &app_font, UUID id)
static Dictionary< String, Dictionary< UUID, std::function< void(const String &)> > > s_app_font_listener
Definition Font.h:96
Represents a color in the RGB space with optional alpha transparency.
Definition RGBColor.h:54
The core String class for the NDEVR API.
Definition String.h:69
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
Definition UUID.h:60
uint8_t uint01
-Defines an alias representing a 1 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:80
TextAlignment
How to align text into a given container.
Definition Font.h:122
uint01 operator|(const TextAlignment &a, const TextAlignment &b)
Definition Font.h:133
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:96
constexpr t_to cast(const Angle< t_from > &value)
Definition Angle.h:375
double fltp08
Defines an alias representing an 8 byte floating-point number.
Definition BaseValues.hpp:149
Defines for a given type (such as sint04, fltp08, UUID, etc) a maximum, minimum, and reserved 'invali...
Definition BaseValues.hpp:233
Information for how to display text data.
Definition Font.h:46
bool operator==(const Font &font) const
bool is_bold
Definition Font.h:56
fltp08 point_size
Definition Font.h:49
RGBColor color
Definition Font.h:54
bool is_strikethrough
Definition Font.h:60
bool is_italic
Definition Font.h:57
fltp08 pixel_size
Definition Font.h:50
String name
Definition Font.h:47
uint01 alignment
Definition Font.h:55
bool operator!=(const Font &font) const
void setFile(const File &file)
Definition Font.h:64
File m_file
Definition Font.h:66
bool is_underline
Definition Font.h:58
uint04 index
Definition Font.h:53
String app_font_name
Definition Font.h:48
bool is_overstrike
Definition Font.h:59
fltp08 fixed_width
Definition Font.h:51
fltp08 tab_advance
Definition Font.h:52
text that is formatted the same way, typically part of a bigger group of text
Definition Font.h:104
Font font
Definition Font.h:106
bool operator!=(const TextBlock &block) const
Definition Font.h:111
bool operator==(const TextBlock &block) const
Definition Font.h:107
String text
Definition Font.h:105