Lines Matching refs:cols
46 | Function : int set_menu_format(MENU *menu, int rows, int cols)
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)
78 if (cols == 0)
79 cols = menu->fcols;
85 menu->fcols = cols;
87 assert(rows > 0 && cols > 0);
88 total_rows = (menu->nitems - 1) / cols + 1;
90 minimum(menu->nitems, cols) :
94 menu->cols = total_cols;
106 if (cols > 0)
107 _nc_Default_Menu.fcols = cols;
115 | Function : void menu_format(const MENU *menu, int *rows, int *cols)
123 menu_format(const MENU * menu, int *rows, int *cols)
127 if (cols)
128 *cols = Normalize_Menu(menu)->fcols;