Lines Matching refs:cols
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()
80 if (cols == 0) in MENU_EXPORT()
81 cols = menu->fcols; in MENU_EXPORT()
87 menu->fcols = (short)cols; in MENU_EXPORT()
89 assert(rows > 0 && cols > 0); in MENU_EXPORT()
90 total_rows = (menu->nitems - 1) / cols + 1; in MENU_EXPORT()
92 minimum(menu->nitems, cols) : in MENU_EXPORT()
96 menu->cols = (short)total_cols; in MENU_EXPORT()
108 if (cols > 0) in MENU_EXPORT()
109 _nc_Default_Menu.fcols = (short)cols; in MENU_EXPORT()
125 menu_format(const MENU *menu, int *rows, int *cols) in menu_format() argument
129 if (cols) in menu_format()
130 *cols = Normalize_Menu(menu)->fcols; in menu_format()