#include <khaction.h>
Use the khui_menu_create(), khui_menu_insert_action(), khui_menu_insert_paction(), khui_menu_get_size(), khui_menu_get_action() functions to create and manipulate custom menus. Do not manipulate this structure directly as doing so may cause inconsistencies in the UI library.
Data Fields | |
| khm_int32 | cmd |
| khm_int32 | state |
| khm_size | n_items |
| khm_size | nc_items |
| khui_action_ref * | items |
Action associated with menu
combination of KHUI_MENUSTATE_*
The number of actions in the items list. If this is a custom menu, the KHUI_MENUSTATE_ALLOCD bit will be set, and the contents of this field will be valid. Otherwise, the contents of this field is ignored and the list of actions must be terminated with a ACTION_LIST_END action.
max number of items in the buffer alocated for items. Ignored if KHUI_MENUSTATE_ALLOCD is not set in state.
Action list terminated by, ACTION_LIST_END. If n_items is set to a value other than -1, the list doesn't necessarily have to end with a ACTION_LIST_END. When constructing a menu using khui_menu_* functions, they will set the size of this list in the n_items member, and there will be no ACTION_LIST_END action to terminate the list.
|
Generated on Fri Aug 3 08:27:15 2007 for Network Identity Manager by Doxygen 1.5.2 © 2004-2007 Massachusetts Institute of Technology. © 2005-2007 Secure Endpoints Inc. Contact khimaira@mit.edu |
|