# Slider Control

(UI 0.9.9)

## 简介

A Slider is a control which represents a range, and a current value in the range. The sliding element of the control (sometimes called the "thumb") reflects the value, and can be adjusted within the range.

## 类摘要

class UI\Controls\Slider extends UI\Control {
/* Constructor */
public __construct(int `$min`, int `$max`)
/* 方法 */
public getValue(): int
protected onChange()
public setValue(int `$value`)
/* 继承的方法 */
public UI\Control::destroy()
public UI\Control::disable()
public UI\Control::enable()
public UI\Control::getParent(): UI\Control
public UI\Control::getTopLevel(): int
public UI\Control::hide()
public UI\Control::isEnabled(): bool
public UI\Control::isVisible(): bool
public UI\Control::setParent(UI\Control `$parent`)
public UI\Control::show()
}

## 目录

- UI\Controls\Slider::__construct — Construct a new Slider
- UI\Controls\Slider::getValue — Get Value
- UI\Controls\Slider::onChange — Change Handler
- UI\Controls\Slider::setValue — Set Value

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open