OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
ui.focus_manager.FocusManager Class Reference

Own focus state and traversal for one panel. More...

Public Member Functions

FocusableItemIf|None focused_item (self)
 Return the currently focused item, if any.
 
int|None focused_index (self)
 Return the current index, if any.
 
None set_items (self, Iterable[FocusableItemIf] items)
 Replace the traversal order and focus the first enabled item.
 
bool focus_first (self)
 Focus the first enabled item.
 
bool focus_next (self)
 Move focus to the next enabled item.
 
bool focus_previous (self)
 Move focus to the previous enabled item.
 
bool activate_focused (self)
 Activate the focused item.
 
None clear_focus (self)
 Remove focus from the current item.
 

Detailed Description

Own focus state and traversal for one panel.


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