Lines Matching refs:item

38 * Menus item option routines                                               *
47 | Function : int set_item_opts(ITEM *item, Item_Options opts)
49 | Description : Set the options of the item. If there are relevant
50 | changes, the item is connected and the menu is posted,
54 | E_BAD_ARGUMENT - invalid item options
57 set_item_opts(ITEM *item, Item_Options opts)
59 T((T_CALLED("set_menu_opts(%p,%d)"), (void *)item, opts));
66 if (item)
68 if (item->opt != opts)
70 MENU *menu = item->imenu;
72 item->opt = opts;
74 if ((!(opts & O_SELECTABLE)) && item->value)
75 item->value = FALSE;
79 Move_And_Post_Item(menu, item);
92 | Function : int item_opts_off(ITEM *item, Item_Options opts)
94 | Description : Switch of the options for this item.
100 item_opts_off(ITEM *item, Item_Options opts)
102 ITEM *citem = item; /* use a copy because set_item_opts must detect
104 NULL item itself to adjust its behavior */
106 T((T_CALLED("item_opts_off(%p,%d)"), (void *)item, opts));
114 returnCode(set_item_opts(item, opts));
120 | Function : int item_opts_on(ITEM *item, Item_Options opts)
122 | Description : Switch on the options for this item.
128 item_opts_on(ITEM *item, Item_Options opts)
130 ITEM *citem = item; /* use a copy because set_item_opts must detect
132 NULL item itself to adjust its behavior */
134 T((T_CALLED("item_opts_on(%p,%d)"), (void *)item, opts));
143 returnCode(set_item_opts(item, opts));
149 | Function : Item_Options item_opts(const ITEM *item)
151 | Description : Switch of the options for this item.
156 item_opts(const ITEM *item)
158 T((T_CALLED("item_opts(%p)"), (const void *)item));
159 returnItemOpts(ALL_ITEM_OPTS & Normalize_Item(item)->opt);