Dusk Audio Framework
Loading...
Searching...
No Matches
Widget::FocusEvent Struct Reference

#include <Widget.hpp>

Public Member Functions

 FocusEvent () noexcept

Public Attributes

bool focus
CrossingMode mode

Detailed Description

Keyboard focus event.

This event is sent when the window a widget belongs to gains or loses the keyboard focus. The mode field tells whether the change is a plain focus change or the side-effect of a grab, which matters because a grab is temporary and does not mean the user moved away.

See also
onFocusChanged

Constructor & Destructor Documentation

◆ FocusEvent()

Widget::FocusEvent::FocusEvent ( )
inlinenoexcept

Constructor for default/null values

Member Data Documentation

◆ focus

bool Widget::FocusEvent::focus

True if the window gained the focus, false if it lost it.

◆ mode

CrossingMode Widget::FocusEvent::mode

The reason for the focus change.

See also
CrossingMode

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