Lines Matching full:rows
36 * Set and get maximum numbers of rows and columns in menus *
47 | Function : int set_menu_format(MENU *menu, int rows, int cols)
49 | Description : Sets the maximum number of rows and columns of items
60 set_menu_format(MENU *menu, int rows, int cols) in MENU_EXPORT()
63 T((T_CALLED("set_menu_format(%p,%d,%d)"), (void *)menu, rows, cols)); in MENU_EXPORT()
65 if (rows < 0 || cols < 0) in MENU_EXPORT()
78 if (rows == 0) in MENU_EXPORT()
79 rows = menu->frows; in MENU_EXPORT()
86 menu->frows = (short)rows; in MENU_EXPORT()
89 assert(rows > 0 && cols > 0); in MENU_EXPORT()
95 menu->rows = (short)total_rows; in MENU_EXPORT()
97 menu->arows = (short)minimum(total_rows, rows); in MENU_EXPORT()
106 if (rows > 0) in MENU_EXPORT()
107 _nc_Default_Menu.frows = (short)rows; in MENU_EXPORT()
117 | Function : void menu_format(const MENU *menu, int *rows, int *cols)
119 | Description : Returns the maximum number of rows and columns that may
125 menu_format(const MENU *menu, int *rows, int *cols) in menu_format() argument
127 if (rows) in menu_format()
128 *rows = Normalize_Menu(menu)->frows; in menu_format()