Scrollable

Implement scrolling for the given node.

This only supports scrolling in one axis.

Constructors

this
this(T args)
Undocumented in source.

Members

Functions

canScroll
bool canScroll(Vector2 valueVec)
Undocumented in source. Be warned that the author may not have intended to support it.
drawImpl
void drawImpl(Rectangle mainOuter, 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.
scroll
inout(float) scroll()

Distance the node is scrolled by.

scroll
float scroll()
Undocumented in source. Be warned that the author may not have intended to support it.
scroll
float scroll(float value)
Undocumented in source. Be warned that the author may not have intended to support it.
scrollEnd
void scrollEnd()

Scroll to the end of the node, requires the node to be drawn at least once.

scrollImpl
void scrollImpl(Vector2 valueVec)
Undocumented in source. Be warned that the author may not have intended to support it.
scrollMax
float scrollMax()

Get the maximum value this container can be scrolled to. Requires at least one draw.

scrollStart
void scrollStart()

Scroll to the beginning of the node.

setScroll
void setScroll(float value)

Set the scroll to a value clamped between start and end.

shallowScrollTo
deprecated Rectangle shallowScrollTo(Node child, Vector2 , Rectangle parentBox, Rectangle childBox)
Undocumented in source. Be warned that the author may not have intended to support it.
shallowScrollTo
Rectangle shallowScrollTo(Node , Rectangle parentBox, Rectangle childBox)

Scroll to the given node.

Variables

scrollBar
ScrollInput scrollBar;

Scrollbar for the frame. Can be replaced with a customized one.

Inherited Members

From FluidScrollable

canScroll
bool canScroll(Vector2 value)

Returns true if the node can react to given scroll.

scrollImpl
void scrollImpl(Vector2 value)

React to scroll wheel input.

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

Scroll to given child node.

scroll
float scroll()

Get current scroll value.

scroll
float scroll(float value)

Set scroll value.

Meta