Skip to content

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

ItemType type = ItemType::closeMenuItem;

The type of item

variable text

const char * text = "";

The name/text to display

variable callbackFunction

void(*)(void *context) callbackFunction;

variable context

void * context;

variable asCallbackFunctionItem

struct daisy::AbstractMenu::ItemConfig::@19::@21 asCallbackFunctionItem;

Properties for type == ItemType::callbackFunctionItem

variable valueToModify

bool * valueToModify;

The variable to modify.

variable asCheckboxItem

struct daisy::AbstractMenu::ItemConfig::@19::@22 asCheckboxItem;

Properties for type == ItemType::checkboxItem

variable valueToModify

MappedValue * valueToModify;

The variable to modify.

variable asMappedValueItem

struct daisy::AbstractMenu::ItemConfig::@19::@23 asMappedValueItem;

Properties for type == ItemType::valueItem

variable pageToOpen

UiPage * 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

struct daisy::AbstractMenu::ItemConfig::@19::@24 asOpenUiPageItem;

Properties for type == ItemType::openUiPageItem

variable itemObject

CustomItem * itemObject;

The CustomItem to display. The object provided here must stay alive longer than the MenuPage, e.g. as a global variable.

variable asCustomItem

struct daisy::AbstractMenu::ItemConfig::@19::@25 asCustomItem;

Properties for type == ItemType::customItem

variable @20

union daisy::AbstractMenu::ItemConfig::@19 @20;

additional properties that depend on the value of type


Updated on 2024-01-03 at 19:41:01 +0000