|
Aegis2D
Modular C++26 2D game engine for networked games
|
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. | |
Colors, text size and layer of a TextField.
| render::Color aegis2d::ui::TextFieldStyle::background = render::rgb(0x2B2D42) |
Background of the field.
| render::Color aegis2d::ui::TextFieldStyle::cursor = render::rgb(0xFFD166) |
The cursor, drawn while the field is focused.
| render::Color aegis2d::ui::TextFieldStyle::disabled = render::rgb(0x3A3A3A) |
Background of a disabled field.
| render::Color aegis2d::ui::TextFieldStyle::focused = render::rgb(0x1D4E89) |
Background of the focused field.
| std::int32_t aegis2d::ui::TextFieldStyle::layer = 100 |
Layer of the background; the text and the cursor go one layer above.
| render::Color aegis2d::ui::TextFieldStyle::outline = render::rgb(0xFFD166) |
Outline around the focused field.
| float aegis2d::ui::TextFieldStyle::outline_width = 2.0F |
Width of the outline and the cursor, in logical pixels at 100%.
| render::Color aegis2d::ui::TextFieldStyle::placeholder = render::rgb(0xB0B0B0) |
The placeholder, while the field is empty.
| render::Color aegis2d::ui::TextFieldStyle::text = render::rgb(0xFFFFFF) |
The typed text.
| float aegis2d::ui::TextFieldStyle::text_scale = 2.0F |
Scale of the text at 100%, multiplied by the tree's scale.