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

Latest commit

 

History

History
191 lines (160 loc) · 15.4 KB

File metadata and controls

191 lines (160 loc) · 15.4 KB

docs » cp.apple.finalcutpro.main.PrimaryWindow


Primary Window Module.

API Overview

API Documentation

Functions

Signature cp.apple.finalcutpro.main.PrimaryWindow.matches(w) -> boolean
Type Function
Description Checks to see if a window matches the PrimaryWindow requirements
Parameters
  • w - The window to check
Returns
  • true if matched otherwise false

Constructors

Signature cp.apple.finalcutpro.main.PrimaryWindow(app) -> PrimaryWindow object
Type Constructor
Description Creates a new PrimaryWindow.
Parameters
  • None
Returns
  • PrimaryWindow

Fields

Signature cp.apple.finalcutpro.main.PrimaryWindow.alert <cp.ui.Alert>
Type Field
Description Provides access to any 'Alert' windows on the PrimaryWindow.
Signature cp.apple.finalcutpro.main.PrimaryWindow:bottomGroupUI <cp.prop: hs._asm.axuielement; read-only; live>
Type Field
Description Returns the bottom group UI as a hs._asm.axuielement object.
Signature cp.apple.finalcutpro.main.PrimaryWindow.browserGroupUI <cp.prop: hs._asm.axuielement; read-only; live>
Type Field
Description Returns the UI which contains the Browser.
Signature cp.apple.finalcutpro.main.PrimaryWindow.colorBoard <ColorBoard>
Type Field
Description The ColorBoard object.
Signature cp.apple.finalcutpro.main.PrimaryWindow:doShow() -> PrimaryWindow
Type Field
Description A Statement that attempts to show the Primary Window.
Returns
  • The Statement, which resolves as either true or sends an error.
Signature cp.apple.finalcutpro.main.PrimaryWindow.frame <cp.prop: frame>
Type Field
Description The current position (x, y, width, height) of the window.
Signature cp.apple.finalcutpro.main.PrimaryWindow.hsWindow <cp.prop: hs.window; read-only>
Type Field
Description The hs.window instance for the window, or nil if it can't be found.
Signature cp.apple.finalcutpro.main.PrimaryWindow.inspector <Inspector>
Type Field
Description The Inspector object.
Signature cp.apple.finalcutpro.main.PrimaryWindow.isFullScreen <cp.prop: boolean>
Type Field
Description Is true if the window is full-screen.
Signature cp.apple.finalcutpro.main.PrimaryWindow.isShowing <cp.prop: boolean>
Type Field
Description Is true if the window is visible.
Signature cp.apple.finalcutpro.main.PrimaryWindow.leftGroupUI <cp.prop: hs._asm.axuielement; read-only; live>
Type Field
Description Returns the left group UI as a hs._asm.axuielement object
Signature cp.apple.finalcutpro.main.PrimaryWindow.rightGroupUI <cp.prop: hs._asm.axuielement; read-only; live>
Type Field
Description Returns the right group UI as a hs._asm.axuielement object.
Signature cp.apple.finalcutpro.main.PrimaryWindow.rootGroupUI() <cp.prop: hs._asm.axuielement; read-only; live>
Type Field
Description Returns the top AXSplitGroup as a hs._asm.axuielement object
Signature cp.apple.finalcutpro.main.PrimaryWindow.timelineGroupUI <cp.prop: hs._asm.axuielement; read-only; live>
Type Field
Description Returns the UI that contains the Timeline.
Signature cp.apple.finalcutpro.main.PrimaryWindow.toolbar <cp.ui.PrimaryToolbar>
Type Field
Description The PrimaryToolbar element.
Signature cp.apple.finalcutpro.main.PrimaryWindow.topGroupUI <cp.prop: hs._asm.axuielement; read-only; live>
Type Field
Description Returns the top group UI as a hs._asm.axuielement object.
Signature cp.apple.finalcutpro.main.PrimaryWindow.UI <cp.prop: hs._asm.axuielement; read-only; live>
Type Field
Description The main axuielement for the window. May be nil if not currently available.
Signature cp.apple.finalcutpro.main.PrimaryWindow.viewerGroupUI <cp.prop: hs._asm.axuielement; read-only; live>
Type Field
Description Returns the UI that contains the Viewer.
Signature cp.apple.finalcutpro.main.PrimaryWindow.window <cp.ui.Window>
Type Field
Description The Window instance.

Methods

Signature cp.apple.finalcutpro.main.PrimaryWindow:app() -> cp.apple.finalcutpro
Type Method
Description Returns the application the display belongs to.
Parameters
  • None
Returns
  • The app instance.
Signature cp.apple.finalcutpro.main.PrimaryWindow:show() -> PrimaryWindow
Type Method
Description Shows the Primary Window.
Parameters
  • None
Returns
  • The PrimaryWindow instance.