docs » cp.ui.ScrollBar
Provides access to AXScrollBar axuielement values.
- Constants - Useful values which cannot be changed
- HORIZONTAL_ORIENTATION
- VERTICAL_ORIENTATION
- Constructors - API calls which return an object, typically one that offers API methods
- ScrollBar
- Fields - Variables which can only be accessed from an object returned by a constructor
- hidden
- horizontal
- orientation
- value
- vertical
- Methods - API calls which can only be made on an object returned by a constructor
- loadLayout
- matches
- saveLayout
- shiftValueBy
| Signature | cp.ui.ScrollBar.HORIZONTAL_ORIENTATION <string> |
|---|---|
| Type | Constant |
| Description | The value for AXOrientation when it is horizontal. |
| Signature | cp.ui.ScrollBar.VERTICAL_ORIENTATION <string> |
|---|---|
| Type | Constant |
| Description | The value for AXOrientation when it is vertical. |
| Signature | cp.ui.ScrollBar(parent, uiFinder) -> cp.ui.ScrollBar |
|---|---|
| Type | Constructor |
| Description | Creates a new ScrollBar instance with the specified parent and uiFinder. |
| Parameters |
|
| Returns |
|
| Signature | cp.ui.ScrollBar.hidden <cp.prop: boolean; read-only, live?> |
|---|---|
| Type | Field |
| Description | Is true if the ScrollBar is currently hidden. |
| Signature | cp.ui.ScrollBar.horizontal <cp.prop: boolean; read-only> |
|---|---|
| Type | Field |
| Description | Is true if the ScrollBar is horizontal, otherwise false. |
| Signature | cp.ui.ScrollBar.orientation <cp.prop: string; read-only> |
|---|---|
| Type | Field |
| Description | The AXOrientation string. |
| Signature | cp.ui.ScrollBar.value <cp.prop: number; live?> |
|---|---|
| Type | Field |
| Description | Is the numeric scroll value, typically between 0.0 and 1.0. May be set. |
| Signature | cp.ui.ScrollBar.vertical <cp.prop: boolean; read-only> |
|---|---|
| Type | Field |
| Description | Is true if the ScrollBar is vertical, otherwise false. |
| Signature | cp.ui.ScrollBar:loadLayout(layout) |
|---|---|
| Type | Method |
| Description | Loads the provided layout table of configuration parameters. |
| Parameters |
|
| Signature | cp.ui.ScrollBar.matches(element) -> boolean |
|---|---|
| Type | Method |
| Description | Checks if the element is a ScrollBar. |
| Parameters |
|
| Returns |
|
| Signature | cp.ui.ScrollBar:saveLayout() -> table |
|---|---|
| Type | Method |
| Description | Saves the ScrollBar layout configuration. |
| Returns |
|
| Signature | cp.ui.ScrollBar:shiftValueBy(amount) -> number |
|---|---|
| Type | Method |
| Description | Attempts to shift the value by the specified amount. |
| Parameters |
|
| Returns |
|