ScrollBar

scroll bar - either vertical or horizontal

Constructors

this
this()

empty parameter list constructor - for usage by factory

this
this(string ID, Orientation orient)

create with ID parameter

Members

Classes

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

Functions

cancelLayout
void cancelLayout()
Undocumented in source. Be warned that the author may not have intended to support it.
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.
setStringProperty
bool setStringProperty(string name, string value)

set string property value, for ML loaders

updateState
void updateState()

hide controls when scroll is not possible

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.
_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.
scrollEvent
Signal!OnScrollHandler scrollEvent;

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

minValue
int minValue [@property setter]

sets slider range min value

maxValue
int maxValue [@property getter]

returns slider range max value

maxValue
int maxValue [@property setter]

sets 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)

setIntProperty
bool setIntProperty(string name, int value)

set int property value, for ML loaders set int property value, for ML loaders

setRange
AbstractSlider setRange(int min, int max)

set new range (min and max values for slider)

sendScrollEvent
bool sendScrollEvent(ScrollAction action)
Undocumented in source. Be warned that the author may not have intended to support it.
sendScrollEvent
bool sendScrollEvent(ScrollAction action, int position)
Undocumented in source. Be warned that the author may not have intended to support it.
_orientation
Orientation _orientation;
Undocumented in source.
orientation
Orientation orientation [@property getter]

returns scrollbar orientation (Vertical, Horizontal)

orientation
Orientation orientation [@property setter]

sets scrollbar orientation

From OnClickHandler

onClick
bool onClick(Widget source)
Undocumented in source.

Meta