RSeries astromech firmware
CommandMenu Class Reference

#include <menus/CommandScreen.h>

Public Member Functions

 CommandMenu (SerialCommand *cmds, uint8_t siz)
 
SerialCommandgetSerialCommand (int index)
 
const char * getButtonLabel (int index, char *buf, size_t maxSize)
 
const char * getLabel (int index, char *buf, size_t maxSize)
 
const char * getCommand (int index, char *buf, size_t maxSize)
 
uint8_t getSize ()
 
void draw (int x, int y)
 
uint8_t getSelected ()
 
bool handleSelection (uint8_t selection)
 
void changeCommands (SerialCommand *newCommands, uint8_t newSize)
 

Constructor & Destructor Documentation

◆ CommandMenu()

CommandMenu::CommandMenu ( SerialCommand cmds,
uint8_t  siz 
)
inline

Member Function Documentation

◆ changeCommands()

void CommandMenu::changeCommands ( SerialCommand newCommands,
uint8_t  newSize 
)
inline

◆ draw()

void CommandMenu::draw ( int  x,
int  y 
)
inline

◆ getButtonLabel()

const char* CommandMenu::getButtonLabel ( int  index,
char *  buf,
size_t  maxSize 
)
inline

◆ getCommand()

const char* CommandMenu::getCommand ( int  index,
char *  buf,
size_t  maxSize 
)
inline

◆ getLabel()

const char* CommandMenu::getLabel ( int  index,
char *  buf,
size_t  maxSize 
)
inline

◆ getSelected()

uint8_t CommandMenu::getSelected ( )
inline

◆ getSerialCommand()

SerialCommand* CommandMenu::getSerialCommand ( int  index)
inline

◆ getSize()

uint8_t CommandMenu::getSize ( )
inline

◆ handleSelection()

bool CommandMenu::handleSelection ( uint8_t  selection)
inline

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