SliderWidget

A widget of slider.

Constructors

this
this()

Members

Aliases

Horizon
alias Horizon = H

Whether this slider is horizon.

Functions

draw
void draw(Window w, ColorSet parent)
handleKey
bool handleKey(Key key, KeyState status)
handleMouseButton
bool handleMouseButton(MouseButton btn, bool status, vec2 pos)
handleMouseMove
bool handleMouseMove(vec2 pos)
handleMouseScroll
bool handleMouseScroll(vec2 amount, vec2 pos)
layout
vec2 layout(vec2 pos, vec2 size)
resizeElements
void resizeElements()
Undocumented in source. Be warned that the author may not have intended to support it.
retrieveValueFromAbsPos
float retrieveValueFromAbsPos(vec2 pos)
Undocumented in source. Be warned that the author may not have intended to support it.
setRange
void setRange(float min, float max, float unit)

Sets range of slider value.

setValue
void setValue(float v)

Changes value.

Mixins

__anonymous
mixin Lockable
Undocumented in source.

Properties

barLate
barLate [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
cursor
const(Cursor) cursor [@property getter]
focusable
bool focusable [@property getter]
magnification
magnification [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
pointerLate
pointerLate [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
rangeSize
rangeSize [@property getter]
trackable
bool trackable [@property getter]
valueRate
valueRate [@property getter]

Variables

_bar
RectElement _bar;
Undocumented in source.
_barLength
float _barLength;
Undocumented in source.
_barWeight
float _barWeight;
_max
float _max;
Undocumented in source.
_min
float _min;
Undocumented in source.
_pointer
RegularNgonElement!3 _pointer;
Undocumented in source.
_pointerSize
float _pointerSize;
Undocumented in source.
_unit
float _unit;
Undocumented in source.
_value
float _value;
Undocumented in source.
onValueChange
ValueChangeHandler onValueChange;

Mixed In Members

From mixin Lockable

_locked
bool _locked;
Undocumented in source.
isLocked
isLocked [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
lock
void lock()
Undocumented in source. Be warned that the author may not have intended to support it.
unlock
void unlock()
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From Widget

_status
uint _status;
Undocumented in source.
status
status [@property getter]

Current status.

_context
WindowContext _context;
Undocumented in source.
_style
WidgetStyle _style;
Undocumented in source.
style
inout(WidgetStyle) style [@property getter]

Style of the widget.

_colorset
ColorSet _colorset;
Undocumented in source.
colorset
colorset [@property getter]

Current colorset.

_layout
Layout _layout;
Undocumented in source.
layoutObject
inout(Layout) layoutObject [@property getter]

Layout object.

_needLayout
bool _needLayout;
Undocumented in source.
_box
BoxElement _box;
Undocumented in source.
findChildAt
Widget findChildAt(vec2 pt)
Undocumented in source. Be warned that the author may not have intended to support it.
__anonymous
mixin Mouse
Undocumented in source.
__anonymous
mixin Keyboard
Undocumented in source.
handlePopup
void handlePopup(bool , WindowContext )
wantedSize
vec2 wantedSize [@property getter]
children
Widget[] children [@property getter]

Child widgets.

calcedChildren
Widget[] calcedChildren [@property getter]

Child widgets that have no uncalculated style properties.

childPlacerOwners
PlacerOwner[] childPlacerOwners [@property getter]

Child widgets that are casted to PlacerOwner.

childLayoutables
Layoutable[] childLayoutables [@property getter]

Child widgets that are casted to Layoutable.

infectWindowContext
void infectWindowContext()
Undocumented in source. Be warned that the author may not have intended to support it.
enableState
void enableState(WidgetState state)

Enables the state.

disableState
void disableState(WidgetState state)

Disables the state.

setLayout
void setLayout(Args args)

Changes Layout object.

checkNeedLayout
bool checkNeedLayout(bool recursively)

Checks if the widget needs re-layout.

needLayout
bool needLayout [@property getter]

Checks if the widget needs re-layout.

requestLayout
void requestLayout()

Set needLayout true.

layout
void layout(vec2i size)

Re-layouts the widget. Be called only by Window.

layout
vec2 layout(vec2 pos, vec2 size)

Re-layouts the widget.

shift
void shift(vec2 size)
needRedraw
bool needRedraw [@property getter]

Checks if the widget needs redrawing.

requestRedraw
void requestRedraw()

Sets needRedraw true.

drawBox
void drawBox(Window win)
Undocumented in source. Be warned that the author may not have intended to support it.
drawChildren
void drawChildren(Window win)
Undocumented in source. Be warned that the author may not have intended to support it.
draw
void draw(Window win)

Draws the widget. Be called only by Window.

draw
void draw(Window win, ColorSet parent)

Draws the widget.

Meta