docs » cp.ui.Slider
Slider Module.
- Functions - API calls offered directly by the extension
- matches
- Constructors - API calls which return an object, typically one that offers API methods
- Slider
- Fields - Variables which can only be accessed from an object returned by a constructor
- maxValue
- minValue
- value
- Methods - API calls which can only be made on an object returned by a constructor
- decrement
- getMaxValue
- getMinValue
- getValue
- increment
- loadLayout
- saveLayout
- setValue
- shiftValue
| Signature | cp.ui.Slider.matches(element) -> boolean |
|---|---|
| Type | Function |
| Description | Checks if the provided hs._asm.axuielement is a Slider. |
| Parameters |
|
| Returns |
|
| Signature | cp.ui.Slider(parent, uiFinder) -> cp.ui.Slider |
|---|---|
| Type | Constructor |
| Description | Creates a new Slider |
| Parameters |
|
| Returns |
|
| Signature | cp.ui.Slider.maxValue <cp.prop: number; read-only> |
|---|---|
| Type | Field |
| Description | Gets the maximum value of the slider. |
| Signature | cp.ui.Slider.minValue <cp.prop: number; read-only> |
|---|---|
| Type | Field |
| Description | Gets the minimum value of the slider. |
| Signature | cp.ui.Slider.value <cp.prop: number> |
|---|---|
| Type | Field |
| Description | Sets or gets the value of the slider. |
| Signature | cp.ui.Slider:decrement() -> self |
|---|---|
| Type | Method |
| Description | Decrements the slider by one step. |
| Parameters |
|
| Returns |
|
| Signature | cp.ui.Slider:getMaxValue() -> number |
|---|---|
| Type | Method |
| Description | Gets the maximum value of the slider. |
| Parameters |
|
| Returns |
|
| Signature | cp.ui.Slider:getMinValue() -> number |
|---|---|
| Type | Method |
| Description | Gets the minimum value of the slider. |
| Parameters |
|
| Returns |
|
| Signature | cp.ui.Slider:getValue() -> number |
|---|---|
| Type | Method |
| Description | Gets the value of the slider. |
| Parameters |
|
| Returns |
|
| Signature | cp.ui.Slider:increment() -> self |
|---|---|
| Type | Method |
| Description | Increments the slider by one step. |
| Parameters |
|
| Returns |
|
| Signature | cp.ui.Slider:loadLayout(layout) -> none |
|---|---|
| Type | Method |
| Description | Loads a Slider layout. |
| Parameters |
|
| Returns |
|
| Signature | cp.ui.Slider:saveLayout() -> table |
|---|---|
| Type | Method |
| Description | Saves the current Slider layout to a table. |
| Parameters |
|
| Returns |
|
| Signature | cp.ui.Slider:setValue(value) -> self |
|---|---|
| Type | Method |
| Description | Sets the value of the slider. |
| Parameters |
|
| Returns |
|
| Signature | cp.ui.Slider:shiftValue(value) -> self |
|---|---|
| Type | Method |
| Description | Shifts the value of the slider. |
| Parameters |
|
| Returns |
|