#plugins.core.tangent.manager.controls

Represents a Tangent Group


#API Overview

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

Methods - API calls which can only be made on an object returned by a constructor


#API Documentation

#Constructors

Signatureplugins.core.tangent.manager.controls(manager) -> Group
TypeConstructor
DescriptionCreates a new Group instance.
Parameters
  • manager - The manager
Returns
  • A new Group object
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/controls.lua line 22

#Fields

Signatureplugins.core.tangent.manager.controls.active <cp.prop: boolean; read-only>
TypeField
DescriptionIndicates if the controls are active. They will be active if enabled is true.
NotesNone
Sourcesrc/plugins/core/tangent/manager/controls.lua line 56

Signatureplugins.core.tangent.manager.controls.enabled <cp.prop: boolean>
TypeField
DescriptionIndicates if the controls are enabled.
NotesNone
Sourcesrc/plugins/core/tangent/manager/controls.lua line 49

#Methods

Signatureplugins.core.tangent.manager.controls:action(id[, name]) -> action
TypeMethod
DescriptionAdds an action to this controls.
Parameters
  • id - The ID number of the new action
  • name - The name of the action.
Returns
  • The new action
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/controls.lua line 163

Signatureplugins.core.tangent.manager.controls:controls() -> controls
TypeMethod
DescriptionReturns this controls instance.
Parameters
  • None
Returns
  • The `controls instance.
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/controls.lua line 76

Signatureplugins.core.tangent.manager.controls:findByID(id) -> table
TypeMethod
DescriptionFinds a control (Action/Parameter/Mode) by its unique ID.
Parameters
  • id - the ID to search by
Returns
  • The control, or nil if not found.
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/controls.lua line 128

Signatureplugins.core.tangent.manager.controls:group(name) -> group
TypeMethod
DescriptionAdds a subgroup to this group.
Parameters
  • name - the name of the new sub-group
Returns
  • The new group
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/controls.lua line 141

Signatureplugins.core.tangent.manager.controls:menu(id[, name]) -> menu
TypeMethod
DescriptionAdds an menu to this controls.
Parameters
  • id - The ID number of the new menu
  • name - The name of the menu.
Returns
  • The new menu
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/controls.lua line 211

Signatureplugins.core.tangent.manager.controls:parameter(id[, name]) -> parameter
TypeMethod
DescriptionAdds an parameter to this controls.
Parameters
  • id - The ID number of the new parameter
  • name - The name of the parameter.
Returns
  • The new parameter
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/controls.lua line 187

Signatureplugins.core.tangent.manager.controls:parent() -> nil
TypeMethod
DescriptionAlways returns nil, sinces controls have no parent.
Parameters
  • None
Returns
  • nil.
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/controls.lua line 63

Signatureplugins.core.tangent.manager.controls:register(control) -> self
TypeMethod
DescriptionRegisters a control (Action/Parameter/Menu) with it's ID. This allows efficient retrieval via the findById(...) method, as well as checking that ID is unique.
Parameters
  • control - The Action/Parameter/Menu to register
Returns
  • self
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/controls.lua line 89

Signatureplugins.core.tangent.manager.controls:tangent() -> hs.tangent
TypeMethod
DescriptionThe hs.tangent connection.
Parameters
  • None
Returns
  • The hs.tangent.
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/controls.lua line 36

Signatureplugins.core.tangent.manager.controls:unregister(control) -> self
TypeMethod
DescriptionUnregisters a control (Action/Parameter/Menu) with it's ID
Parameters
  • control - The Action/Parameter/Menu to unregister
Returns
  • self
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/controls.lua line 109

Signatureplugins.core.tangent.manager.controls:xml() -> cp.web.xml
TypeMethod
DescriptionReturns the xml configuration for the Group.
Parameters
  • None
Returns
  • The xml for the Group.
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/controls.lua line 235