mitemopts(3X) mitemopts(3X)
NAME
mitemopts - set and get menu item options
SYNOPSIS
##include <>
int setitemopts(ITEM *item, OPTIONS opts);
int itemoptson(ITEM *item, OPTIONS opts);
int itemoptsoff(ITEM *item, OPTIONS opts);
OPTIONS itemopts(const ITEM *item);
DESCRIPTION
The function setitemopts sets all the given item's option bits (menu
option bits may be logically-OR'ed together).
The function itemoptson turns on the given option bits, and leaves
others alone.
The function itemoptsoff turns off the given option bits, and leaves
others alone.
The function itemopts returns the item's current option bits.
There is only one defined option bit mask, OSELECTABLE. When this is
on, the item may be selected during menu processing. This option
defaults to on.
RETURN VALUE
Except for itemopts, each routine returns one of the following:
EOK The routine succeeded.
ESYSTEMEROR
System error occurred (see errno).
SEE ALSO
curses(3X), menu(3X).
NOTES
The header file <> automatically includes the header file
<>.
PORTABILITY
These routines emulate the System V menu library. They were not sup-
ported on Version 7 or BSD versions.
AUTHORS
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S.
Raymond.
mitemopts(3X)
|