Contiki 2.6

ctk_menu Struct Reference

Representation of an individual menu. More...

#include <core/ctk/ctk.h>

Data Fields

struct ctk_menunext
 Apointer to the next menu, or is NULL if this is the last menu, and should be used by the ctk-draw module when stepping through the menus when drawing them on screen.
char * title
 The menu title.
unsigned char titlelen
 The length of the title in characters.
unsigned char nitems
 The total number of menu items in the menu.
unsigned char active
 The currently active menu item.
struct ctk_menuitem items [CTK_MAXMENUITEMS]
 The array which contains all the menu items.

Detailed Description

Representation of an individual menu.

Definition at line 585 of file ctk.h.


Field Documentation

unsigned char ctk_menu::active

The currently active menu item.

Definition at line 600 of file ctk.h.

struct ctk_menuitem ctk_menu::items[CTK_MAXMENUITEMS]

The array which contains all the menu items.

Definition at line 602 of file ctk.h.

Apointer to the next menu, or is NULL if this is the last menu, and should be used by the ctk-draw module when stepping through the menus when drawing them on screen.

Definition at line 586 of file ctk.h.

Referenced by ctk_draw_menus(), ctk_menu_add(), and ctk_menu_remove().

unsigned char ctk_menu::nitems

The total number of menu items in the menu.

Definition at line 598 of file ctk.h.

The menu title.

Definition at line 591 of file ctk.h.

Referenced by ctk_draw_menus().

unsigned char ctk_menu::titlelen

The length of the title in characters.

Cached for speed reasons.

Definition at line 592 of file ctk.h.