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

Latest commit

 

History

History
135 lines (114 loc) · 10.4 KB

plugins.core.tangent.manager.controls.md

File metadata and controls

135 lines (114 loc) · 10.4 KB

docs » plugins.core.tangent.manager.controls


Represents a Tangent Group

API Overview

API Documentation

Constructors

Signature plugins.core.tangent.manager.controls(id, name)
Type Constructor
Description Creates a new Group instance.
Parameters
  • name - The name of the controls.

Fields

Signature plugins.core.tangent.manager.controls.active <cp.prop: boolean; read-only>
Type Field
Description Indicates if the controls are active. They will be active if enabled is true.
Signature plugins.core.tangent.manager.controls.enabled <cp.prop: boolean>
Type Field
Description Indicates if the controls are enabled.

Methods

Signature plugins.core.tangent.manager.controls:action(id[, name]) -> action
Type Method
Description Adds an action to this controls.
Returns
  • The new action
Signature plugins.core.tangent.manager.controls:controls() -> controls
Type Method
Description Returns this controls instance.
Parameters
  • None
Returns
  • The `controls instance.
Signature plugins.core.tangent.manager.controls:findByID(id) -> table
Type Method
Description Finds a control (Action/Parameter/Mode) by its unique ID.
Parameters
  • id - the ID to search by
Returns
  • The control, or nil if not found.
Signature plugins.core.tangent.manager.controls:group(name) -> group
Type Method
Description Adds a subgroup to this group.
Returns
  • The new group
Signature plugins.core.tangent.manager.controls:menu(id[, name]) -> menu
Type Method
Description Adds an menu to this controls.
Returns
  • The new menu
Signature plugins.core.tangent.manager.controls:parameter(id[, name]) -> parameter
Type Method
Description Adds an parameter to this controls.
Returns
  • The new parameter
Signature plugins.core.tangent.manager.controls:parent() -> nil
Type Method
Description Always returns nil, sinces controls have no parent.
Parameters
  • None
Returns
  • nil.
Signature plugins.core.tangent.manager.controls:register(control) -> self
Type Method
Description Registers a control (Action/Parameter/Menu) with it's ID
Parameters
  • control - The Action/Parameter/Menu to register
Returns
  • self
Signature plugins.core.tangent.manager.controls:tangent() -> hs.tangent
Type Method
Description The hs.tangent connection.
Parameters
  • None
Returns
  • The hs.tangent.
Signature plugins.core.tangent.manager.controls:unregister(control) -> self
Type Method
Description Unregisters a control (Action/Parameter/Menu) with it's ID
Parameters
  • control - The Action/Parameter/Menu to unregister
Returns
  • self
Signature plugins.core.tangent.manager.controls:xml() -> cp.web.xml
Type Method
Description Returns the xml configuration for the Group.
Parameters
  • None
Returns
  • The xml for the Group.