Lines Matching defs: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)
64 T((T_CALLED("set_menu_format(%p,%d,%d)"), (void *)menu, rows, cols));
66 if (rows < 0 || cols < 0)
77 if (rows == 0)
78 rows = menu->frows;
85 menu->frows = (short)rows;
88 assert(rows > 0 && cols > 0);
94 menu->rows = (short)total_rows;
96 menu->arows = (short)minimum(total_rows, rows);
105 if (rows > 0)
106 _nc_Default_Menu.frows = (short)rows;
116 | Function : void menu_format(const MENU *menu, int *rows, int *cols)
118 | Description : Returns the maximum number of rows and columns that may
124 menu_format(const MENU * menu, int *rows, int *cols)
126 if (rows)
127 *rows = Normalize_Menu(menu)->frows;