Interface IFocusHandler
- Namespace
- RichHudFramework.UI
- Assembly
- RichHudClient.dll
Manages keyboard/input focus for a UI element. Only one element in the entire UI can have focus at a time. Input-related events use InputOwner as the sender object.
public interface IFocusHandler
Properties
GainedInputFocusCallback
Invoked when this UI element gains input focus. Event initializer.
EventHandler GainedInputFocusCallback { set; }
Property Value
HasFocus
Returns true if the UI element currently has input focus
bool HasFocus { get; }
Property Value
InputOwner
UI element that owns this focus handler, used in event callbacks
IFocusableElement InputOwner { get; set; }
Property Value
LostInputFocusCallback
Invoked when this UI element loses input focus. Event initializer.
EventHandler LostInputFocusCallback { set; }
Property Value
Methods
GetInputFocus()
Manually requests and takes input focus for this element
void GetInputFocus()
ReleaseFocus()
Releases the input focus from this element
void ReleaseFocus()
Events
GainedInputFocus
Invoked when this UI element gains input focus
event EventHandler GainedInputFocus
Event Type
LostInputFocus
Invoked when this UI element loses input focus
event EventHandler LostInputFocus