daisy::AbstractMenu::ItemConfig¶
#include <AbstractMenu.h>
Public Attributes¶
Name | |
---|---|
ItemType | type |
const char * | text |
void(*)(void *context) | callbackFunction |
void * | context |
struct daisy::AbstractMenu::ItemConfig::@19::@21 | asCallbackFunctionItem |
bool * | valueToModify |
struct daisy::AbstractMenu::ItemConfig::@19::@22 | asCheckboxItem |
MappedValue * | valueToModify |
struct daisy::AbstractMenu::ItemConfig::@19::@23 | asMappedValueItem |
UiPage * | pageToOpen |
struct daisy::AbstractMenu::ItemConfig::@19::@24 | asOpenUiPageItem |
CustomItem * | itemObject |
struct daisy::AbstractMenu::ItemConfig::@19::@25 | asCustomItem |
union daisy::AbstractMenu::ItemConfig::@19 | @20 |
Public Attributes Documentation¶
variable type¶
The type of item
variable text¶
The name/text to display
variable callbackFunction¶
variable context¶
variable asCallbackFunctionItem¶
Properties for type == ItemType::callbackFunctionItem
variable valueToModify¶
The variable to modify.
variable asCheckboxItem¶
Properties for type == ItemType::checkboxItem
variable valueToModify¶
The variable to modify.
variable asMappedValueItem¶
Properties for type == ItemType::valueItem
variable pageToOpen¶
The UiPage to open when the okay button is pressed. The object must stay alive longer than the MenuPage, e.g. as a global variable.
variable asOpenUiPageItem¶
Properties for type == ItemType::openUiPageItem
variable itemObject¶
The CustomItem to display. The object provided here must stay alive longer than the MenuPage, e.g. as a global variable.
variable asCustomItem¶
Properties for type == ItemType::customItem
variable @20¶
additional properties that depend on the value of type
Updated on 2024-01-03 at 19:41:01 +0000