#cp.apple.finalcutpro.timeline.CaptionsRole

Extends Role

A Role representing Captions.


#API Overview

Functions - API calls offered directly by the extension

Constructors - API calls which return an object, typically one that offers API methods

Fields - Variables which can only be accessed from an object returned by a constructor


#API Documentation

#Functions

Signaturecp.apple.finalcutpro.timeline.CaptionsRole.matches(element) -> boolean
TypeFunction
DescriptionChecks if the element is a "Captions" Role.
Parameters
  • element - The element to check
Returns
  • A boolean
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/timeline/CaptionsRole.lua line 21

#Constructors

Signaturecp.apple.finalcutpro.timeline.CaptionsRole(parent, uiFinder)
TypeConstructor
DescriptionCreates a new instance with the specified parent and uiFinder.
Parameters
  • parent - the parent Element.
  • uiFinder - a function or cp.prop containing the axuielement
Returns
  • The new Row.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/timeline/CaptionsRole.lua line 36

#Fields

Signaturecp.apple.finalcutpro.timeline.CaptionsRole.subrolesExpanded <cp.ui.Button>
TypeField
DescriptionA Button that toggles whether the sub-captions are visible.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/timeline/CaptionsRole.lua line 59

Signaturecp.apple.finalcutpro.timeline.CaptionsRole.visibleInViewer <cp.ui.CheckBox>
TypeField
DescriptionA CheckBox that toggles whether captions are visible in the Viewer.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/timeline/CaptionsRole.lua line 50