#plugins.core.tangent.manager.group

Represents a Tangent Group. Groups can also be used to enable/disable multiple Parameters/Actions/Menus by enabling/disabling the containing group.


#API Overview

Functions - API calls offered directly by the extension

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

#Functions

Signatureplugins.core.tangent.manager.group.is(thing) -> boolean
TypeFunction
DescriptionChecks if the thing is a group.
Parameters
  • thing - The thing to check.
Returns
  • true if it is a group, false otherwise.
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/group.lua line 87

#Constructors

Signatureplugins.core.tangent.manager.group(name, manager, parent, localActive) -> None
TypeConstructor
DescriptionCreates a new Group instance.
Parameters
  • name - The name of the group.
  • manager - The Tangent Manager.
  • parent - The parent group.
  • localActive - If true, this group will ignore the parent's active status when determining its own active status. Defaults to false.
Returns
  • None
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/group.lua line 28

#Fields

Signatureplugins.core.tangent.manager.group.active <cp.prop: boolean; read-only>
TypeField
DescriptionIndicates if the group is active. It will only be active if
NotesNone
Sourcesrc/plugins/core/tangent/manager/group.lua line 78

Signatureplugins.core.tangent.manager.group.enabled <cp.prop: boolean>
TypeField
DescriptionIndicates if the group is enabled.
NotesNone
Sourcesrc/plugins/core/tangent/manager/group.lua line 64

Signatureplugins.core.tangent.manager.group.localActive <cp.prop: boolean>
TypeField
DescriptionIndicates if the group should ignore the parent's enabled state when determining if the group is active.
NotesNone
Sourcesrc/plugins/core/tangent/manager/group.lua line 71

#Methods

Signatureplugins.core.tangent.manager.group:action(id[, name[, localActive]]) -> action
TypeMethod
DescriptionAdds an action to this group.
Parameters
  • id - The ID number of the new action
  • name - The name of the action.
  • localActive - If true, the parent group's active state is ignored when determining if this action is active.
Returns
  • The new action
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/group.lua line 189

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

Signatureplugins.core.tangent.manager.group:controls() -> controls
TypeMethod
DescriptionRetrieves the controls for this group. May be nil if the group was created independently.
Parameters
  • None
Returns
  • The controls, or nil.
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/group.lua line 126

Signatureplugins.core.tangent.manager.group:group(name, [localActive]) -> group
TypeMethod
DescriptionAdds a subgroup to this group.
Parameters
  • name - the name of the new sub-group
  • localActive - An optional boolean. If true, this group will ignore the parent's active status when determining its own active status. Defaults to false.
Returns
  • The new group
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/group.lua line 144

Signatureplugins.core.tangent.manager.group:menu(id[, name]) -> menu
TypeMethod
DescriptionAdds an menu to this group.
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/group.lua line 240

Signatureplugins.core.tangent.manager.group:name() -> string
TypeMethod
DescriptionReturns the name given to the group.
Parameters
  • None
Returns
  • The name.
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/group.lua line 100

Signatureplugins.core.tangent.manager.group:parameter(id[, name]) -> parameter
TypeMethod
DescriptionAdds an parameter to this group.
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/group.lua line 215

Signatureplugins.core.tangent.manager.group:parent() -> group | controls
TypeMethod
DescriptionReturns the parent of the group, which should be either a group, controls or nil.
Parameters
  • None
Returns
  • The group's parents.
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/group.lua line 113

Signatureplugins.core.tangent.manager.group:reset() -> self
TypeMethod
DescriptionThis will remove all parameters, actions, menus and bindings from the group. It does not remove sub-groups. Use with care!
Parameters
  • None
Returns
  • The group instance.
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/group.lua line 288

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

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