ScrollInput

Constructors

this
this()
Undocumented in source.

Members

Aliases

horizontal
alias horizontal = isHorizontal
Undocumented in source.

Functions

drawImpl
void drawImpl(Rectangle paddingBox, Rectangle contentBox)
Undocumented in source. Be warned that the author may not have intended to support it.
emitChange
void emitChange(float move)

Change the value and run the changed callback.

isPressed
bool isPressed()
Undocumented in source. Be warned that the author may not have intended to support it.
resizeImpl
void resizeImpl(Vector2 space)

Set the total size of the scrollbar. Will always fill the available space in the target direction.

scroll
void scroll(FluidInputAction action)
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.

scrollPage
void scrollPage(FluidInputAction action)
Undocumented in source. Be warned that the author may not have intended to support it.
scrollPageLength
float scrollPageLength()

Scroll page length used for pageUp and pageDown navigation.

setScroll
void setScroll(float value)

Set the scroll to a value clamped between start and end. Doesn't trigger the changed event.

Manifest constants

actionScrollSpeed
enum actionScrollSpeed;

Keyboard/gamepad scroll speed in pixels per event.

scrollSpeed
enum scrollSpeed;

Mouse scroll speed; Pixels per event in Scrollable.

Mixins

__anonymous
mixin enableInputActions
Undocumented in source.

Variables

_isPressed
bool _isPressed;

True if the scrollbar is pressed.

availableSpace
float availableSpace;

Available space to scroll.

handle
ScrollInputHandle handle;

Handle of the scrollbar.

innerHovered
bool innerHovered;

If true, the inner part of the scrollbar is hovered.

isHorizontal
bool isHorizontal;

If true, the scrollbar will be horizontal.

length
double length;

Length of the scrollbar as determined in drawImpl.

pageLength
double pageLength;

Page length as determined in resizeImpl.

position
float position;

Amount of pixels the page is scrolled down.

width
float width;

Width of the scrollbar.

Meta