2 <BODY BGCOLOR="#99ccbb" TEXT="#000000" LINK="#4060b0" VLINK="#000080" ALINK="#ff4040">
4 <STRONG>mitem_opts</STRONG> - set and get menu item options
9 <STRONG>#include</STRONG> <STRONG><menu.h></STRONG>
10 int set_item_opts(ITEM *item, OPTIONS opts);
11 int item_opts_on(ITEM *item, OPTIONS opts);
12 int item_opts_off(ITEM *item, OPTIONS opts);
13 OPTIONS item_opts(const ITEM *item);
17 <H2>DESCRIPTION</H2><PRE>
18 The function <STRONG>set_item_opts</STRONG> sets all the given item's
19 option bits (menu option bits may be logically-OR'ed
22 The function <STRONG>item_opts_on</STRONG> turns on the given option bits,
23 and leaves others alone.
25 The function <STRONG>item_opts_off</STRONG> turns off the given option
26 bits, and leaves others alone.
28 The function <STRONG>item_opts</STRONG> returns the item's current option
31 There is only one defined option bit mask, <STRONG>O_SELECTABLE</STRONG>.
32 When this is on, the item may be selected during menu pro-
33 cessing. This option defaults to on.
37 <H2>RETURN VALUE</H2><PRE>
38 Except for <STRONG>item_opts</STRONG>, each routine returns one of the fol-
41 <STRONG>E_OK</STRONG> The routine succeeded.
43 <STRONG>E_SYSTEM_ERROR</STRONG>
44 System error occurred (see <STRONG>errno</STRONG>).
48 <H2>SEE ALSO</H2><PRE>
49 <STRONG><A HREF="ncurses.3x.html">curses(3X)</A></STRONG>, <STRONG><A HREF="menu.3x.html">menu(3X)</A></STRONG>.
54 The header file <STRONG><menu.h></STRONG> automatically includes the header
55 file <STRONG><curses.h></STRONG>.
59 <H2>PORTABILITY</H2><PRE>
60 These routines emulate the System V menu library. They
61 were not supported on Version 7 or BSD versions.
66 Juergen Pfeifer. Manual pages and adaptation for new
67 curses by Eric S. Raymond.