Contiki 2.5
Data Fields
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. More...

 
char * title
 The menu title. More...
 
unsigned char titlelen
 
  The length of the title in

characters. More...

 
unsigned char nitems
 
    The total number of menu items in the

menu. More...

 
unsigned char active
 The currently active menu item. More...
 
struct ctk_menuitem items [CTK_MAXMENUITEMS]
 The array which contains all the menu items. More...
 

Detailed Description

Representation of an individual menu.

Definition at line 587 of file ctk.h.

Field Documentation

unsigned char ctk_menu::active

The currently active menu item.

Definition at line 602 of file ctk.h.

struct ctk_menuitem ctk_menu::items[CTK_MAXMENUITEMS]

The array which contains all the menu items.

Definition at line 604 of file ctk.h.

struct ctk_menu* ctk_menu::next

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 588 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 600 of file ctk.h.

char* ctk_menu::title

The menu title.

Definition at line 593 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 594 of file ctk.h.