Lines Matching defs:win

341 redraw_footer(WINDOW *win)
350 wmove(win, h - 1, 0);
351 wattron(win, COLOR_PAIR(COLOR_FOOTER));
352 waddstr(win, footer);
353 whline(win, ' ', w - n);
354 wattroff(win, COLOR_PAIR(COLOR_FOOTER));
360 redraw_group_header(WINDOW *win, int row, const char *name)
362 wmove(win, row, 0);
363 wattron(win, A_BOLD);
364 wattron(win, COLOR_PAIR(COLOR_GROUP_HEADER));
365 waddstr(win, name);
366 whline(win, ' ', w - strlen(name));
367 wattroff(win, COLOR_PAIR(COLOR_GROUP_HEADER));
368 wattroff(win, A_BOLD);
372 redraw_counter_label(WINDOW *win, int row, const char *name, bool selected)
376 wmove(win, row, 0);
377 whline(win, ' ', ctr_width - n);
378 wmove(win, row, ctr_width - n);
380 wattron(win, COLOR_PAIR(COLOR_INVERSE));
381 waddstr(win, name);
383 wattroff(win, COLOR_PAIR(COLOR_INVERSE));
384 waddstr(win, ": ");
388 redraw_counter_value_cycles(WINDOW *win, float val)
391 int x = getcurx(win);
408 wattron(win, COLOR_PAIR(COLOR_INVERSE));
409 waddnstr(win, str, barwidth);
411 whline(win, ' ', barwidth - n);
412 wmove(win, getcury(win), x + barwidth);
414 wattroff(win, COLOR_PAIR(COLOR_INVERSE));
416 waddstr(win, str + barwidth);
417 whline(win, ' ', w - getcurx(win));
423 redraw_counter_value_raw(WINDOW *win, float val)
427 waddstr(win, str);
428 whline(win, ' ', w - getcurx(win));
433 redraw_counter(WINDOW *win, int row, struct counter_group *group, int ctr,
436 redraw_counter_label(win, row, group->label[ctr], selected);
453 redraw_counter_value_cycles(win, group->current[ctr]);
455 redraw_counter_value_raw(win, group->current[ctr]);
459 redraw(WINDOW *win)
464 w = getmaxx(win);
465 h = getmaxy(win);
485 redraw_group_header(win, row - scroll, group->group->name);
491 redraw_counter(win, row - scroll, group, j, row == current_cntr);
499 redraw_group_header(win, row, "Status");
503 redraw_counter_label(win, row, "Freq (MHz)", false);
504 redraw_counter_value_raw(win, dev.groups[0].current[0] / 1000000.0);
507 redraw_footer(win);