Home | History | Annotate | Download | only in include

Lines Matching refs:ITEM

46 // This wraps the ITEM type of <menu.h>
54 ITEM *item;
64 : item(0)
66 item = p_name ? ::new_item (p_name, p_descript) : STATIC_CAST(ITEM*)(0);
67 if (p_name && !item)
70 // Create an item. If you pass both parameters as NULL, a delimiting
71 // item is constructed which can be used to terminate a list of
83 : item(0)
91 return ::item_name (item);
93 // Name of the item
96 return ::item_description (item);
98 // Description of the item
101 return ::item_index (item);
103 // Index of the item in an item array (or -1)
106 OnError (::item_opts_on (item, opts));
111 OnError (::item_opts_off (item, opts));
113 // Switch off the item's option
116 return ::item_opts (item);
121 OnError (::set_item_opts (item, opts));
126 OnError (::set_item_value (item,f));
131 return ::item_value (item);
136 return ::item_visible (item);
138 // Retrieve visibility of the item
141 // Perform an action associated with this item; you may use this in an
234 // Calculate ITEM* array for the menu
235 ITEM** mapItems(NCursesMenuItem* nitems[]);
385 // Get the current item (i.e. the one the cursor is located)
471 // Position the cursor to the current item
476 // Set the current item
478 OnError (::set_current_item(menu, I.item));
546 // Called after the item became the current item
547 virtual void On_Item_Init(NCursesMenuItem& item);
549 // Called before this item is left as current item.
550 virtual void On_Item_Termination(NCursesMenuItem& item);
567 // Return the item
579 // Called if the item is not selectable
592 // user data to an item of a menu. Its assumed that the user
604 if (item)
605 OnError (::set_item_userptr (item, const_cast<void *>(reinterpret_cast<const void*>(p_UserData))));
611 return reinterpret_cast<const T*>(::item_userptr (item));
615 if (item)
616 OnError (::set_item_userptr (item, const_cast<void *>(reinterpret_cast<const void *>(p_UserData))));