Scrollable

Implement scrolling for the given node.

This only supports scrolling in one axis.

Constructors

this
this(T args)
Undocumented in source.

Members

Functions

drawImpl
void drawImpl(Rectangle outer, 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.
scrollEnd
void scrollEnd()

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

scrollMax
size_t 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(ptrdiff_t value)

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

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

Mixins

__anonymous
mixin DefineStyles
Undocumented in source.

Properties

scroll
inout(size_t) scroll [@property getter]

Distance the node is scrolled by.

Variables

scrollBar
ScrollInput scrollBar;

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

Meta