1 #ifndef TERMOX_SYSTEM_DETAIL_FOCUS_HPP
2 #define TERMOX_SYSTEM_DETAIL_FOCUS_HPP
49 static bool tab_enabled_;
50 static bool tab_suppressed_;
static void mouse_press(ox::Widget &clicked)
Sets the focus to clicked if it has a Focus_policy::Mouse/Strong.
Definition: focus.cpp:79
static void disable_tab_focus()
Disable Tab/Back_tab keys from changing focus Widget.
Definition: focus.cpp:141
static void suppress_tab()
Stops a Tab or Back_tab from changing focus to the next Widget.
Definition: focus.cpp:143
static void enable_tab_focus()
Enable Tab/Back_tab keys to change the focus Widget.
Definition: focus.cpp:139
static void clear_without_posting_event()
Set the focus widget to nullptr and do not send a Focus_out_event.
Definition: focus.cpp:137
static auto tab_press() -> bool
Find the next Focus_policy::Tab/Strong Widget and set focus to it.
Definition: focus.cpp:87
static void set(ox::Widget &new_focus)
Sets focus to new_focus, via a posted Focus_in event.
Definition: focus.cpp:115
static void unsuppress_tab()
Re-enable a Tab or Back_tab to change focus to the next Widget.
Definition: focus.cpp:145
static void clear()
Set the focus widget to nullptr and send Focus_out_event to focus_widg.
Definition: focus.cpp:129
static auto focus_widget() -> ox::Widget *
Return a pointer to the currently focused Widget, can return nullptr.
Definition: focus.cpp:77
static auto shift_tab_press() -> bool
Find the previous Focus_policy::Tab/Strong Widget and set focus to it.
Definition: focus.cpp:101