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.

Mixin templates

enableInputActions
mixintemplate enableInputActions()

Mixin template to enable input actions in this class.

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.

runMouseInputActions
bool runMouseInputActions()

Run input actions for the node.

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

Meta