Lines Matching refs:item
38 * Set and get menus item values *
47 | Function : int set_item_value(ITEM *item, int value)
49 | Description : Programmatically set the item's selection value. This is
50 | only allowed if the item is selectable at all and if
52 | If the item is connected to a posted menu, the menu
59 set_item_value(ITEM *item, bool value)
61 T((T_CALLED("set_item_value(%p,%d)"), (void *)item, value));
62 if (item)
64 MENU *menu = item->imenu;
66 if ((!(item->opt & O_SELECTABLE)) ||
70 if (item->value ^ value)
72 item->value = value ? TRUE : FALSE;
77 Move_And_Post_Item(menu, item);
91 | Function : bool item_value(const ITEM *item)
93 | Description : Return the selection value of the item
95 | Return Values : TRUE - if item is selected
96 | FALSE - if item is not selected
99 item_value(const ITEM *item)
101 T((T_CALLED("item_value(%p)"), (const void *)item));
102 returnBool((Normalize_Item(item)->value) ? TRUE : FALSE);