HoverChain

A hover chain can be used to separate hover in different areas of the user interface, effectively treating them like separate windows. A device node (like a mouse) can be placed to control nodes inside.

HoverChain has to be placed inside FocusIO to enable switching focus by pressing nodes.

For focus-based nodes like keyboard and gamepad, see FocusChain.

HoverChain only works with nodes compatible with the new I/O system introduced in Fluid 0.7.2.

Constructors

this
this()
Undocumented in source.
this
this(Node next)
Undocumented in source.

Members

Functions

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.
armedPointer
inout(HoverPointer) armedPointer(HoverPointer pointer)

Get the armed variant of the pointer.

armedPointerID
int armedPointerID(int number)

Performs the opposite of normalizedPointerID; gets the ID of the armed pointer, the one made available to event handling nodes.

beforeDraw
void beforeDraw(Rectangle outer, Rectangle inner)
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.
emitEvent
void emitEvent(HoverPointer pointer, InputEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
fetch
inout(HoverPointer) fetch(int number)

Fetch a pointer by the number assigned to it when loading.

hoverOf
inout(Hoverable) hoverOf(HoverPointer pointer)
Undocumented in source. Be warned that the author may not have intended to support it.
isHovered
bool isHovered(Hoverable hoverable)
Undocumented in source. Be warned that the author may not have intended to support it.
load
int load(HoverPointer pointer)
Undocumented in source.
normalizedPointerID
int normalizedPointerID(int number)

Each HoverPointer loaded into HoverChain has two values, under two different ID numbers. This function converts either number into the original one.

opApply
int opApply(int delegate(HoverPointer) @(safe) yield)

List all active pointers controlled by this HoverChain.

opApply
int opApply(int delegate(Hoverable) @(safe) yield)
Undocumented in source. Be warned that the author may not have intended to support it.
runInputAction
bool runInputAction(HoverPointer pointer, bool isActive)
bool runInputAction(InputActionID actionID, bool isActive, int number)

List all active pointers controlled by this HoverChain.

runInputAction
bool runInputAction(HoverPointer pointer, InputActionID actionID, bool isActive)
Undocumented in source.
runLocalInputActions
bool runLocalInputActions(HoverPointer pointer, InputActionID actionID, bool isActive)

Run an input action implemented by this node. HoverChain does not implement any by default.

scrollOf
inout(HoverScrollable) scrollOf(HoverPointer pointer)
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin controlIO
Undocumented in source.

Variables

actionIO
ActionIO actionIO;
Undocumented in source.
focusIO
FocusIO focusIO;
Undocumented in source.

Inherited Members

From NodeChain

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.

From ActionHoverIO

runInputAction
bool runInputAction(HoverPointer pointer, InputActionID actionID, bool isActive)
bool runInputAction(HoverPointer pointer, bool isActive)

Handle an input action associated with a pointer.

Meta