How a button looks. Set on Theme::button for every button, or on Button::style for one button.
More...
#include <theme.h>
|
| asw::Color | bg { 55, 55, 55, 255 } |
| | Background color.
|
| |
| asw::Color | bg_hover { 75, 75, 75, 255 } |
| | Background color while hovered, or focused with focus shown.
|
| |
| asw::Color | bg_pressed { 95, 95, 95, 255 } |
| | Background color while pressed.
|
| |
| asw::Color | bg_disabled { 30, 30, 30, 255 } |
| | Background color while disabled.
|
| |
| asw::Color | text { 255, 255, 255, 255 } |
| | Text color.
|
| |
| asw::Color | text_hover { 255, 255, 255, 255 } |
| | Text color while hovered, or focused with focus shown.
|
| |
| asw::Color | text_disabled { 200, 200, 200, 255 } |
| | Text color while disabled.
|
| |
| asw::Color | border { 0, 0, 0, 0 } |
| | Border color.
|
| |
| float | border_width = 0.0F |
| | Border width in pixels, drawn inside the button. 0 draws no border.
|
| |
| asw::TextJustify | text_align = asw::TextJustify::Center |
| | Where the text sits. Left and right are inset by the button padding.
|
| |
How a button looks. Set on Theme::button for every button, or on Button::style for one button.
Definition at line 24 of file theme.h.
◆ bg
| asw::Color asw::ui::ButtonStyle::bg { 55, 55, 55, 255 } |
Background color.
Definition at line 26 of file theme.h.
◆ bg_disabled
| asw::Color asw::ui::ButtonStyle::bg_disabled { 30, 30, 30, 255 } |
Background color while disabled.
Definition at line 35 of file theme.h.
◆ bg_hover
| asw::Color asw::ui::ButtonStyle::bg_hover { 75, 75, 75, 255 } |
Background color while hovered, or focused with focus shown.
Definition at line 29 of file theme.h.
◆ bg_pressed
| asw::Color asw::ui::ButtonStyle::bg_pressed { 95, 95, 95, 255 } |
Background color while pressed.
Definition at line 32 of file theme.h.
◆ border
| asw::Color asw::ui::ButtonStyle::border { 0, 0, 0, 0 } |
Border color.
Definition at line 47 of file theme.h.
◆ border_width
| float asw::ui::ButtonStyle::border_width = 0.0F |
Border width in pixels, drawn inside the button. 0 draws no border.
Definition at line 50 of file theme.h.
◆ text
| asw::Color asw::ui::ButtonStyle::text { 255, 255, 255, 255 } |
Text color.
Definition at line 38 of file theme.h.
◆ text_align
Where the text sits. Left and right are inset by the button padding.
Definition at line 53 of file theme.h.
◆ text_disabled
| asw::Color asw::ui::ButtonStyle::text_disabled { 200, 200, 200, 255 } |
Text color while disabled.
Definition at line 44 of file theme.h.
◆ text_hover
| asw::Color asw::ui::ButtonStyle::text_hover { 255, 255, 255, 255 } |
Text color while hovered, or focused with focus shown.
Definition at line 41 of file theme.h.
The documentation for this struct was generated from the following file: