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::Context Class Reference

Shared state for the UI system. More...

#include <context.h>

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

Public Member Functions

 Context ()=default
 Default constructor.
 

Public Attributes

Theme theme
 The current UI theme.
 
FocusManager focus
 The focus manager.
 
Navigation navigation
 Actions to read for focus navigation. Empty names use the built in keys.
 
bool show_focus = false
 Whether focus is shown. Root turns it on for keyboard and controller navigation and off when the mouse is used.
 

Private Attributes

Widget * pointer_capture = nullptr
 
Widget * hover = nullptr
 

Friends

class Root
 

Detailed Description

Shared state for the UI system.

Definition at line 97 of file context.h.

Constructor & Destructor Documentation

◆ Context()

asw::ui::Context::Context ( )
default

Default constructor.

Friends And Related Symbol Documentation

◆ Root

friend class Root
friend

Definition at line 118 of file context.h.

Member Data Documentation

◆ focus

FocusManager asw::ui::Context::focus

The focus manager.

Definition at line 107 of file context.h.

◆ hover

Widget* asw::ui::Context::hover = nullptr
private

Definition at line 124 of file context.h.

◆ navigation

Navigation asw::ui::Context::navigation

Actions to read for focus navigation. Empty names use the built in keys.

Definition at line 111 of file context.h.

◆ pointer_capture

Widget* asw::ui::Context::pointer_capture = nullptr
private

Definition at line 121 of file context.h.

◆ show_focus

bool asw::ui::Context::show_focus = false

Whether focus is shown. Root turns it on for keyboard and controller navigation and off when the mouse is used.

Definition at line 115 of file context.h.

◆ theme

Theme asw::ui::Context::theme

The current UI theme.

Definition at line 104 of file context.h.


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