AbstractSlider

base class for widgets like scrollbars and sliders

Constructors

this
this(string ID)

create with ID parameter

Members

Functions

onPositionChanged
void onPositionChanged()
Undocumented in source. Be warned that the author may not have intended to support it.
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.
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)

Properties

maxValue
int maxValue [@property getter]

returns slider range max value

maxValue
int maxValue [@property setter]

sets slider range max value

minValue
int minValue [@property getter]

returns slider range min value

minValue
int minValue [@property setter]

sets slider range min value

orientation
Orientation orientation [@property getter]

returns scrollbar orientation (Vertical, Horizontal)

orientation
Orientation orientation [@property setter]

sets scrollbar orientation

pageSize
int pageSize [@property getter]

page size (visible area size)

pageSize
int pageSize [@property setter]

set page size (visible area size)

position
int position [@property getter]

returns slider position

position
int position [@property setter]

sets new slider position

Variables

_maxValue
int _maxValue;
Undocumented in source.
_minValue
int _minValue;
Undocumented in source.
_orientation
Orientation _orientation;
Undocumented in source.
_pageSize
int _pageSize;
Undocumented in source.
_position
int _position;
Undocumented in source.
scrollEvent
Signal!OnScrollHandler scrollEvent;

scroll event listeners

Inherited Members

From WidgetGroup

_children
WidgetList _children;
Undocumented in source.
needDraw
bool needDraw [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
childCount
int childCount [@property getter]

returns number of children of this widget

child
inout(Widget) child(int index)

returns child by index

addChild
Widget addChild(Widget item)

adds child, returns added item

insertChild
Widget insertChild(Widget item, int index)

inserts child at given index, returns inserted item

removeChild
Widget removeChild(int index)

removes child, returns removed item

removeChild
Widget removeChild(string ID)

removes child by ID, returns removed item

removeChild
Widget removeChild(Widget child)

removes child, returns removed item

childIndex
int childIndex(Widget item)

returns index of widget in child list, -1 if passed widget is not a child of this widget

removeAllChildren
void removeAllChildren(bool destroyObj)
Undocumented in source. Be warned that the author may not have intended to support it.
replaceChild
void replaceChild(Widget newChild, Widget oldChild)

replace child with other child

Meta