FDOSTUI
FreeDOS Text User Interface
|
Container for a menu item. More...
Go to the source code of this file.
Classes | |
struct | menuitem |
a menu item More... | |
struct | menuitembar |
a menu bar item More... | |
Typedefs | |
typedef void(* | menuitem_signal_t) (struct menuitem *i_menu, void *i_user_data) |
function prototype to recieve signal More... | |
Enumerations | |
enum | menuitem_flags { MENUITEM_NONE = (0<<0), MENUITEM_VALUE = (1<<1), MENUITEM_DISABLED = (1<<2), MENUITEM_CHECKBOX = (1<<3), MENUITEM_SEPERATOR = (1<<4), MENUITEM_SUBMENU = (1<<5) } |
flags that determine attributes of the menu item More... | |
Functions | |
void | menuitem_count (unsigned int *const o_rows, unsigned int *const o_cols, struct menuitem *i_menu) |
count the number of elements in menu More... | |
void | menuitem_emit (struct menuitem *i_menu) |
emit the callback signal More... | |
struct menuitem * | menuitem_next (struct menuitem *i_menu) |
get the next menu item of the same level More... | |
struct menuitem * | menuitem_nth (struct menuitem *i_menu, unsigned int const i_nth) |
gets the nth (zero based) menu item of the same level More... | |
void | menuitem_flatten (struct array *const o_array, struct menuitem *i_menu) |
flattens a menu (creates list of menu items of same level) More... | |
struct menuitem * | menuitem_find_scancode (struct menuitem *i_menu, enum scancodes const i_scan) |
scans menu items for a scancode/accelerator (stops at first match) More... | |
Container for a menu item.
void(* menuitem_signal_t)(struct menuitem *i_menu, void *i_user_data) |
function prototype to recieve signal
[in] | i_menu | menu item |
[in,out] | io_user_data | use defined |
enum menuitem_flags |
flags that determine attributes of the menu item
void menuitem_count | ( | unsigned int *const | o_rows, |
unsigned int *const | o_cols, | ||
struct menuitem * | i_menu | ||
) |
count the number of elements in menu
[out] | o_rows | the number of elements in ithe menu |
[out] | o_cols | the largest string in the menu |
[in] | i_menu | the menu object to count |
o_rows is the count of a flattened menu. It does not include sub menus.
void menuitem_emit | ( | struct menuitem * | i_menu | ) |
emit the callback signal
[in,out] | i_menu | menu to call signal |
scans menu items for a scancode/accelerator (stops at first match)
[in] | i_menu | menu item to traverse |
[in] | i_scan | scancode to search for |
flattens a menu (creates list of menu items of same level)
[out] | o_array | container to hold menu items |
[in] | i_menu | menu to flatten |
get the next menu item of the same level
[in] | i_menu | menu to step through |