Lines Matching defs:menu
38 #include "menu.priv.h"
44 | Function : int set_top_row(MENU *menu, int row)
46 | Description : Makes the specified row the top row in the menu
49 | E_BAD_ARGUMENT - not a menu pointer or invalid row
50 | E_NOT_CONNECTED - there are no items for the menu
53 set_top_row(MENU * menu, int row)
57 T((T_CALLED("set_top_row(%p,%d)"), menu, row));
59 if (menu)
61 if (menu->status & _IN_DRIVER)
63 if (menu->items == (ITEM **) 0)
66 if ((row < 0) || (row > (menu->rows - menu->arows)))
72 if (row != menu->toprow)
74 if (menu->status & _LINK_NEEDED)
75 _nc_Link_Items(menu);
77 item = menu->items[(menu->opt & O_ROWMAJOR) ? (row * menu->cols) : row];
78 assert(menu->pattern);
79 Reset_Pattern(menu);
80 _nc_New_TopRow_and_CurrentItem(menu, row, item);
90 | Description : Return the top row of the menu
95 top_row(const MENU * menu)
97 T((T_CALLED("top_row(%p)"), menu));
98 if (menu && menu->items && *(menu->items))
100 assert((menu->toprow >= 0) && (menu->toprow < menu->rows));
101 returnCode(menu->toprow);