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

Latest commit

 

History

History
33 lines (25 loc) · 1.99 KB

cp.ui.ColorWell.md

File metadata and controls

33 lines (25 loc) · 1.99 KB

docs » cp.ui.ColorWell


UI ColorWell.

API Overview

  • Functions - API calls offered directly by the extension
  • matches
  • Constructors - API calls which return an object, typically one that offers API methods
  • ColorWell

API Documentation

Functions

Signature cp.ui.ColorWell.matches(element) -> boolean
Type Function
Description Checks to see if an element matches what we think it should be.
Parameters
  • element - An axuielementObject to check.
Returns
  • true if matches otherwise false

Constructors

Signature cp.ui.ColorWell(parent, uiFinder) -> Image
Type Constructor
Description Creates a new ColorWell instance.
Parameters
  • parent - The parent object.
  • uiFinder - A function which will return the hs._asm.axuielement when available.
Returns
  • A new ColorWell object.