Lines Matching refs:item
53 /* Normalize item to default if none was given */
54 #define Normalize_Item( item ) ((item)=(item)?(item):&_nc_Default_Item)
80 /* Move to the window position of an item and draw it */
81 #define Move_And_Post_Item(menu,item) \
82 {wmove((menu)->win,(menu)->spc_rows*(item)->y,((menu)->itemlen+(menu)->spc_cols)*(item)->x);\
83 _nc_Post_Item((menu),(item));}
85 #define Move_To_Current_Item(menu,item) \
86 if ( (item) != (menu)->curitem)\
88 Move_And_Post_Item(menu,item);\
92 /* This macro ensures, that the item becomes visible, if possible with the
96 #define Adjust_Current_Item(menu,row,item) \
97 { if ((item)->y < row) \
98 row = (item)->y;\
99 if ( (item)->y >= (row + (menu)->arows) )\
100 row = ( (item)->y < ((menu)->rows - row) ) ? \
101 (item)->y : (menu)->rows - (menu)->arows;\
102 _nc_New_TopRow_and_CurrentItem(menu,row,item); }
122 extern NCURSES_EXPORT(int) _nc_menu_cursor_pos (const MENU* menu, const ITEM* item,
127 #define returnItem(code) TRACE_RETURN(code,item)