Language Guide / Controls and Parameters
Group
klang::Group
Groups controls in the model interface.
Place a Group inside the control declaration to show related controls together in Studio. A group can hold controls, references to controls, or a nested control collection. Grouping keeps the controls available to the model through the same collection.
Example · Group a filter’s controls
Use this in the model constructor.
controls = {
{ "Filter",
Dial("Cutoff", 20, 12000, 1000),
Dial("Resonance", 0.1, 4, 0.7)
}
};
Optional presentation grouping, independent of value ownership.
More...
#include <klang.h>
|
| | Group (const char *name, std::initializer_list< ControlEntry > controls) |
| |
| | Group (const char *name, Control::Size size, std::initializer_list< ControlEntry > controls) |
| |
| template<class List , std::enable_if_t< std::is_same_v< std::decay_t< List >, std::initializer_list< Control > >, int > = 0> |
| | Group (const char *name, List &&list) |
| |
| template<class List , std::enable_if_t< std::is_same_v< std::decay_t< List >, std::initializer_list< Control > >, int > = 0> |
| | Group (const char *name, Control::Size size, List &&list) |
| |
| template<class... Entries, std::enable_if_t<(std::is_constructible_v< ControlEntry, Entries && > &&...), int > = 0> |
| | Group (const char *name, Entries &&... entries) |
| |
| template<class... Entries, std::enable_if_t<(std::is_constructible_v< ControlEntry, Entries && > &&...), int > = 0> |
| | Group (Entries &&... entries) |
| |
| template<class... Entries, std::enable_if_t<(std::is_constructible_v< ControlEntry, Entries && > &&...), int > = 0> |
| | Group (const char *name, Control::Size size, Entries &&... entries) |
| |
| template<class... Entries, std::enable_if_t<(std::is_constructible_v< ControlEntry, Entries && > &&...), int > = 0> |
| | Group (Control::Size size, Entries &&... entries) |
| |
Definition at line 2036 of file klang.h.
◆ Group() [1/8]
| klang::Group::Group |
( |
const char * | name, |
|
|
std::initializer_list< ControlEntry > | controls ) |
|
inline |
Definition at line 2041 of file klang.h.
const Control::Size Automatic
std::vector< ControlEntry > controls
◆ Group() [2/8]
◆ Group() [3/8]
template<class List , std::enable_if_t< std::is_same_v< std::decay_t< List >, std::initializer_list<
Control > >, int > = 0>
| klang::Group::Group |
( |
const char * | name, |
|
|
List && | list ) |
|
inline |
Definition at line 2048 of file klang.h.
2049 for (
const auto& control : list)
controls.emplace_back(control);
2050 }
References controls.
◆ Group() [4/8]
template<class List , std::enable_if_t< std::is_same_v< std::decay_t< List >, std::initializer_list<
Control > >, int > = 0>
| klang::Group::Group |
( |
const char * | name, |
|
|
Control::Size | size, |
|
|
List && | list ) |
|
inline |
Definition at line 2052 of file klang.h.
2053 for (
const auto& control : list)
controls.emplace_back(control);
2054 }
References controls.
◆ Group() [5/8]
template<class... Entries, std::enable_if_t<(std::is_constructible_v<
ControlEntry, Entries && > &&...), int > = 0>
| klang::Group::Group |
( |
const char * | name, |
|
|
Entries &&... | entries ) |
|
inline |
◆ Group() [6/8]
template<class... Entries, std::enable_if_t<(std::is_constructible_v<
ControlEntry, Entries && > &&...), int > = 0>
| klang::Group::Group |
( |
Entries &&... | entries | ) |
|
|
inline |
◆ Group() [7/8]
template<class... Entries, std::enable_if_t<(std::is_constructible_v<
ControlEntry, Entries && > &&...), int > = 0>
| klang::Group::Group |
( |
const char * | name, |
|
|
Control::Size | size, |
|
|
Entries &&... | entries ) |
|
inline |
◆ Group() [8/8]
template<class... Entries, std::enable_if_t<(std::is_constructible_v<
ControlEntry, Entries && > &&...), int > = 0>
| klang::Group::Group |
( |
Control::Size | size, |
|
|
Entries &&... | entries ) |
|
inline |
◆ controls
◆ name
| const char* klang::Group::name |
◆ size