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

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

#include <aegis2d/ui/widgets.hpp>

Public Attributes

render::Color background = render::rgb(0x2B2D42)
 Background of the rows.
 
render::Color selected = render::rgb(0x1D4E89)
 Background of the selected row.
 
render::Color text = render::rgb(0xFFFFFF)
 Text of the rows.
 
render::Color disabled = render::rgb(0xB0B0B0)
 Text and rows of a disabled list.
 
render::Color outline = render::rgb(0xFFD166)
 Outline around the focused list.
 
render::Color scrollbar = render::rgb(0x6C7A9C)
 The scrollbar on the right edge, shown when some items are off screen.
 
float outline_width = 2.0F
 Width of the outline and the scrollbar, 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 rows; the text and the scrollbar go one layer above.
 

Detailed Description

Colors, text size and layer of a ListView.

Member Data Documentation

◆ background

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

Background of the rows.

◆ disabled

render::Color aegis2d::ui::ListStyle::disabled = render::rgb(0xB0B0B0)

Text and rows of a disabled list.

◆ layer

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

Layer of the rows; the text and the scrollbar go one layer above.

◆ outline

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

Outline around the focused list.

◆ outline_width

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

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

◆ scrollbar

render::Color aegis2d::ui::ListStyle::scrollbar = render::rgb(0x6C7A9C)

The scrollbar on the right edge, shown when some items are off screen.

◆ selected

render::Color aegis2d::ui::ListStyle::selected = render::rgb(0x1D4E89)

Background of the selected row.

◆ text

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

Text of the rows.

◆ text_scale

float aegis2d::ui::ListStyle::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: