Lines Matching refs:gui
153 data = (data - gui.char_height + 1) / gui.char_height; in gui_athena_scroll_cb_scroll()
161 data = (data + gui.char_height - 1) / gui.char_height; in gui_athena_scroll_cb_scroll()
186 data = (data - gui.char_width + 1) / gui.char_width; in gui_athena_scroll_cb_scroll()
192 data = (data + gui.char_width - 1) / gui.char_width; in gui_athena_scroll_cb_scroll()
236 gui.border_offset = gui.border_width; in gui_x11_create_widgets()
257 if (gui.menu_fg_pixel != INVALCOLOR) in gui_x11_create_widgets()
258 XtVaSetValues(menuBar, XtNborderColor, gui.menu_fg_pixel, NULL); in gui_x11_create_widgets()
287 XtNbackground, gui.back_pixel, in gui_x11_create_widgets()
319 gui.in_focus = FALSE; in gui_x11_create_widgets()
337 if (gui.menu_fontset == NOFONTSET) in gui_athena_create_pullright_pixmap()
339 if (gui.menu_font == NOFONT) in gui_athena_create_pullright_pixmap()
375 font = (XFontSet)gui.menu_fontset; in gui_athena_create_pullright_pixmap()
377 font = (XFontStruct *)gui.menu_font; in gui_athena_create_pullright_pixmap()
393 retval = XCreatePixmap(gui.dpy,DefaultRootWindow(gui.dpy),width, in gui_athena_create_pullright_pixmap()
397 draw_gc = XCreateGC(gui.dpy, retval, in gui_athena_create_pullright_pixmap()
402 undraw_gc = XCreateGC(gui.dpy, retval, in gui_athena_create_pullright_pixmap()
411 XFillRectangle(gui.dpy, retval, undraw_gc, 0, 0, height, height); in gui_athena_create_pullright_pixmap()
412 XFillPolygon(gui.dpy, retval, draw_gc, points, XtNumber(points), in gui_athena_create_pullright_pixmap()
414 XFreeGC(gui.dpy, draw_gc); in gui_athena_create_pullright_pixmap()
415 XFreeGC(gui.dpy, undraw_gc); in gui_athena_create_pullright_pixmap()
518 screenNum = DefaultScreen(gui.dpy); in createXpmImages()
519 rootWindow = RootWindow(gui.dpy, screenNum); in createXpmImages()
523 status = XpmCreatePixmapFromData(gui.dpy, rootWindow, xpm, in createXpmImages()
526 status = XpmReadFileToPixmap(gui.dpy, rootWindow, (char *)path, in createXpmImages()
536 back_gc = XCreateGC(gui.dpy, map, GCForeground, &gcvalues); in createXpmImages()
537 mask_gc = XCreateGC(gui.dpy, map, GCForeground, &gcvalues); in createXpmImages()
538 XSetClipMask(gui.dpy, mask_gc, mask); in createXpmImages()
541 *sen = XCreatePixmap(gui.dpy, rootWindow, in createXpmImages()
543 DefaultDepth(gui.dpy, screenNum)); in createXpmImages()
544 XFillRectangle(gui.dpy, *sen, back_gc, 0, 0, in createXpmImages()
546 XCopyArea(gui.dpy, map, *sen, mask_gc, 0, 0, in createXpmImages()
549 XFreeGC(gui.dpy, back_gc); in createXpmImages()
550 XFreeGC(gui.dpy, mask_gc); in createXpmImages()
551 XFreePixmap(gui.dpy, map); in createXpmImages()
628 XtNbackground, gui.back_pixel, in gui_x11_set_back_color()
654 XtNvertDistance, gui.menu_height, in gui_mch_enable_menu()
657 XtNvertDistance, gui.menu_height + gui.toolbar_height, in gui_mch_enable_menu()
794 if (!gui.menu_height_fixed) in gui_mch_add_menu()
807 gui.menu_height = height + 2 * (space + border); in gui_mch_add_menu()
892 if (gui.menu_fontset != NOFONTSET) in gui_athena_menu_font()
897 XtVaSetValues(id, XtNfontSet, gui.menu_fontset, NULL); in gui_athena_menu_font()
903 XtVaSetValues(id, XtNfontSet, gui.menu_fontset, NULL); in gui_athena_menu_font()
910 if (gui.menu_font != NOFONT) in gui_athena_menu_font()
919 if (gui.fontset != NOFONTSET) in gui_athena_menu_font()
920 XtVaSetValues(id, XtNfontSet, gui.menu_font, NULL); in gui_athena_menu_font()
923 XtVaSetValues(id, XtNfont, gui.menu_font, NULL); in gui_athena_menu_font()
973 if (!gui.menu_height_fixed) in gui_mch_new_menu_font()
981 gui.menu_height = max_height + 2 * (space + border); in gui_mch_new_menu_font()
1006 XFreePixmap(gui.dpy, oldpuller); in gui_mch_new_menu_font()
1060 XFreePixmap(gui.dpy, mp->image); in gui_mch_submenu_change()
1073 args[0].value = gui.tooltip_bg_pixel; in gui_mch_submenu_change()
1075 args[1].value = gui.tooltip_fg_pixel; in gui_mch_submenu_change()
1092 args[0].value = (XtArgVal)gui.tooltip_fontset; in gui_mch_submenu_change()
1196 gui.toolbar_height = gui_mch_compute_toolbar_height(); in gui_mch_add_menu_item()
1333 gui.toolbar_height = gui_mch_compute_toolbar_height(); in gui_mch_show_toolbar()
1338 XtNvertDistance, gui.toolbar_height + gui.menu_height, in gui_mch_show_toolbar()
1341 XtNvertDistance, gui.menu_height, in gui_mch_show_toolbar()
1347 XtNvertDistance, gui.toolbar_height, in gui_mch_show_toolbar()
1356 gui.toolbar_height = 0; in gui_mch_show_toolbar()
1359 XtNvertDistance, gui.menu_height, in gui_mch_show_toolbar()
1434 if (gui.menu_fg_pixel != INVALCOLOR) in gui_mch_new_menu_colors()
1435 XtVaSetValues(menuBar, XtNborderColor, gui.menu_fg_pixel, NULL); in gui_mch_new_menu_colors()
1565 if (!gui.menu_height_fixed) in gui_mch_destroy_menu()
1566 gui.menu_height = height + 2 * (space + border); in gui_mch_destroy_menu()
1576 gui.toolbar_height = gui_mch_compute_toolbar_height(); in gui_mch_destroy_menu()
1786 if (XQueryPointer(gui.dpy, XtWindow(vimShell), &root, &child, in gui_mch_show_popupmenu()
1817 if (gui.in_use) in gui_mch_def_colors()
1819 gui.menu_fg_pixel = gui_get_color((char_u *)gui.rsrc_menu_fg_name); in gui_mch_def_colors()
1820 gui.menu_bg_pixel = gui_get_color((char_u *)gui.rsrc_menu_bg_name); in gui_mch_def_colors()
1821 gui.scroll_fg_pixel = gui_get_color((char_u *)gui.rsrc_scroll_fg_name); in gui_mch_def_colors()
1822 gui.scroll_bg_pixel = gui_get_color((char_u *)gui.rsrc_scroll_bg_name); in gui_mch_def_colors()
1824 gui.tooltip_fg_pixel = gui_get_color((char_u *)gui.rsrc_tooltip_fg_name); in gui_mch_def_colors()
1825 gui.tooltip_bg_pixel = gui_get_color((char_u *)gui.rsrc_tooltip_bg_name); in gui_mch_def_colors()
1939 XtNforeground, gui.scroll_fg_pixel, in gui_mch_create_scrollbar()
1940 XtNbackground, gui.scroll_bg_pixel, in gui_mch_create_scrollbar()
1969 XtNforeground, gui.scroll_fg_pixel, in gui_mch_set_scrollbar_colors()
1970 XtNbackground, gui.scroll_bg_pixel, in gui_mch_set_scrollbar_colors()
1974 if (sb == &gui.bottom_sbar && vimForm != (Widget)0) in gui_mch_set_scrollbar_colors()
2021 gui.menu_height in gui_mch_browse()
2027 NULL, (int)x, (int)y, gui.menu_fg_pixel, gui.menu_bg_pixel, in gui_mch_browse()
2028 gui.scroll_fg_pixel, gui.scroll_bg_pixel); in gui_mch_browse()
2216 dialogatom = XInternAtom(gui.dpy, "WM_DELETE_WINDOW", False); in gui_mch_dialog()
2217 XSetWMProtocols(gui.dpy, XtWindow(dialogshell), &dialogatom, 1); in gui_mch_dialog()
2240 XWarpPointer(gui.dpy, (Window)0, XtWindow(dialogshell), 0, 0, 0, 0, 20, 40); in gui_mch_dialog()
2274 if (gui.menu_bg_pixel != INVALCOLOR) in gui_athena_menu_colors()
2275 XtVaSetValues(id, XtNbackground, gui.menu_bg_pixel, NULL); in gui_athena_menu_colors()
2276 if (gui.menu_fg_pixel != INVALCOLOR) in gui_athena_menu_colors()
2277 XtVaSetValues(id, XtNforeground, gui.menu_fg_pixel, NULL); in gui_athena_menu_colors()
2287 if (gui.scroll_bg_pixel != INVALCOLOR) in gui_athena_scroll_colors()
2288 XtVaSetValues(id, XtNbackground, gui.scroll_bg_pixel, NULL); in gui_athena_scroll_colors()
2289 if (gui.scroll_fg_pixel != INVALCOLOR) in gui_athena_scroll_colors()
2290 XtVaSetValues(id, XtNforeground, gui.scroll_fg_pixel, NULL); in gui_athena_scroll_colors()