Lines Matching defs:dialog
11 #include "dialog.h"
22 dlg.dialog.atr = A_NORMAL;
51 #define DLG_COLOR(dialog, f, b, h) \
53 dlg.dialog.fg = (f); \
54 dlg.dialog.bg = (b); \
55 dlg.dialog.hl = (h); \
62 DLG_COLOR(dialog, COLOR_BLACK, COLOR_WHITE, false);
95 DLG_COLOR(dialog, COLOR_WHITE, COLOR_BLACK, false);
182 init_one_color(&dlg.dialog);
300 * Do some initialization for dialog
339 * End using dialog functions.
349 /* Print the title of the dialog. Center the title and truncate
350 * tile if wider than dialog (- 2 chars).
352 void print_title(WINDOW *dialog, const char *title, int width)
356 wattrset(dialog, dlg.title.atr);
357 mvwaddch(dialog, 0, (width - tlen) / 2 - 1, ' ');
358 mvwaddnstr(dialog, 0, (width - tlen)/2, title, tlen);
359 waddch(dialog, ' ');