phyphox BLE
Plot your Arduino's data in the phyphox app and control the board from the phone
Loading...
Searching...
No Matches
phyphox::ElementData Struct Reference

One view element. label and xmlAttribute are common to all; the union holds the rest. More...

#include <ElementData.h>

Public Member Functions

 ElementData ()
 
void init (ElementType t)
 Activate the union member for t with its defaults (the builders call this).
 
InputCommon * input ()
 The input-channel part, if this element has one; nullptr otherwise.
 
const InputCommon * input () const
 

Public Attributes

ElementType type = EL_NONE
 
const char * label = nullptr
 
const char * xmlAttribute = nullptr
 raw attribute text appended verbatim (escape hatch)
 
uint8_t visibilityChannel = 0
 input channel whose last value shows/hides the element
 
ErrorRecord error
 
union { 
 
   GraphData   graph 
 
   ValueData   value 
 
   EditData   edit 
 
   SliderData   slider 
 
   DropdownData   dropdown 
 
   ToggleData   toggle 
 
   ButtonData   button 
 
   InfoData   info 
 
   SeparatorData   separator 
 
};  
 

Detailed Description

One view element. label and xmlAttribute are common to all; the union holds the rest.

Constructor & Destructor Documentation

◆ ElementData()

phyphox::ElementData::ElementData ( )
inline

Member Function Documentation

◆ init()

void phyphox::ElementData::init ( ElementType  t)

Activate the union member for t with its defaults (the builders call this).

◆ input() [1/2]

InputCommon * phyphox::ElementData::input ( )

The input-channel part, if this element has one; nullptr otherwise.

◆ input() [2/2]

const InputCommon * phyphox::ElementData::input ( ) const

Member Data Documentation

◆ [union]

union { ... } phyphox::ElementData

◆ button

ButtonData phyphox::ElementData::button

◆ dropdown

DropdownData phyphox::ElementData::dropdown

◆ edit

EditData phyphox::ElementData::edit

◆ error

ErrorRecord phyphox::ElementData::error

◆ graph

GraphData phyphox::ElementData::graph

◆ info

InfoData phyphox::ElementData::info

◆ label

const char* phyphox::ElementData::label = nullptr

◆ separator

SeparatorData phyphox::ElementData::separator

◆ slider

SliderData phyphox::ElementData::slider

◆ toggle

ToggleData phyphox::ElementData::toggle

◆ type

ElementType phyphox::ElementData::type = EL_NONE

◆ value

ValueData phyphox::ElementData::value

◆ visibilityChannel

uint8_t phyphox::ElementData::visibilityChannel = 0

input channel whose last value shows/hides the element

◆ xmlAttribute

const char* phyphox::ElementData::xmlAttribute = nullptr

raw attribute text appended verbatim (escape hatch)


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