#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
Signature | plugins.core.tangent.manager.group.is(thing) -> boolean |
Type | Function |
Description | Checks if the thing is a group . |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/plugins/core/tangent/manager/group.lua line 87 |
#Constructors
Signature | plugins.core.tangent.manager.group(name, manager, parent, localActive) -> None |
Type | Constructor |
Description | Creates a new Group instance. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/plugins/core/tangent/manager/group.lua line 28 |
#Fields
Signature | plugins.core.tangent.manager.group.active <cp.prop: boolean; read-only> |
Type | Field |
Description | Indicates if the group is active. It will only be active if |
Notes | None |
Source | src/plugins/core/tangent/manager/group.lua line 78 |
Signature | plugins.core.tangent.manager.group.enabled <cp.prop: boolean> |
Type | Field |
Description | Indicates if the group is enabled. |
Notes | None |
Source | src/plugins/core/tangent/manager/group.lua line 64 |
Signature | plugins.core.tangent.manager.group.localActive <cp.prop: boolean> |
Type | Field |
Description | Indicates if the group should ignore the parent's enabled state when determining if the group is active. |
Notes | None |
Source | src/plugins/core/tangent/manager/group.lua line 71 |
#Methods
Signature | plugins.core.tangent.manager.group:action(id[, name[, localActive]]) -> action |
Type | Method |
Description | Adds an action to this group. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/plugins/core/tangent/manager/group.lua line 189 |
Signature | plugins.core.tangent.manager.group:binding(id[, name]) -> binding |
Type | Method |
Description | Adds an binding to this group. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/plugins/core/tangent/manager/group.lua line 265 |
Signature | plugins.core.tangent.manager.group:controls() -> controls |
Type | Method |
Description | Retrieves the controls for this group. May be nil if the group was created independently. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/plugins/core/tangent/manager/group.lua line 126 |
Signature | plugins.core.tangent.manager.group:group(name, [localActive]) -> group |
Type | Method |
Description | Adds a subgroup to this group. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/plugins/core/tangent/manager/group.lua line 144 |
Signature | plugins.core.tangent.manager.group:menu(id[, name]) -> menu |
Type | Method |
Description | Adds an menu to this group. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/plugins/core/tangent/manager/group.lua line 240 |
Signature | plugins.core.tangent.manager.group:name() -> string |
Type | Method |
Description | Returns the name given to the group. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/plugins/core/tangent/manager/group.lua line 100 |
Signature | plugins.core.tangent.manager.group:parameter(id[, name]) -> parameter |
Type | Method |
Description | Adds an parameter to this group. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/plugins/core/tangent/manager/group.lua line 215 |
Signature | plugins.core.tangent.manager.group:parent() -> group | controls |
Type | Method |
Description | Returns the parent of the group, which should be either a group , controls or nil . |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/plugins/core/tangent/manager/group.lua line 113 |
Signature | plugins.core.tangent.manager.group:reset() -> self |
Type | Method |
Description | This will remove all parameters, actions, menus and bindings from the group. It does not remove sub-groups. Use with care! |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/plugins/core/tangent/manager/group.lua line 288 |
Signature | plugins.core.tangent.manager.group:tangent() -> hs.tangent |
Type | Method |
Description | The hs.tangent connection. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/plugins/core/tangent/manager/group.lua line 51 |
Signature | plugins.core.tangent.manager.group:xml() -> cp.web.xml |
Type | Method |
Description | Returns the xml configuration for the Group, sorted alphabetically. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/plugins/core/tangent/manager/group.lua line 307 |