Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Latest commit

 

History

History
252 lines (214 loc) · 22.7 KB

cp.apple.finalcutpro.inspector.Inspector.md

File metadata and controls

252 lines (214 loc) · 22.7 KB

docs » cp.apple.finalcutpro.inspector.Inspector


Inspector

API Overview

API Documentation

Constants

Signature cp.apple.finalcutpro.inspector.Inspector.INSPECTOR_TABS -> table
Type Constant
Description Table of supported Inspector Tabs

Functions

Signature cp.apple.finalcutpro.inspector.Inspector.matches(element) -> boolean
Type Function
Description Checks to see if an element matches what we think it should be.
Parameters
  • element - axuielementObject
Returns
  • true if matches otherwise false

Constructors

Signature cp.apple.finalcutpro.inspector.Inspector(parent) -> Inspector
Type Constructor
Description Creates a new Inspector.
Parameters
  • parent - The parent object.
Returns
  • The Inspector object.

Fields

Signature cp.apple.finalcutpro.inspector.Inspector.audio <cp.apple.finalcutpro.inspector.AudioInspector>
Type Field
Description The AudioInspector.
Signature cp.apple.finalcutpro.inspector.Inspector.bottomBarUI <cp.prop: hs._asm.axuielement; read-only>
Type Field
Description Returns the bottom bar axuielement for the Inspector.
Signature cp.apple.finalcutpro.inspector.Inspector.color <cp.apple.finalcutpro.inspector.ColorInspector>
Type Field
Description The ColorInspector.
Signature cp.apple.finalcutpro.inspector.Inspector.generator <cp.apple.finalcutpro.inspector.GeneratorInspector>
Type Field
Description The GeneratorInspector
Signature cp.apple.finalcutpro.inspector.Inspector.info <cp.apple.finalcutpro.inspector.InfoInspector>
Type Field
Description The InfoInspector.
Signature cp.apple.finalcutpro.inspector.Inspector.isFullHeight <cp.prop: boolean>
Type Field
Description Returns true if the Inspector is full height.
Signature cp.apple.finalcutpro.inspector.Inspector.isShowing <cp.prop: boolean; read-only>
Type Field
Description Returns true if the Inspector is showing otherwise false
Signature cp.apple.finalcutpro.inspector.Inspector.labelUI <cp.prop: hs._asm.axuielement; read-only>
Type Field
Description Returns the axuielement for text label at the top of the Inspector.
Signature cp.apple.finalcutpro.inspector.Inspector.panelUI <cp.prop: hs._asm.axuielement; read-only>
Type Field
Description Returns the central panel axuielement for the Inspector.
Signature cp.apple.finalcutpro.inspector.Inspector.projectInfo <cp.apple.finalcutpro.inspector.InfoProjectInspector>
Type Field
Description The InfoProjectInspector.
Signature cp.apple.finalcutpro.inspector.Inspector.propertiesUI <cp.prop: hs._asm.axuielement; read-only>
Type Field
Description Returns the properties axuielement for the Inspector. This contains the rows of property values.
Signature cp.apple.finalcutpro.inspector.Inspector.share <cp.apple.finalcutpro.inspector.ShareInspector>
Type Field
Description The ShareInspector.
Signature cp.apple.finalcutpro.inspector.Inspector.text <cp.apple.finalcutpro.inspector.TextInspector
Type Field
Description The TextzInspector.
Signature cp.apple.finalcutpro.inspector.Inspector.title <cp.apple.finalcutpro.inspector.TitleInspector>
Type Field
Description The TitleInspector.
Signature cp.apple.finalcutpro.inspector.Inspector.topBarUI <cp.prop: hs._asm.axuielement; read-only>
Type Field
Description Returns the "top bar" axuielement for the Inspector.
Signature cp.apple.finalcutpro.inspector.Inspector.transition <cp.apple.finalcutpro.inspector.TransitionInspector>
Type Field
Description The TransitionInspector.
Signature cp.apple.finalcutpro.inspector.Inspector.video <cp.apple.finalcutpro.inspector.VideoInspector>
Type Field
Description The VideoInspector.

Methods

Signature cp.apple.finalcutpro.inspector.Inspector:doFindTabButton(type) -> cp.rx.go.Statement
Type Method
Description Finds the named Inspector tab button, or sends an error if the type is unsupported.
Parameters
  • type - the type of the button to return. (e.g. "Video")
Returns
Notes
  • Valid strings for type are as follows:
  • Audio
  • Color
  • Effect
  • Generator
  • Info
  • Share
  • Text
  • Title
  • Transition
  • Video
  • Not all button types are available in all contexts.
Signature cp.apple.finalcutpro.inspector.Inspector:doHide() -> cp.rx.go.Statement
Type Method
Description A Statement that attempts to hide the Inspector.
Returns
  • The Statement, resolving to true if the Inspector was hidden successfully, or an error if not.
Signature cp.apple.finalcutpro.inspector.Inspector:doSelectTab(title) -> cp.rx.go.Statement
Type Method
Description A Statement that selects the specified tab title.
Parameters
  • title - The title of the tab to select.
Returns
Signature cp.apple.finalcutpro.inspector.Inspector:doShow() -> cp.rx.go.Statement
Type Method
Description A Statement that attempts to show the Inspector.
Returns
  • The Statement, resolving to true if the Inspector was shown successfully, or an error if not.
Signature cp.apple.finalcutpro.inspector.Inspector:hide() -> Inspector
Type Method
Description Hides the inspector.
Parameters
  • None
Returns
  • The Inspector instance.
Signature cp.apple.finalcutpro.inspector.Inspector:selectedTab() -> string or nil
Type Method
Description Returns the name of the selected inspector tab otherwise nil.
Parameters
  • None
Returns
  • A string of the selected tab, otherwise nil if the Inspector is closed or an error occurred.
Notes
  • The tab strings can be:
  • Audio
  • Color
  • Effect
  • Generator
  • Info
  • Share
  • Text
  • Title
  • Transition
  • Video
Signature cp.apple.finalcutpro.inspector.Inspector:selectTab(tab) -> boolean
Type Method
Description Selects a tab in the inspector.
Parameters
  • tab - A string from the cp.apple.finalcutpro.inspector.Inspector.INSPECTOR_TABS table
Returns
  • A string of the selected tab, otherwise nil if an error occurred.
Notes
  • This method will open the Inspector if it's closed, and leave it open.
  • Valid strings for value are as follows:
  • Audio
  • Color
  • Effect
  • Generator
  • Info
  • Share
  • Text
  • Title
  • Transition
  • Video
Signature cp.apple.finalcutpro.inspector.Inspector:show([tab]) -> Inspector
Type Method
Description Shows the inspector.
Parameters
  • [tab] - A string from the cp.apple.finalcutpro.inspector.Inspector.INSPECTOR_TABS table
Returns
  • The Inspector instance.
Notes
  • Valid strings for value are as follows:
  • Audio
  • Color
  • Effect
  • Generator
  • Info
  • Share
  • Text
  • Title
  • Transition
  • Video
Signature cp.apple.finalcutpro.inspector.Inspector:tabAvailable(tab) -> boolean
Type Method
Description Checks to see if a tab is currently available in the Inspector.
Parameters
  • tab - A string from the cp.apple.finalcutpro.inspector.Inspector.INSPECTOR_TABS table
Returns
  • true if available otherwise false.
Notes
  • Valid strings for value are as follows:
  • Audio
  • Color
  • Effect
  • Generator
  • Info
  • Share
  • Text
  • Title
  • Transition
  • Video