Module: gameui.style
Source: ./gameui/style.reef
Overview
gameui/style.reef - Styling for immediate mode UI Part of reef-stdlib Game UI module
Style provides colors, sizes, and visual parameters for the UI. Unlike the retained mode theme system, this is simpler and more focused on game UI needs.
Types
Style
Fields:
| Name | Type |
|---|---|
background |
core.Color |
foreground |
core.Color |
primary |
core.Color |
secondary |
core.Color |
accent |
core.Color |
border |
core.Color |
hover |
core.Color |
pressed |
core.Color |
disabled |
core.Color |
error |
core.Color |
success |
core.Color |
warning |
core.Color |
padding |
float |
item_spacing |
float |
border_width |
float |
border_radius |
float |
font_size |
float |
button_height |
float |
checkbox_size |
float |
slider_height |
float |
slider_thumb_size |
float |
text_field_height |
float |
Functions
fn default_style(): Style
fn dark_style(): Style
fn light_style(): Style
fn with_background(s: Style, color: core.Color): Style
fn with_foreground(s: Style, color: core.Color): Style
fn with_primary(s: Style, color: core.Color): Style
fn with_padding(s: Style, padding: float): Style
fn with_item_spacing(s: Style, spacing: float): Style
fn with_border_width(s: Style, width: float): Style
fn with_border_radius(s: Style, radius: float): Style
fn with_font_size(s: Style, size: float): Style
Generated by reefc doc