Lines Matching refs:gui
63 # define USE_IMACTIVATEFUNC (!gui.in_use && *p_imaf != NUL)
64 # define USE_IMSTATUSFUNC (!gui.in_use && *p_imsf != NUL)
166 area.width = gui.char_width * (mb_lefthalve(row, col) ? 2 : 1); in im_set_position()
167 area.height = gui.char_height; in im_set_position()
180 im_set_position(gui.row, gui.col);
212 gui_gtk_get_screen_geom_of_win(gui.drawarea, 0, 0, in im_preedit_window_set_position()
214 gdk_window_get_origin(gtk_widget_get_window(gui.drawarea), &x, &y); in im_preedit_window_set_position()
216 x = x + FILL_X(gui.col); in im_preedit_window_set_position()
217 y = y + FILL_Y(gui.row); in im_preedit_window_set_position()
247 GTK_WINDOW(gui.mainwin)); in im_preedit_window_open()
256 = gtk_widget_get_style_context(gui.drawarea); in im_preedit_window_open()
260 = pango_font_description_get_family(gui.norm_font); in im_preedit_window_open()
262 = pango_font_description_get_size(gui.norm_font) / PANGO_SCALE; in im_preedit_window_open()
265 if (!pango_font_description_get_size_is_absolute(gui.norm_font)) in im_preedit_window_open()
270 = gdk_window_get_screen(gtk_widget_get_window(gui.mainwin)); in im_preedit_window_open()
288 (gui.norm_pixel >> 16) & 0xff, in im_preedit_window_open()
289 (gui.norm_pixel >> 8) & 0xff, in im_preedit_window_open()
290 gui.norm_pixel & 0xff, in im_preedit_window_open()
291 (gui.back_pixel >> 16) & 0xff, in im_preedit_window_open()
292 (gui.back_pixel >> 8) & 0xff, in im_preedit_window_open()
293 gui.back_pixel & 0xff); in im_preedit_window_open()
304 gtk_widget_override_font(preedit_label, gui.norm_font); in im_preedit_window_open()
306 vim_snprintf(buf, sizeof(buf), "#%06X", gui.norm_pixel); in im_preedit_window_open()
310 vim_snprintf(buf, sizeof(buf), "#%06X", gui.back_pixel); in im_preedit_window_open()
315 gtk_widget_modify_font(preedit_label, gui.norm_font); in im_preedit_window_open()
317 vim_snprintf(buf, sizeof(buf), "#%06X", (unsigned)gui.norm_pixel); in im_preedit_window_open()
321 vim_snprintf(buf, sizeof(buf), "#%06X", (unsigned)gui.back_pixel); in im_preedit_window_open()
335 h = MAX(h, gui.char_height); in im_preedit_window_open()
813 g_return_if_fail(gui.drawarea != NULL); in xim_init()
814 g_return_if_fail(gtk_widget_get_window(gui.drawarea) != NULL); in xim_init()
828 gtk_im_context_set_client_window(xic, gtk_widget_get_window(gui.drawarea)); in xim_init()
927 g_object_ref(gtk_widget_get_window(gui.drawarea)); in im_synthesize_keypress()
929 event->window = gtk_widget_get_window(gui.drawarea); in im_synthesize_keypress()
965 xim_set_focus(gui.in_focus); in xim_reset()
981 xim_set_focus(gui.in_focus); in xim_reset()
1262 xim_fg_color = gui.def_norm_pixel; in xim_set_preedit()
1263 xim_bg_color = gui.def_back_pixel; in xim_set_preedit()
1265 over_spot.x = TEXT_X(gui.col); in xim_set_preedit()
1266 over_spot.y = TEXT_Y(gui.row); in xim_set_preedit()
1269 spot_area.height = gui.char_height * Rows; in xim_set_preedit()
1270 spot_area.width = gui.char_width * Columns; in xim_set_preedit()
1271 line_space = gui.char_height; in xim_set_preedit()
1395 if (gui.rsrc_input_method != NULL && *gui.rsrc_input_method != NUL) in xim_real_init()
1397 strcpy(tmp, gui.rsrc_input_method); in xim_real_init()
1464 strcpy(tmp, gui.rsrc_preedit_type_name); in xim_real_init()
1524 over_spot.x = TEXT_X(gui.col); in xim_real_init()
1525 over_spot.y = TEXT_Y(gui.row); in xim_real_init()
1531 if (gui.fontset != NOFONTSET) in xim_real_init()
1535 XNForeground, (Pixel)gui.def_norm_pixel, in xim_real_init()
1536 XNBackground, (Pixel)gui.def_back_pixel, in xim_real_init()
1537 XNFontSet, (XFontSet)gui.fontset, in xim_real_init()
1540 XNForeground, (Pixel)gui.def_norm_pixel, in xim_real_init()
1541 XNBackground, (Pixel)gui.def_back_pixel, in xim_real_init()
1542 XNFontSet, (XFontSet)gui.fontset, in xim_real_init()
1550 XNForeground, (Pixel)gui.def_norm_pixel, in xim_real_init()
1551 XNBackground, (Pixel)gui.def_back_pixel, in xim_real_init()
1554 XNForeground, (Pixel)gui.def_norm_pixel, in xim_real_init()
1555 XNBackground, (Pixel)gui.def_back_pixel, in xim_real_init()
1562 XNFocusWindow, gui.wid, in xim_real_init()
1642 status_area.width = gui.char_width * Columns; in xim_set_status_area()
1645 status_area.y = gui.char_height * Rows + gui.border_offset; in xim_set_status_area()
1646 if (gui.which_scrollbars[SBAR_BOTTOM]) in xim_set_status_area()
1647 status_area.y += gui.scrollbar_height; in xim_set_status_area()
1649 if (gui.menu_is_active) in xim_set_status_area()
1650 status_area.y += gui.menu_height; in xim_set_status_area()
1652 status_area.height = gui.char_height; in xim_set_status_area()
1658 status_area.y = gui.char_height * Rows + gui.border_offset; in xim_set_status_area()
1659 if (gui.which_scrollbars[SBAR_BOTTOM]) in xim_set_status_area()
1660 status_area.y += gui.scrollbar_height; in xim_set_status_area()
1662 if (gui.menu_is_active) in xim_set_status_area()
1663 status_area.y += gui.menu_height; in xim_set_status_area()
1666 status_area.height = gui.char_height; in xim_set_status_area()
1672 pre_area.y = gui.char_height * Rows + gui.border_offset; in xim_set_status_area()
1673 pre_area.width = gui.char_width * Columns - pre_area.x; in xim_set_status_area()
1674 if (gui.which_scrollbars[SBAR_BOTTOM]) in xim_set_status_area()
1675 pre_area.y += gui.scrollbar_height; in xim_set_status_area()
1677 if (gui.menu_is_active) in xim_set_status_area()
1678 pre_area.y += gui.menu_height; in xim_set_status_area()
1680 pre_area.height = gui.char_height; in xim_set_status_area()
1687 pre_area.height = gui.char_height * Rows; in xim_set_status_area()
1688 pre_area.width = gui.char_width * Columns; in xim_set_status_area()
1719 return gui.char_height; in xim_get_status_area_height()