AceUtils  0.6.0
Useful Arduino utilties which are too small as separate libraries, but complex enough to be shared among multiple projects, and often have external dependencies to other libraries.
Public Attributes | List of all members
ace_utils::mode_group::ModeGroup Struct Reference

A data structure that captures the group of sibliing clock modes which can be cycled through using the "Mode" button. More...

#include <ModeGroup.h>

Collaboration diagram for ace_utils::mode_group::ModeGroup:
Collaboration graph
[legend]

Public Attributes

const ModeGroup *const parentGroup
 Pointer to the parent ModeGroup. More...
 
uint8_t const numModes
 Number of modes.
 
const ModeRecord *const children
 Array of children mode groups.
 

Detailed Description

A data structure that captures the group of sibliing clock modes which can be cycled through using the "Mode" button.

An alternative is to represent each mode as a hierarchy of "directories" and "files". But that requires more memory. Grouping all the siblings together into a single object is more memory efficient, but less aesthetically pleasing. A ModeGroup does not have a modeId because it does not represent a specific rendering mode. It is a group of rendering modes.

Definition at line 31 of file ModeGroup.h.

Member Data Documentation

◆ parentGroup

const ModeGroup* const ace_utils::mode_group::ModeGroup::parentGroup

Pointer to the parent ModeGroup.

Set to nullptr for the root group.

Definition at line 33 of file ModeGroup.h.


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