HoverScrollable

Nodes implementing this interface can react to scroll motion if selected by a HoverIO system.

Temporarily called HoverScrollable, this node will be renamed to Scrollable in a future release. https://git.samerion.com/Samerion/Fluid/issues/278

Members

Functions

canScroll
bool canScroll(HoverPointer pointer)

Determines whether this node can accept scroll input and if the input can have visible effect. This is usually determined by the node's position; for example a container node already scrolled to the bottom cannot accept further vertical movement down.

opEquals
bool opEquals(Object other)

Memory safe and const object comparison.

scrollImpl
bool scrollImpl(HoverPointer pointer)

Perform a scroll motion, moving the node's contents by the specified distance.

shallowScrollTo
Rectangle shallowScrollTo(Node child, Rectangle parentBox, Rectangle childBox)

Scroll towards a specified child node, trying to get it into view.

Meta