Aegis2D
Modular C++26 2D game engine for networked games
Loading...
Searching...
No Matches
aegis2d::ui::TextFieldStyle Struct Reference

Colors, text size and layer of a TextField. More...

#include <aegis2d/ui/text_field.hpp>

Public Attributes

render::Color background = render::rgb(0x2B2D42)
 Background of the field.
 
render::Color focused = render::rgb(0x1D4E89)
 Background of the focused field.
 
render::Color disabled = render::rgb(0x3A3A3A)
 Background of a disabled field.
 
render::Color text = render::rgb(0xFFFFFF)
 The typed text.
 
render::Color placeholder = render::rgb(0xB0B0B0)
 The placeholder, while the field is empty.
 
render::Color cursor = render::rgb(0xFFD166)
 The cursor, drawn while the field is focused.
 
render::Color outline = render::rgb(0xFFD166)
 Outline around the focused field.
 
float outline_width = 2.0F
 Width of the outline and the cursor, in logical pixels at 100%.
 
float text_scale = 2.0F
 Scale of the text at 100%, multiplied by the tree's scale.
 
std::int32_t layer = 100
 Layer of the background; the text and the cursor go one layer above.
 

Detailed Description

Colors, text size and layer of a TextField.

Member Data Documentation

◆ background

render::Color aegis2d::ui::TextFieldStyle::background = render::rgb(0x2B2D42)

Background of the field.

◆ cursor

render::Color aegis2d::ui::TextFieldStyle::cursor = render::rgb(0xFFD166)

The cursor, drawn while the field is focused.

◆ disabled

render::Color aegis2d::ui::TextFieldStyle::disabled = render::rgb(0x3A3A3A)

Background of a disabled field.

◆ focused

render::Color aegis2d::ui::TextFieldStyle::focused = render::rgb(0x1D4E89)

Background of the focused field.

◆ layer

std::int32_t aegis2d::ui::TextFieldStyle::layer = 100

Layer of the background; the text and the cursor go one layer above.

◆ outline

render::Color aegis2d::ui::TextFieldStyle::outline = render::rgb(0xFFD166)

Outline around the focused field.

◆ outline_width

float aegis2d::ui::TextFieldStyle::outline_width = 2.0F

Width of the outline and the cursor, in logical pixels at 100%.

◆ placeholder

render::Color aegis2d::ui::TextFieldStyle::placeholder = render::rgb(0xB0B0B0)

The placeholder, while the field is empty.

◆ text

render::Color aegis2d::ui::TextFieldStyle::text = render::rgb(0xFFFFFF)

The typed text.

◆ text_scale

float aegis2d::ui::TextFieldStyle::text_scale = 2.0F

Scale of the text at 100%, multiplied by the tree's scale.


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