1mitem_opts(3X) mitem_opts(3X)
2
3
4
6 mitem_opts - set and get menu item options
7
9 #include <menu.h>
10 int set_item_opts(ITEM *item, Item_Options opts);
11 int item_opts_on(ITEM *item, Item_Options opts);
12 int item_opts_off(ITEM *item, Item_Options opts);
13 Item_Options item_opts(const ITEM *item);
14
16 The function set_item_opts sets all the given item's option bits (menu
17 option bits may be logically-OR'ed together).
18
19 The function item_opts_on turns on the given option bits, and leaves
20 others alone.
21
22 The function item_opts_off turns off the given option bits, and leaves
23 others alone.
24
25 The function item_opts returns the item's current option bits.
26
27 There is only one defined option bit mask, O_SELECTABLE. When this is
28 on, the item may be selected during menu processing. This option
29 defaults to on.
30
32 Except for item_opts, each routine returns one of the following:
33
34 E_OK The routine succeeded.
35
36 E_SYSTEM_ERROR
37 System error occurred (see errno).
38
40 curses(3X), menu(3X).
41
43 The header file <menu.h> automatically includes the header file
44 <curses.h>.
45
47 These routines emulate the System V menu library. They were not sup‐
48 ported on Version 7 or BSD versions.
49
51 Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S.
52 Raymond.
53
54
55
56 mitem_opts(3X)