Lines Matching defs:item
36 * Set and get menus item values *
45 | Function : int set_item_value(ITEM *item, int value)
47 | Description : Programmatically set the item's selection value. This is
48 | only allowed if the item is selectable at all and if
50 | If the item is connected to a posted menu, the menu
57 set_item_value(ITEM *item, bool value)
59 T((T_CALLED("set_item_value(%p,%d)"), (void *)item, value));
60 if (item)
62 MENU *menu = item->imenu;
64 if ((!(item->opt & O_SELECTABLE)) ||
68 if (item->value ^ value)
70 item->value = value ? TRUE : FALSE;
75 Move_And_Post_Item(menu, item);
89 | Function : bool item_value(const ITEM *item)
91 | Description : Return the selection value of the item
93 | Return Values : TRUE - if item is selected
94 | FALSE - if item is not selected
97 item_value(const ITEM *item)
99 T((T_CALLED("item_value(%p)"), (const void *)item));
100 returnBool((Normalize_Item(item)->value) ? TRUE : FALSE);