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
asw::ui::ModalStyle Struct Reference

Look of a Modal and the dimmed screen behind it. More...

#include <theme.h>

Collaboration diagram for asw::ui::ModalStyle:
[legend]

Public Attributes

asw::Color dim { 0, 0, 0, 160 }
 Colour laid over the screen behind the modal.
 
asw::Color bg { 30, 30, 30, 255 }
 Fill of the modal.
 
asw::Color border { 0, 0, 0, 0 }
 Outline, none when the width is 0.
 
float border_width = 0.0F
 Outline width.
 
float padding = 20.0F
 Space between the modal's edge and its content.
 
float gap = 12.0F
 Space between its widgets.
 
float min_width = 320.0F
 Narrowest the modal gets.
 

Detailed Description

Look of a Modal and the dimmed screen behind it.

Definition at line 214 of file theme.h.

Member Data Documentation

◆ bg

asw::Color asw::ui::ModalStyle::bg { 30, 30, 30, 255 }

Fill of the modal.

Definition at line 219 of file theme.h.

◆ border

asw::Color asw::ui::ModalStyle::border { 0, 0, 0, 0 }

Outline, none when the width is 0.

Definition at line 222 of file theme.h.

◆ border_width

float asw::ui::ModalStyle::border_width = 0.0F

Outline width.

Definition at line 225 of file theme.h.

◆ dim

asw::Color asw::ui::ModalStyle::dim { 0, 0, 0, 160 }

Colour laid over the screen behind the modal.

Definition at line 216 of file theme.h.

◆ gap

float asw::ui::ModalStyle::gap = 12.0F

Space between its widgets.

Definition at line 231 of file theme.h.

◆ min_width

float asw::ui::ModalStyle::min_width = 320.0F

Narrowest the modal gets.

Definition at line 234 of file theme.h.

◆ padding

float asw::ui::ModalStyle::padding = 20.0F

Space between the modal's edge and its content.

Definition at line 228 of file theme.h.


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