- beforeDraw
void beforeDraw(Node node, Rectangle )
Undocumented in source. Be warned that the author may not have intended to support it.
- clearSubscribers
void clearSubscribers()
Undocumented in source. Be warned that the author may not have intended to support it.
- click
bool click(bool isActive, int clickCount)
- currentHover
Hoverable currentHover()
- currentScroll
HoverScrollable currentScroll()
- doubleClick
bool doubleClick(bool isActive)
Perform a double (doubleClick) or triple click (tripleClick) using the primary press action.
- holdScroll
HoverPointerAction holdScroll(Vector2 motion, bool value)
HoverPointerAction holdScroll(float x, float y, bool value)
Hold the scroll control in place. This makes it possible to continue scrolling a single node while
moving the cursor, which is commonly the scrolling behavior of touchscreens.
- isHovered
bool isHovered(Hoverable hoverable)
- move
HoverPointerAction move(Vector2 position)
HoverPointerAction move(float x, float y)
Move the pointer to given position.
- opEquals
bool opEquals(Object other)
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)
Run an input action on the currently hovered node, if any.
- scroll
HoverPointerAction scroll(Vector2 motion)
HoverPointerAction scroll(float x, float y)
Set a scroll value for the action.
- stayIdle
HoverPointerAction stayIdle()
Don't move the pointer, but keep it active.
- stopped
void stopped()
Undocumented in source. Be warned that the author may not have intended to support it.
- subscribe
void subscribe(Subscriber!HoverPointerAction subscriber)
Undocumented in source. Be warned that the author may not have intended to support it.
- treeContext
inout(TreeContext) treeContext()
Undocumented in source. Be warned that the author may not have intended to support it.
- tripleClick
bool tripleClick(bool isActive)
Perform a double (doubleClick) or triple click (tripleClick) using the primary press action.
- startNode
Node startNode;
Node to descend into; beforeDraw and afterDraw will only be emitted for this node and its children.
- toStop
bool toStop;
If true, this action is complete and no callbacks should be ran.
- generation
int generation;
Keeps track of the number of times the action has been started or stopped. Every start and every stop
bumps the generation number.
- inStartNode
bool inStartNode()
- inTree
bool inTree()
- clearSubscribers
void clearSubscribers()
Remove all event handlers attached to this tree.
- subscribe
void subscribe(Subscriber!() subscriber)
Undocumented in source. Be warned that the author may not have intended to support it.
- stop
void stop()
- started
void started()
Called whenever this action is started — added to the list of running actions in the LayoutTree
or TreeContext.
- stopped
void stopped()
Called whenever this action is stopped by calling stop.
- filterBeforeTree
bool filterBeforeTree()
- filterAfterTree
bool filterAfterTree()
Determine whether beforeTree and afterTree should be called.
- filterBeforeDraw
bool filterBeforeDraw(Node node)
- filterAfterDraw
bool filterAfterDraw(Node node)
Determine whether beforeDraw and afterDraw should be called for the given node.
- beforeTree
void beforeTree(Node root, Rectangle viewport)
Called before the tree is drawn. Keep in mind this might not be called if the action is started when tree
iteration has already begun.
- beforeTreeImpl
void beforeTreeImpl(Node root, Rectangle viewport)
Undocumented in source. Be warned that the author may not have intended to support it.
- beforeResize
void beforeResize(Node node, Vector2 viewportSpace)
Called before a node is resized.
- beforeResizeImpl
void beforeResizeImpl(Node node, Vector2 viewport)
Undocumented in source. Be warned that the author may not have intended to support it.
- afterResize
void afterResize(Node node, Vector2 viewportSpace)
Called after a node is resized.
- afterResizeImpl
void afterResizeImpl(Node node, Vector2 viewport)
Undocumented in source. Be warned that the author may not have intended to support it.
- beforeDraw
void beforeDraw(Node node, Rectangle space, Rectangle paddingBox, Rectangle contentBox)
void beforeDraw(Node node, Rectangle space)
Called before each drawImpl call of any node in the tree, so supplying parent nodes before their children.
- beforeDrawImpl
void beforeDrawImpl(Node node, Rectangle space, Rectangle paddingBox, Rectangle contentBox)
- afterDraw
void afterDraw(Node node, Rectangle space, Rectangle paddingBox, Rectangle contentBox)
void afterDraw(Node node, Rectangle space)
Called after each drawImpl call of any node in the tree, so supplying children nodes before their parents.
- afterDrawImpl
void afterDrawImpl(Node node, Rectangle space, Rectangle paddingBox, Rectangle contentBox)
- afterTree
void afterTree()
Called after the tree is drawn. Called before input events, so they can assume actions have completed.
- afterTreeImpl
void afterTreeImpl()
Undocumented in source. Be warned that the author may not have intended to support it.
- afterInput
void afterInput(bool keyboardHandled)
Hook that triggers after processing input. Useful if post-processing is necessary to, perhaps, implement
fallback input.
Virtual Hover I/O pointer, for testing.