voxelman.gui.eventpropagators

Members

Enums

OnHandle
enum OnHandle
Undocumented in source.
PropagatingStrategy
enum PropagatingStrategy

Functions

buildPathToLeaf
WidgetId[] buildPathToLeaf(GuiContext context, WidgetId root, T data)

Tests all root's children with pred. Then calls itself with found child. Adds widgets satisfying pred to returned array. Root widget is added first. Can be used to find widget that is under cursor

propagateEventChildrenFirst
void propagateEventChildrenFirst(GuiContext context, WidgetId root, Event event)
Undocumented in source. Be warned that the author may not have intended to support it.
propagateEventParentFirst
void propagateEventParentFirst(GuiContext context, WidgetId root, Event event)
Undocumented in source. Be warned that the author may not have intended to support it.
propagateEventSinkBubble
WidgetId[] propagateEventSinkBubble(GuiContext context, WidgetId[] widgets, Event event, OnHandle onHandle)

Returns sub-chain that handled event if onHandle is StopTraversing Doesn't check for hidden flag

propagateEventSinkBubbleTree
void propagateEventSinkBubbleTree(GuiContext context, WidgetId root, Event event)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta

Authors

Andrey Penechko.