OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
ui.focusable_item_if.FocusableItemIf Class Reference

Interface implemented by a panel item that can receive focus. More...

Inherits ABC.

Public Member Functions

None set_focused (self, bool focused)
 Update the item's focused state and visual presentation.
 
None activate (self)
 Perform the item's primary action.
 
bool is_enabled (self)
 Return whether the item can currently receive focus.
 

Detailed Description

Interface implemented by a panel item that can receive focus.

Member Function Documentation

◆ is_enabled()

bool ui.focusable_item_if.FocusableItemIf.is_enabled (   self)

Return whether the item can currently receive focus.

Returns
True when focus traversal may select this item.

◆ set_focused()

None ui.focusable_item_if.FocusableItemIf.set_focused (   self,
bool  focused 
)

Update the item's focused state and visual presentation.

Parameters
focusedTrue when the item should present keyboard focus.

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