1mitem_opts(3X)                                                  mitem_opts(3X)
2
3
4

NAME

6       set_item_opts,  item_opts_on,  item_opts_off,  item_opts  - set and get
7       menu item options
8

SYNOPSIS

10       #include <menu.h>
11
12       int set_item_opts(ITEM *item, Item_Options opts);
13       Item_Options item_opts(const ITEM *item);
14
15       int item_opts_on(ITEM *item, Item_Options opts);
16       int item_opts_off(ITEM *item, Item_Options opts);
17

DESCRIPTION

19       The function set_item_opts sets all the given item's option bits  (menu
20       option bits may be logically-OR'ed together).
21
22       The  function  item_opts_on  turns on the given option bits, and leaves
23       others alone.
24
25       The function item_opts_off turns off the given option bits, and  leaves
26       others alone.
27
28       The function item_opts returns the item's current option bits.
29
30       There  is only one defined option bit mask, O_SELECTABLE.  When this is
31       on, the item may be selected during menu processing.  This  option  de‐
32       faults to on.
33

RETURN VALUE

35       Except for item_opts, each routine returns one of the following:
36
37       E_OK The routine succeeded.
38
39       E_SYSTEM_ERROR
40            System error occurred (see errno(3)).
41

SEE ALSO

43       curses(3X), menu(3X).
44

NOTES

46       The  header  file  <menu.h>  automatically  includes  the  header  file
47       <curses.h>.
48

PORTABILITY

50       These routines emulate the System V menu library.  They were  not  sup‐
51       ported on Version 7 or BSD versions.
52

AUTHORS

54       Juergen Pfeifer.  Manual pages and adaptation for new curses by Eric S.
55       Raymond.
56
57
58
59                                                                mitem_opts(3X)
Impressum