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

Colors and layer of a Slider. More...

#include <aegis2d/ui/widgets.hpp>

Public Attributes

render::Color track = render::rgb(0x2B2D42)
 The groove the handle slides in.
 
render::Color fill = render::rgb(0x1D4E89)
 The filled part of the track, up to the value.
 
render::Color handle = render::rgb(0xFFFFFF)
 The handle at the value.
 
render::Color disabled = render::rgb(0x3A3A3A)
 Track, fill and handle of a disabled slider.
 
render::Color outline = render::rgb(0xFFD166)
 Outline around the focused slider.
 
float outline_width = 2.0F
 Width of the outline, in logical pixels at 100%.
 
std::int32_t layer = 100
 Layer of the track; the fill and the handle go one layer above.
 

Detailed Description

Colors and layer of a Slider.

The focused slider has an outline as well as its own handle color, so the focus never shows by color alone, as for the menu's buttons.

Member Data Documentation

◆ disabled

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

Track, fill and handle of a disabled slider.

◆ fill

render::Color aegis2d::ui::SliderStyle::fill = render::rgb(0x1D4E89)

The filled part of the track, up to the value.

◆ handle

render::Color aegis2d::ui::SliderStyle::handle = render::rgb(0xFFFFFF)

The handle at the value.

◆ layer

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

Layer of the track; the fill and the handle go one layer above.

◆ outline

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

Outline around the focused slider.

◆ outline_width

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

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

◆ track

render::Color aegis2d::ui::SliderStyle::track = render::rgb(0x2B2D42)

The groove the handle slides in.


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