Node.hoveredImpl

Check if the node is hovered.

This will be called right before drawImpl for each node in order to determine the which node should handle mouse input.

If your node fills the rectangle area its given in drawImpl, you may use mixin ImplHoveredRect to implement this automatically.

class Node
protected abstract const
bool
hoveredImpl

Parameters

rect Rectangle

Area the node should be drawn in, as provided by drawImpl.

mousePosition Vector2

Current mouse position within the window.

Meta