Lines Matching defs:item
35 * Set and get menus item values *
44 | Function : int set_item_value(ITEM *item, int value)
46 | Description : Programmatically set the item's selection value. This is
47 | only allowed if the item is selectable at all and if
49 | If the item is connected to a posted menu, the menu
56 set_item_value(ITEM * item, bool value)
60 T((T_CALLED("set_item_value(%p,%d)"), item, value));
61 if (item)
63 menu = item->imenu;
65 if ((!(item->opt & O_SELECTABLE)) ||
69 if (item->value ^ value)
71 item->value = value ? TRUE : FALSE;
76 Move_And_Post_Item(menu, item);
90 | Function : bool item_value(const ITEM *item)
92 | Description : Return the selection value of the item
94 | Return Values : TRUE - if item is selected
95 | FALSE - if item is not selected
98 item_value(const ITEM * item)
100 T((T_CALLED("item_value(%p)"), item));
101 returnBool((Normalize_Item(item)->value) ? TRUE : FALSE);