The ring drawn around the focused widget during keyboard or controller navigation.
More...
#include <theme.h>
|
| asw::Color | bg { 20, 20, 20, 230 } |
| | Fill behind each message.
|
| |
| asw::Color | text { 255, 255, 255, 255 } |
| | Message text.
|
| |
| asw::Color | border { 0, 0, 0, 0 } |
| | Outline, none when the width is 0.
|
| |
| float | border_width = 0.0F |
| | Outline width.
|
| |
| float | padding = 12.0F |
| | Space around the text inside each message.
|
| |
| float | margin = 16.0F |
| | Space from the top of the screen to the first message.
|
| |
| float | gap = 8.0F |
| | Space between messages.
|
| |
| float | seconds = 3.0F |
| | How long a message stays, from when it shows.
|
| |
| float | fade_seconds = 0.25F |
| | How long a message takes to fade out at the end.
|
| |
| std::size_t | max_visible = 3 |
| | Messages on screen at once, the rest wait their turn.
|
| |
| Anchor | anchor = Anchor::Top |
| | Where messages show: Top, TopLeft or TopRight stack down from the top, Bottom, BottomLeft or BottomRight stack up from the bottom.
|
| |
The ring drawn around the focused widget during keyboard or controller navigation.
Look of the messages Root::toast shows at the top of the screen.
Definition at line 176 of file theme.h.
◆ anchor
Where messages show: Top, TopLeft or TopRight stack down from the top, Bottom, BottomLeft or BottomRight stack up from the bottom.
Definition at line 209 of file theme.h.
◆ bg
| asw::Color asw::ui::ToastStyle::bg { 20, 20, 20, 230 } |
Fill behind each message.
Definition at line 178 of file theme.h.
◆ border
| asw::Color asw::ui::ToastStyle::border { 0, 0, 0, 0 } |
Outline, none when the width is 0.
Definition at line 184 of file theme.h.
◆ border_width
| float asw::ui::ToastStyle::border_width = 0.0F |
Outline width.
Definition at line 187 of file theme.h.
◆ fade_seconds
| float asw::ui::ToastStyle::fade_seconds = 0.25F |
How long a message takes to fade out at the end.
Definition at line 202 of file theme.h.
◆ gap
| float asw::ui::ToastStyle::gap = 8.0F |
Space between messages.
Definition at line 196 of file theme.h.
◆ margin
| float asw::ui::ToastStyle::margin = 16.0F |
Space from the top of the screen to the first message.
Definition at line 193 of file theme.h.
◆ max_visible
| std::size_t asw::ui::ToastStyle::max_visible = 3 |
Messages on screen at once, the rest wait their turn.
Definition at line 205 of file theme.h.
◆ padding
| float asw::ui::ToastStyle::padding = 12.0F |
Space around the text inside each message.
Definition at line 190 of file theme.h.
◆ seconds
| float asw::ui::ToastStyle::seconds = 3.0F |
How long a message stays, from when it shows.
Definition at line 199 of file theme.h.
◆ text
| asw::Color asw::ui::ToastStyle::text { 255, 255, 255, 255 } |
Message text.
Definition at line 181 of file theme.h.
The documentation for this struct was generated from the following file: