libDaisy
Hardware Library for Daisy
Loading...
Searching...
No Matches
daisy::AbstractMenu::ItemConfig Struct Reference

#include <AbstractMenu.h>

Public Attributes

ItemType type = ItemType::closeMenuItem
 
const chartext = ""
 
union { 
 
   struct { 
 
      void(*   callbackFunction )(void *context) 
 
      void *   context 
 
   }   asCallbackFunctionItem 
 
   struct { 
 
      bool *   valueToModify 
 
   }   asCheckboxItem 
 
   struct { 
 
      MappedValue *   valueToModify 
 
   }   asMappedValueItem 
 
   struct { 
 
      UiPage *   pageToOpen 
 
   }   asOpenUiPageItem 
 
   struct { 
 
      CustomItem *   itemObject 
 
   }   asCustomItem 
 
};  
 

Member Data Documentation

◆ [union]

additional properties that depend on the value of type

◆ [struct]

struct { ... } daisy::AbstractMenu::ItemConfig::asCallbackFunctionItem

Properties for type == ItemType::callbackFunctionItem

◆ [struct]

struct { ... } daisy::AbstractMenu::ItemConfig::asCheckboxItem

Properties for type == ItemType::checkboxItem

◆ [struct]

struct { ... } daisy::AbstractMenu::ItemConfig::asCustomItem

Properties for type == ItemType::customItem

◆ [struct]

struct { ... } daisy::AbstractMenu::ItemConfig::asMappedValueItem

Properties for type == ItemType::valueItem

◆ [struct]

struct { ... } daisy::AbstractMenu::ItemConfig::asOpenUiPageItem

Properties for type == ItemType::openUiPageItem

◆ callbackFunction

void(* daisy::AbstractMenu::ItemConfig::callbackFunction) (void *context)

◆ context

void* daisy::AbstractMenu::ItemConfig::context

◆ itemObject

CustomItem* daisy::AbstractMenu::ItemConfig::itemObject

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

◆ pageToOpen

UiPage* daisy::AbstractMenu::ItemConfig::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.

◆ text

const char* daisy::AbstractMenu::ItemConfig::text = ""

The name/text to display

◆ type

ItemType daisy::AbstractMenu::ItemConfig::type = ItemType::closeMenuItem

The type of item

◆ valueToModify [1/2]

bool* daisy::AbstractMenu::ItemConfig::valueToModify

The variable to modify.

◆ valueToModify [2/2]

MappedValue* daisy::AbstractMenu::ItemConfig::valueToModify

The variable to modify.


The documentation for this struct was generated from the following file: