ASW Lib
A.D.S. Games SDL Wrapper Library. A library targeted at Allegro4 users who want to switch to SDL3 and use modern c++.
Loading...
Searching...
No Matches
theme.h File Reference

UI theme configuration for the ASW UI module. More...

#include <cstddef>
#include "../color.h"
#include "../geometry.h"
#include "../types.h"
#include "widget.h"
Include dependency graph for theme.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  asw::ui::ButtonStyle
 How a button looks. Set on Theme::button for every button, or on Button::style for one button. More...
 
struct  asw::ui::CheckboxStyle
 How a checkbox looks. Set on Theme::checkbox for every checkbox, or on Checkbox::checkbox_style for one checkbox. More...
 
struct  asw::ui::InputStyle
 How an input box looks. Set on Theme::input for every input box, or on InputBox::style for one input box. More...
 
struct  asw::ui::SliderStyle
 How a slider looks. Set on Theme::slider for every slider, or on Slider::style for one slider. More...
 
struct  asw::ui::ToastStyle
 The ring drawn around the focused widget during keyboard or controller navigation. More...
 
struct  asw::ui::ModalStyle
 Look of a Modal and the dimmed screen behind it. More...
 
struct  asw::ui::FocusRingStyle
 
struct  asw::ui::Theme
 Theme configuration for UI elements. More...
 

Namespaces

namespace  asw
 
namespace  asw::ui
 

Enumerations

enum class  asw::ui::BoxSide { asw::ui::Left , asw::ui::Right }
 Which side of a checkbox the box is on. More...
 

Functions

const asw::Font & asw::ui::pick_font (const asw::Font &own, const Theme &theme)
 The font a widget draws with: its own, or the theme font.
 
void asw::ui::draw_focus_ring (const FocusRingStyle &style, const asw::Quad< float > &bounds)
 Draw a focus ring around a widget.
 

Detailed Description

UI theme configuration for the ASW UI module.

Author
Allan Legemaate (alege.nosp@m.maat.nosp@m.e@gma.nosp@m.il.c.nosp@m.om)
Date
2026-02-21

Definition in file theme.h.