GluiScrollBar

Constructors

this
this(Args args)
Undocumented in source.

Members

Functions

drawImpl
void drawImpl(Rectangle paddingBox, Rectangle contentBox)
Undocumented in source. Be warned that the author may not have intended to support it.
keyboardImpl
bool keyboardImpl()
Undocumented in source. Be warned that the author may not have intended to support it.
mouseImpl
void mouseImpl()
Undocumented in source. Be warned that the author may not have intended to support it.
pickStyle
const(Style) pickStyle()
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.

scrollMax
size_t scrollMax()

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

setScroll
void setScroll(ptrdiff_t value)
void setScroll(float value)

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

Manifest constants

scrollSpeed
enum scrollSpeed;

Multipler of the scroll speed; applies to keyboard scroll only.

Mixins

__anonymous
mixin DefineStyles!("backgroundStyle", q{ Style.init }, "pressStyle", q{ style })

Styles defined by this node:

__anonymous
mixin ImplHoveredRect
Undocumented in source.

Variables

availableSpace
size_t availableSpace;

Available space to scroll.

grabPosition
Vector2 grabPosition;

Position where the mouse grabbed the scrollbar.

handleLength
double handleLength;

Length of the handle.

horizontal
bool horizontal;

If true, the scrollbar will be horizontal.

innerHovered
bool innerHovered;

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

position
size_t position;

Amount of pixel the page is scrolled down.

scrollbarLength
double scrollbarLength;

Length of the scrollbar as determined in drawImpl.

scrollbarPosition
Vector2 scrollbarPosition;

Position of the scrollbar on the screen.

startPosition
size_t startPosition;

Start position of the mouse at the beginning of the grab.

Meta