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       int set_item_opts(ITEM *item, Item_Options opts);
12       int item_opts_on(ITEM *item, Item_Options opts);
13       int item_opts_off(ITEM *item, Item_Options opts);
14       Item_Options item_opts(const ITEM *item);
15

DESCRIPTION

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

RETURN VALUE

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

SEE ALSO

41       curses(3X), menu(3X).
42

NOTES

44       The  header  file  <menu.h>  automatically  includes  the  header  file
45       <curses.h>.
46

PORTABILITY

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

AUTHORS

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