A primitive menu system for touchscreen on the RA8875. This menu is not "finger friendly" and reminds one of the 90's using a Palm.

Dependents:   FRDM_RA8875_mPaint PUB_RA8875_mPaint

Embed: (wiki syntax)

« Back to documentation index

Menu::menu_item_t Struct Reference

Menu::menu_item_t Struct Reference

Each menu item is a structure as defined here. More...

#include <menu.h>

Data Fields

char * menuText
 text to show (keep it brief!)
post_fnc_action_t(* fncPress )(uint32_t)
 function to call "on touch", or NULL
post_fnc_action_t(* fncHeld )(uint32_t)
 function to call "on held", or NULL
post_fnc_action_t(* fncRelease )(uint32_t)
 function to call "on release", or NULL
uint32_t param
 parameter to pass to the function.
menu_item_tchild
 child menu, if this is an upper menu.

Detailed Description

Each menu item is a structure as defined here.

An array of these create multple entries on that menu level. The array must be terminated by a NULL entry.

Definition at line 79 of file menu.h.


Field Documentation

child menu, if this is an upper menu.

Definition at line 86 of file menu.h.

post_fnc_action_t(* fncHeld)(uint32_t)

function to call "on held", or NULL

Definition at line 83 of file menu.h.

function to call "on touch", or NULL

Definition at line 82 of file menu.h.

function to call "on release", or NULL

Definition at line 84 of file menu.h.

char* menuText

text to show (keep it brief!)

Definition at line 81 of file menu.h.

uint32_t param

parameter to pass to the function.

Definition at line 85 of file menu.h.