1menu_item_opts(3CURSES)    Curses Library Functions    menu_item_opts(3CURSES)
2
3
4

NAME

6       menu_item_opts, set_item_opts, item_opts_on, item_opts_off, item_opts -
7       menus item option routines
8

SYNOPSIS

10       cc [ flag... ] file... -lmenu  -lcurses  [ library... ]
11       #include <menu.h>
12
13
14
15       int set_item_opts(ITEM *item, OPTIONS opts);
16
17
18       int item_opts_on(ITEM *item, OPTIONS opts);
19
20
21       int item_opts_off(ITEM *item, OPTIONS opts);
22
23
24       OPTIONS item_opts(ITEM *item);
25
26

DESCRIPTION

28       set_item_opts() turns on the named options for item and turns  off  all
29       other options. Options are boolean values that can be OR-ed together.
30
31
32       item_opts_on()  turns on the named options for item; no other option is
33       changed.
34
35
36       item_opts_off() turns off the named options for item; no  other  option
37       is changed.
38
39
40       item_opts() returns the current options of item.
41
42       O_SELECTABLE    The item can be selected during menu processing.
43
44

RETURN VALUES

46       Except for item_opts(), these routines return one of the following:
47
48       E_OK              The routine returned successfully.
49
50
51       E_SYSTEM_ERROR    System error.
52
53

ATTRIBUTES

55       See attributes(5) for descriptions of the following attributes:
56
57
58
59
60       ┌─────────────────────────────┬─────────────────────────────┐
61       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
62       ├─────────────────────────────┼─────────────────────────────┤
63       │MT-Level                     │Unsafe                       │
64       └─────────────────────────────┴─────────────────────────────┘
65

SEE ALSO

67       curses(3CURSES), menus(3CURSES), attributes(5)
68

NOTES

70       The  header  <menu.h>  automatically  includes the headers  <eti.h> and
71       <curses.h>.
72
73
74
75SunOS 5.11                        31 Dec 1996          menu_item_opts(3CURSES)
Impressum