cp.apple.finalcutpro.inspector.InspectorProperty
InspectorProperty contains helper functions for handling common property
types that occur in various Inspectors in FCP.
In addition to specific property row types like textField, slider, etc.,
there is also a section, which is for rows which expand/collapse to reveal
other properties.
API Overview
Functions - API calls offered directly by the extension
button checkBox hasProperties menuButton numberField popUpButton section simple slider staticText textField xy
API Documentation
Functions
button
| Signature | cp.apple.finalcutpro.inspector.InspectorProperty.button(labelKey[, index]) -> cp.prop <cp.ui.PropertyRow; read-only> |
| Type | Function |
| Description | Creates a new cp.prop that contains a PropertyRow matching the labelKey. |
| Parameters |
|
| Returns |
|
| Notes |
|
| Examples | None |
| Source | src/extensions/cp/apple/finalcutpro/inspector/InspectorProperty.lua line 441 |
checkBox
| Signature | cp.apple.finalcutpro.inspector.InspectorProperty.checkBox(labelKey[, index]) -> cp.prop <cp.ui.PropertyRow; read-only> |
| Type | Function |
| Description | Creates a new cp.prop that contains a PropertyRow matching the labelKey. |
| Parameters |
|
| Returns |
|
| Notes |
|
| Examples | None |
| Source | src/extensions/cp/apple/finalcutpro/inspector/InspectorProperty.lua line 490 |
hasProperties
| Signature | cp.apple.finalcutpro.inspector.InspectorProperty.hasProperties(parent, uiFinder) -> boolean |
| Type | Function |
| Description | This will prepare the parent to handle containing PropertyRow children, and returns a function which can pass in a table of properties to bind to the parent. |
| Parameters |
|
| Returns |
|
| Notes |
|
| Examples | None |
| Source | src/extensions/cp/apple/finalcutpro/inspector/InspectorProperty.lua line 38 |
menuButton
| Signature | cp.apple.finalcutpro.inspector.InspectorProperty.menuButton(labelKey[, index]) -> cp.prop <cp.ui.PropertyRow; read-only> |
| Type | Function |
| Description | Creates a new cp.prop that contains a PropertyRow matching the labelKey. |
| Parameters |
|
| Returns |
|
| Notes |
|
| Examples | None |
| Source | src/extensions/cp/apple/finalcutpro/inspector/InspectorProperty.lua line 421 |
numberField
| Signature | cp.apple.finalcutpro.inspector.InspectorProperty.numberField(labelKey[, index]) -> cp.prop <cp.ui.PropertyRow; read-only> |
| Type | Function |
| Description | Creates a new cp.prop that contains a PropertyRow matching the labelKey. |
| Parameters |
|
| Returns |
|
| Notes |
|
| Examples | None |
| Source | src/extensions/cp/apple/finalcutpro/inspector/InspectorProperty.lua line 339 |
popUpButton
| Signature | cp.apple.finalcutpro.inspector.InspectorProperty.popUpButton(labelKey[, index]) -> cp.prop <cp.ui.PropertyRow; read-only> |
| Type | Function |
| Description | Creates a new cp.prop that contains a PropertyRow matching the labelKey. |
| Parameters |
|
| Returns |
|
| Notes |
|
| Examples | None |
| Source | src/extensions/cp/apple/finalcutpro/inspector/InspectorProperty.lua line 461 |
section
| Signature | cp.apple.finalcutpro.inspector.InspectorProperty.section(labelKey[, index]) -> function |
| Type | Function |
| Description | Returns a 'section row' factory function that can be called to create a section row that contains other PropertyRow' cp.prop`s. |
| Parameters |
|
| Returns |
|
| Notes |
|
| Examples | None |
| Source | src/extensions/cp/apple/finalcutpro/inspector/InspectorProperty.lua line 99 |
simple
| Signature | cp.apple.finalcutpro.inspector.InspectorProperty.simple(labelKey[, prepareFn][, index]]) -> cp.prop <cp.ui.PropertyRow; read-only> |
| Type | Function |
| Description | Creates a new cp.prop that contains a PropertyRow matching the labelKey. |
| Parameters |
|
| Returns |
|
| Notes |
|
| Examples | None |
| Source | src/extensions/cp/apple/finalcutpro/inspector/InspectorProperty.lua line 268 |
slider
| Signature | cp.apple.finalcutpro.inspector.InspectorProperty.slider(labelKey[, index]) -> cp.prop <cp.ui.PropertyRow; read-only> |
| Type | Function |
| Description | Creates a new cp.prop that contains a PropertyRow matching the labelKey. |
| Parameters |
|
| Returns |
|
| Notes |
|
| Examples | None |
| Source | src/extensions/cp/apple/finalcutpro/inspector/InspectorProperty.lua line 401 |
staticText
| Signature | cp.apple.finalcutpro.inspector.InspectorProperty.staticText(labelKey[, index]) -> cp.prop <cp.ui.PropertyRow; read-only> |
| Type | Function |
| Description | Creates a new cp.prop that contains a PropertyRow matching the labelKey. |
| Parameters |
|
| Returns |
|
| Notes |
|
| Examples | None |
| Source | src/extensions/cp/apple/finalcutpro/inspector/InspectorProperty.lua line 359 |
textField
| Signature | cp.apple.finalcutpro.inspector.InspectorProperty.textField(labelKey[, index]) -> cp.prop <cp.ui.PropertyRow; read-only> |
| Type | Function |
| Description | Creates a new cp.prop that contains a PropertyRow matching the labelKey. |
| Parameters |
|
| Returns |
|
| Notes |
|
| Examples | None |
| Source | src/extensions/cp/apple/finalcutpro/inspector/InspectorProperty.lua line 319 |
xy
| Signature | cp.apple.finalcutpro.inspector.InspectorProperty.xy(labelKey[, index]) -> cp.prop <cp.ui.PropertyRow; read-only> |
| Type | Function |
| Description | Creates a new cp.prop that contains a PropertyRow matching the labelKey. |
| Parameters |
|
| Returns |
|
| Notes |
|
| Examples | None |
| Source | src/extensions/cp/apple/finalcutpro/inspector/InspectorProperty.lua line 379 |