A hierarchical structure of popup menu items for a selector component.
More...
#include <synth_section.h>
|
int | id |
| The numeric ID of this item.
|
|
std::string | name |
| The display name of this item.
|
|
bool | selected |
| Whether this item is currently selected.
|
|
std::vector< PopupItems > | items |
| Nested items for submenus or hierarchical choices.
|
|
A hierarchical structure of popup menu items for a selector component.
Each PopupItems instance can represent a menu (with nested items) or a single menu item, identified by an ID, a name, and a selected state.
◆ PopupItems() [1/3]
PopupItems::PopupItems |
( |
| ) |
|
|
inline |
◆ PopupItems() [2/3]
PopupItems::PopupItems |
( |
std::string | name | ) |
|
|
inline |
◆ PopupItems() [3/3]
PopupItems::PopupItems |
( |
int | id, |
|
|
std::string | name, |
|
|
bool | selected, |
|
|
std::vector< PopupItems > | items ) |
|
inline |
◆ addItem() [1/2]
void PopupItems::addItem |
( |
const PopupItems & | item | ) |
|
|
inline |
Adds an existing PopupItems object as a submenu entry.
- Parameters
-
◆ addItem() [2/2]
void PopupItems::addItem |
( |
int | sub_id, |
|
|
const std::string & | sub_name, |
|
|
bool | sub_selected = false ) |
|
inline |
Adds a new item as a submenu entry.
- Parameters
-
sub_id | The ID of the new item. |
sub_name | The name of the new item. |
sub_selected | Initial selected state. |
◆ size()
int PopupItems::size |
( |
| ) |
const |
|
inline |
Returns the number of nested items.
- Returns
- The count of items.
◆ id
The numeric ID of this item.
◆ items
Nested items for submenus or hierarchical choices.
◆ name
std::string PopupItems::name |
The display name of this item.
◆ selected
bool PopupItems::selected |
Whether this item is currently selected.
The documentation for this struct was generated from the following file:
- /Users/davidvogel/repos/VitalHelp/src/interface/editor_sections/synth_section.h