It provides primitive horizontal slider.
Types
SliderChangedHandler = proc (self: SliderRef; new_value: uint)
SliderObj = object of ControlRef slider_type*: SliderType max_value*, value*: uint progress_color*: ColorRef thumb*: DrawableRef on_changed*: SliderChangedHandler
SliderRef = ref SliderObj
Methods
method draw(self: SliderRef; w, h: GLfloat) {...}{.raises: [GLerror, Exception], tags: [RootEffect].}
- This uses in the window.nim.
method duplicate(self: SliderRef): SliderRef {...}{.base, raises: [], tags: [].}
- Duplicates Sider object and create a new Slider.
method setMaxValue(self: SliderRef; value: uint) {...}{.base, raises: [], tags: [].}
- Changes max value.
method setProgress(self: SliderRef; value: uint) {...}{.base, raises: [], tags: [].}
- Changes progress.
method setProgressColor(self: SliderRef; color: ColorRef) {...}{.base, raises: [], tags: [].}
- Changes progress color. For change background color use setBackgroundColor method.
method handle(self: SliderRef; event: InputEvent; mouse_on: var NodeRef) {...}{. raises: [Exception], tags: [RootEffect].}
- Handles user input. This uses in the window.nim.