- afterDraw
void afterDraw(Rectangle outer, Rectangle inner)
Undocumented in source. Be warned that the author may not have intended to support it.
- afterResize
void afterResize(Vector2 )
Undocumented in source. Be warned that the author may not have intended to support it.
- beforeDraw
void beforeDraw(Rectangle , Rectangle )
Undocumented in source. Be warned that the author may not have intended to support it.
- beforeResize
void beforeResize(Vector2 )
Undocumented in source. Be warned that the author may not have intended to support it.
- currentFocus
inout(Focusable) currentFocus()
Undocumented in source. Be warned that the author may not have intended to support it.
- currentFocus
Focusable currentFocus(Focusable newFocus)
Undocumented in source. Be warned that the author may not have intended to support it.
- emitEvent
void emitEvent(InputEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
- focusInDirection
void focusInDirection(FluidInputAction actionType)
Undocumented in source. Be warned that the author may not have intended to support it.
- focusPreviousOrNext
void focusPreviousOrNext(FluidInputAction actionType)
Undocumented in source. Be warned that the author may not have intended to support it.
- lastFocusBox
Optional!Rectangle lastFocusBox()
Undocumented in source. Be warned that the author may not have intended to support it.
- orderedFocusAction
inout(OrderedFocusAction) orderedFocusAction()
Undocumented in source. Be warned that the author may not have intended to support it.
- positionalFocusAction
inout(PositionalFocusAction) positionalFocusAction()
Undocumented in source. Be warned that the author may not have intended to support it.
- readText
char[] readText(char[] buffer, int offset)
Undocumented in source. Be warned that the author may not have intended to support it.
- runInputAction
bool runInputAction(InputActionID actionID, bool isActive)
bool runInputAction(bool isActive)
bool runInputAction(InputActionID actionID, bool isActive, int )
Handle an input action using the currently focused node.
- runLocalInputActions
bool runLocalInputActions(InputActionID actionID, bool isActive)
Run an input action implemented by this node. These usually perform focus switching
- typeText
void typeText(char[] text)
Type text to read during the next frame.
- wasInputHandled
bool wasInputHandled()
If a node inside FocusChain triggers an input event (for example a keyboard node,
like a keyboard automaton), another node inside may handle the event. This property
will be set to true after that happens.
- next
Node next(Node value)
Set the next node in chain.
- next
inout(Node) next()
- nextChain
inout(NodeChain) nextChain()
- beforeResize
void beforeResize(Vector2 space)
Undocumented in source. Be warned that the author may not have intended to support it.
- afterResize
void afterResize(Vector2 space)
Undocumented in source. Be warned that the author may not have intended to support it.
- beforeDraw
void beforeDraw(Rectangle outer, Rectangle inner)
Undocumented in source. Be warned that the author may not have intended to support it.
- afterDraw
void afterDraw(Rectangle outer, Rectangle inner)
Undocumented in source. Be warned that the author may not have intended to support it.
- resizeImpl
void resizeImpl(Vector2 space)
Undocumented in source. Be warned that the author may not have intended to support it.
- drawImpl
void drawImpl(Rectangle outer, Rectangle inner)
Undocumented in source. Be warned that the author may not have intended to support it.
A focus chain can be used to separate focus in different areas of the user interface. A device node (focus-based, like a keyboard or gamepad) node can be placed to control nodes inside.
For hover-based nodes like mouse, see HoverChain.
FocusChain only works with nodes compatible with the new I/O system introduced in Fluid 0.7.2.