ReXGlue SDK
Loading...
Searching...
No Matches
rex::ui::Metrics Struct Reference

Public Member Functions

bool operator== (const Metrics &other) const =default

Public Attributes

f32 window_rounding = 0
f32 rounding = 0
f32 frame_rounding = 0
f32 child_rounding = 0
f32 popup_rounding = 0
f32 grab_rounding = 0
f32 border = 1
Vec2 window_padding {8, 8}
Vec2 item_spacing {8, 4}
Vec2 frame_padding {4, 3}
f32 icon_size = 44
f32 row_rounding = 3
f32 toast_rounding = 6
f32 toast_padding = 16
f32 toast_width = 320
f32 toast_height = 70
f32 toast_stack_height = 80
f32 footer_height = 30
f32 side_panel_width = 160
f32 button_width = 140
f32 value_width = 160
WindowAlpha window_alpha

Member Data Documentation

◆ child_rounding

f32 rex::ui::Metrics::child_rounding = 0

Corner radius of child windows.

◆ footer_height

f32 rex::ui::Metrics::footer_height = 30

Height of the bar below the settings list.

◆ grab_rounding

f32 rex::ui::Metrics::grab_rounding = 0

Corner radius of slider and scrollbar grabs.

◆ popup_rounding

f32 rex::ui::Metrics::popup_rounding = 0

Corner radius of popups.

◆ rounding

f32 rex::ui::Metrics::rounding = 0

Corner radius of scrollbars and tabs.

◆ row_rounding

f32 rex::ui::Metrics::row_rounding = 3

Corner radius of an achievement row band.

◆ side_panel_width

f32 rex::ui::Metrics::side_panel_width = 160

Width of the settings category column.

◆ toast_padding

f32 rex::ui::Metrics::toast_padding = 16

Gap between the toast and the screen edges.

◆ toast_stack_height

f32 rex::ui::Metrics::toast_stack_height = 80

Distance from the bottom edge that the toast reserves: its height plus a margin.


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