FluidFocusable

An interface to be implemented by all nodes that can take focus.

Note: Input nodes often have many things in common. If you want to create an input-taking node, you're likely better off extending from FluidInput.

Members

Functions

focus
void focus()

Set focus to this node.

focusImpl
bool focusImpl()

Handle input. Called each frame when focused.

isFocused
bool isFocused()

Check if this node has focus. Recommended implementation: return tree.focus is this. Proxy nodes, such as FluidFilePicker might choose to return the value of the node they hold.

runFocusInputActions
bool runFocusInputActions()

Run input actions for the node.

Inherited Members

From FluidHoverable

mouseImpl
void mouseImpl()

Handle mouse input on the node.

isDisabled
inout(bool) isDisabled()

Check if the node is disabled. mixin makeHoverable to implement.

isHovered
bool isHovered()

Check if the node is hovered.

asNode
inout(Node) asNode()

Get the underlying node.

inputActionImpl
bool inputActionImpl(InputActionID id, bool active)

Handle input actions. This function is called by runInputAction and can be overriden to preprocess input actions in some cases.

runInputActionImpl
bool runInputActionImpl(InputActionID action, bool active)

Run input actions.

runInputAction
bool runInputAction(InputActionID action, bool active)
Undocumented in source. Be warned that the author may not have intended to support it.
runInputAction
bool runInputAction(bool active)
Undocumented in source. Be warned that the author may not have intended to support it.
runMouseInputActions
bool runMouseInputActions()

Run mouse input actions for the node.

makeHoverable
mixintemplate makeHoverable()
Undocumented in source.
enableInputActions
mixintemplate enableInputActions()
Undocumented in source.

Meta