Lines Matching defs:rows
35 * Set and get maximum numbers of rows and columns in menus *
46 | Function : int set_menu_format(MENU *menu, int rows, int cols)
48 | Description : Sets the maximum number of rows and columns of items
59 set_menu_format(MENU * menu, int rows, int cols)
63 T((T_CALLED("set_menu_format(%p,%d,%d)"), menu, rows, cols));
65 if (rows < 0 || cols < 0)
76 if (rows == 0)
77 rows = menu->frows;
84 menu->frows = rows;
87 assert(rows > 0 && cols > 0);
93 menu->rows = total_rows;
95 menu->arows = minimum(total_rows, rows);
104 if (rows > 0)
105 _nc_Default_Menu.frows = rows;
115 | Function : void menu_format(const MENU *menu, int *rows, int *cols)
117 | Description : Returns the maximum number of rows and columns that may
123 menu_format(const MENU * menu, int *rows, int *cols)
125 if (rows)
126 *rows = Normalize_Menu(menu)->frows;