FluidHoverable

An interface to be implemented by all nodes that can perform actions when hovered (eg. on click)

Members

Functions

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.

isDisabled
inout(bool) isDisabled()

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

isHovered
bool isHovered()

Check if the node is hovered.

mouseImpl
void mouseImpl()

Handle mouse input on the node.

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.
runInputActionImpl
bool runInputActionImpl(InputActionID action, bool active)

Run input actions.

runMouseInputActions
bool runMouseInputActions()

Run mouse input actions for the node.

Mixin templates

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

Meta