ScrollBar

scroll bar - either vertical or horizontal

Constructors

this
this(string ID, Orientation orient)
Undocumented in source.

Members

Classes

PageScrollButton
class PageScrollButton
Undocumented in source.
SliderButton
class SliderButton
Undocumented in source.

Functions

layout
void layout(Rect rc)
Undocumented in source. Be warned that the author may not have intended to support it.
layoutButtons
void layoutButtons()
Undocumented in source. Be warned that the author may not have intended to support it.
layoutButtons
void layoutButtons(Rect irc)
Undocumented in source. Be warned that the author may not have intended to support it.
measure
void measure(int parentWidth, int parentHeight)
Undocumented in source. Be warned that the author may not have intended to support it.
onClick
bool onClick(Widget source)
Undocumented in source. Be warned that the author may not have intended to support it.
onDraw
void onDraw(DrawBuf buf)

Draw widget at its position to buffer

onIndicatorDragging
bool onIndicatorDragging(int initialPosition, int currentPosition)
Undocumented in source. Be warned that the author may not have intended to support it.
onMouseEvent
bool onMouseEvent(MouseEvent event)

handle mouse wheel events

onPositionChanged
void onPositionChanged()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

orientation
Orientation orientation [@property getter]

returns scrollbar orientation (Vertical, Horizontal)

orientation
Orientation orientation [@property setter]

sets scrollbar orientation

Variables

_btnBack
ImageButton _btnBack;
Undocumented in source.
_btnForward
ImageButton _btnForward;
Undocumented in source.
_btnSize
int _btnSize;
Undocumented in source.
_indicator
SliderButton _indicator;
Undocumented in source.
_minIndicatorSize
int _minIndicatorSize;
Undocumented in source.
_orientation
Orientation _orientation;
Undocumented in source.
_pageDown
PageScrollButton _pageDown;
Undocumented in source.
_pageUp
PageScrollButton _pageUp;
Undocumented in source.
_scrollArea
Rect _scrollArea;
Undocumented in source.

Inherited Members

From AbstractSlider

_minValue
int _minValue;
Undocumented in source.
_maxValue
int _maxValue;
Undocumented in source.
_pageSize
int _pageSize;
Undocumented in source.
_position
int _position;
Undocumented in source.
onScrollEventListener
Signal!OnScrollHandler onScrollEventListener;

scroll event listeners

position
int position [@property getter]

returns slider position

position
int position [@property setter]

sets new slider position

onPositionChanged
void onPositionChanged()
Undocumented in source. Be warned that the author may not have intended to support it.
minValue
int minValue [@property getter]

returns slider range min value

maxValue
int maxValue [@property getter]

returns slider range max value

pageSize
int pageSize [@property getter]

page size (visible area size)

pageSize
int pageSize [@property setter]

set page size (visible area size)

setRange
AbstractSlider setRange(int min, int max)

set new range (min and max values for slider)

sendScrollEvent
bool sendScrollEvent(ScrollAction action, int position)
Undocumented in source. Be warned that the author may not have intended to support it.

From OnClickHandler

onClick
bool onClick(Widget source)
Undocumented in source.

Meta