Lines Matching refs:item

35 * Menus item option routines                                               *
44 | Function : int set_item_opts(ITEM *item, Item_Options opts)
46 | Description : Set the options of the item. If there are relevant
47 | changes, the item is connected and the menu is posted,
51 | E_BAD_ARGUMENT - invalid item options
54 set_item_opts(ITEM * item, Item_Options opts)
56 T((T_CALLED("set_menu_opts(%p,%d)"), (void *)item, opts));
63 if (item)
65 if (item->opt != opts)
67 MENU *menu = item->imenu;
69 item->opt = opts;
71 if ((!(opts & O_SELECTABLE)) && item->value)
72 item->value = FALSE;
76 Move_And_Post_Item(menu, item);
89 | Function : int item_opts_off(ITEM *item, Item_Options opts)
91 | Description : Switch of the options for this item.
97 item_opts_off(ITEM * item, Item_Options opts)
99 ITEM *citem = item; /* use a copy because set_item_opts must detect
101 NULL item itself to adjust its behavior */
103 T((T_CALLED("item_opts_off(%p,%d)"), (void *)item, opts));
111 returnCode(set_item_opts(item, opts));
117 | Function : int item_opts_on(ITEM *item, Item_Options opts)
119 | Description : Switch on the options for this item.
125 item_opts_on(ITEM * item, Item_Options opts)
127 ITEM *citem = item; /* use a copy because set_item_opts must detect
129 NULL item itself to adjust its behavior */
131 T((T_CALLED("item_opts_on(%p,%d)"), (void *)item, opts));
140 returnCode(set_item_opts(item, opts));
146 | Function : Item_Options item_opts(const ITEM *item)
148 | Description : Switch of the options for this item.
153 item_opts(const ITEM * item)
155 T((T_CALLED("item_opts(%p)"), (const void *)item));
156 returnItemOpts(ALL_ITEM_OPTS & Normalize_Item(item)->opt);