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.
 
Widgetpointer_capture = nullptr
 The widget that has captured pointer input.
 
Widgethover = nullptr
 The widget currently being hovered.
 
bool pointer_down = false
 Whether the pointer is currently down.
 
bool need_focus_rebuild = true
 Whether the focus list needs to be rebuilt.
 

Detailed Description

Shared state for the UI system.

Definition at line 75 of file context.h.

Constructor & Destructor Documentation

◆ Context()

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

Default constructor.

Member Data Documentation

◆ focus

FocusManager asw::ui::Context::focus

The focus manager.

Definition at line 85 of file context.h.

◆ hover

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

The widget currently being hovered.

Definition at line 91 of file context.h.

◆ need_focus_rebuild

bool asw::ui::Context::need_focus_rebuild = true

Whether the focus list needs to be rebuilt.

Definition at line 97 of file context.h.

◆ pointer_capture

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

The widget that has captured pointer input.

Definition at line 88 of file context.h.

◆ pointer_down

bool asw::ui::Context::pointer_down = false

Whether the pointer is currently down.

Definition at line 94 of file context.h.

◆ theme

Theme asw::ui::Context::theme

The current UI theme.

Definition at line 82 of file context.h.


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