InputNode

Represents a general input node.

Styles:

  • styleKey = Default style for the input.
  • focusStyleKey = Style for when the input is focused.
  • disabledStyleKey = Style for when the input is disabled.

Constructors

this
this(T sup)
Undocumented in source.

Members

Functions

checkIsPressed
bool checkIsPressed()

Check if the node is being pressed. Performs action lookup.

focus
void focus()

Change the focus to this node.

focusImpl
bool focusImpl()

Handle keyboard and gamepad input.

keyboardImpl
bool keyboardImpl()
Undocumented in source. Be warned that the author may not have intended to support it.
mouseImpl
void mouseImpl()

Handle mouse input.

pickStyle
inout(Style) pickStyle()
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin defineStyles!("focusStyle", q{ style }, "hoverStyle", q{ style }, "disabledStyle", q{ style })
Undocumented in source.
__anonymous
mixin makeHoverable
Undocumented in source.
__anonymous
mixin enableInputActions
Undocumented in source.

Properties

isFocused
bool isFocused [@property getter]

Check if the node has focus.

isFocused
bool isFocused [@property setter]

Set or remove focus from this node.

Variables

changed
void delegate() changed;

Callback to run when the input value is altered.

submitted
void delegate() submitted;

Callback to run when the input is submitted.

Mixed In Members

From mixin defineStyles!("focusStyle", q{ style }, "hoverStyle", q{ style }, "disabledStyle", q{ style })

reloadStylesImpl
void reloadStylesImpl()
Undocumented in source. Be warned that the author may not have intended to support it.
loadDefaultStyles
void loadDefaultStyles()
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From FluidFocusable

focusImpl
bool focusImpl()

Handle input. Called each frame when focused.

focus
void focus()

Set focus to this node.

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.

enableInputActions
mixintemplate enableInputActions()

Mixin template to enable input actions in this class.

Meta