4 <!-- Manpage converted by man2html 3.0.1 -->
8 <B>mitem_opts</B> - set and get menu item options
12 <H2>SYNOPSIS</H2><PRE>
13 <B>#include</B> <B><menu.h></B>
14 int set_item_opts(ITEM *item, OPTIONS opts);
15 int item_opts_on(ITEM *item, OPTIONS opts);
16 int item_opts_off(ITEM *item, OPTIONS opts);
17 OPTIONS item_opts(const ITEM *item);
21 <H2>DESCRIPTION</H2><PRE>
22 The function <B>set_item_opts</B> sets all the given item's
23 option bits (menu option bits may be logically-OR'ed
26 The function <B>item_opts_on</B> turns on the given option bits,
27 and leaves others alone.
29 The function <B>item_opts_off</B> turns off the given option
30 bits, and leaves others alone.
32 The function <B>item_opts</B> returns the item's current option
35 There is only one defined option bit mask, <B>O_SELECTABLE</B>.
36 When this is on, the item may be selected during menu pro-
37 cessing. This option defaults to on.
41 <H2>RETURN VALUE</H2><PRE>
42 Except for <B>item_opts</B>, each routine returns one of the fol-
45 <B>E_OK</B> The routine succeeded.
48 System error occurred (see <B>errno</B>).
52 <H2>SEE ALSO</H2><PRE>
53 <B><A HREF="ncurses.3x.html">curses(3x)</A></B>, <B><A HREF="menu.3x.html">menu(3x)</A></B>.
58 The header file <B><menu.h></B> automatically includes the header
59 file <B><curses.h></B>.
63 <H2>PORTABILITY</H2><PRE>
64 These routines emulate the System V menu library. They
65 were not supported on Version 7 or BSD versions.
70 Juergen Pfeifer. Manual pages and adaptation for new
71 curses by Eric S. Raymond.
78 Man(1) output converted with
79 <a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>