|
| class | Button |
| | An interactive button widget. More...
|
| |
| struct | ButtonStyle |
| | How a button looks. Set on Theme::button for every button, or on Button::style for one button. More...
|
| |
| class | Checkbox |
| | A button that toggles between checked and unchecked. More...
|
| |
| struct | CheckboxStyle |
| | How a checkbox looks. Set on Theme::checkbox for every checkbox, or on Checkbox::checkbox_style for one checkbox. More...
|
| |
| class | Choice |
| | A button that cycles through a list of options, e.g. difficulty or window mode. More...
|
| |
| class | Context |
| | Shared state for the UI system. More...
|
| |
| class | FocusManager |
| | Manages focus navigation for UI widgets. More...
|
| |
| struct | FocusRingStyle |
| |
| class | Grid |
| | Places children in a grid, filling each row left to right, e.g. a level select or a 2 by 2 menu. More...
|
| |
| class | Image |
| | A texture stretched over the widget, e.g. a logo or icon in a layout. More...
|
| |
| class | InputBox |
| | A text input widget. More...
|
| |
| struct | InputStyle |
| | How an input box looks. Set on Theme::input for every input box, or on InputBox::style for one input box. More...
|
| |
| class | Label |
| | A text display widget. More...
|
| |
| class | Modal |
| | A box over the rest of the UI that has to be dealt with first, e.g. a question or a login code. More...
|
| |
| struct | ModalStyle |
| | Look of a Modal and the dimmed screen behind it. More...
|
| |
| struct | Navigation |
| | Action names the UI reads for focus navigation, see asw/modules/action.h. More...
|
| |
| class | Panel |
| | A container widget with a background color or image. More...
|
| |
| class | Root |
| | Root container that manages the UI tree, input, and rendering. More...
|
| |
| class | Slider |
| | A horizontal slider for a value between min and max, e.g. volume. More...
|
| |
| struct | SliderStyle |
| | How a slider looks. Set on Theme::slider for every slider, or on Slider::style for one slider. More...
|
| |
| class | Stack |
| | Places children one after another, top to bottom or left to right. More...
|
| |
| struct | Theme |
| | Theme configuration for UI elements. More...
|
| |
| struct | Toast |
| | A short message shown at the top of the screen, see Root::toast. More...
|
| |
| struct | ToastStyle |
| | The ring drawn around the focused widget during keyboard or controller navigation. More...
|
| |
| struct | UIEvent |
| | Event structure for UI interactions. More...
|
| |
| class | VBox |
| | A vertical stack with padding, for a column of rows. More...
|
| |
| class | Widget |
| | Base class for all UI widgets. More...
|
| |
|
| enum class | Direction { Vertical
, Horizontal
} |
| | Stack direction. More...
|
| |
| enum class | Align { Start
, Center
, End
, Stretch
} |
| | Where children sit across the stack: left to right for a vertical stack, top to bottom for a horizontal one. More...
|
| |
| enum class | BoxSide { Left
, Right
} |
| | Which side of a checkbox the box is on. More...
|
| |
| enum class | Anchor {
None
, TopLeft
, Top
, TopRight
,
Left
, Center
, Right
, BottomLeft
,
Bottom
, BottomRight
} |
| | A point of the parent an anchored widget sits at, see Widget::anchor. More...
|
| |
| bool asw::ui::in_row_with_focusables |
( |
const Widget & | w | ) |
|
Whether a widget sits in a row with other widgets that can take focus: its parent is a horizontal Stack, or a Grid with more than one column, holding another visible, enabled, focusable child.
Value widgets (Choice, Slider) use this to leave left and right for moving between the widgets in the row.
- Parameters
-
- Returns
- True if left and right should move focus within the row.
Definition at line 138 of file layout.cpp.