Lines Matching refs:gui
128 if (!gui.in_use) in gui_mch_set_rendering_options()
651 if (blink_waittime && blink_ontime && blink_offtime && gui.in_focus) in gui_mch_start_blink()
1277 s_brush = CreateSolidBrush(gui.back_pixel); in gui_mch_new_colors()
1290 gui.norm_pixel = GetSysColor(COLOR_WINDOWTEXT); in gui_mch_def_colors()
1291 gui.back_pixel = GetSysColor(COLOR_WINDOW); in gui_mch_def_colors()
1292 gui.def_norm_pixel = gui.norm_pixel; in gui_mch_def_colors()
1293 gui.def_back_pixel = gui.back_pixel; in gui_mch_def_colors()
1364 MoveWindow(s_tabhwnd, 0, top, rect.right, gui.tabline_height, TRUE); in gui_mch_set_text_area_pos()
1416 xpad = rcWnd.right - rcTxt.right - gui.scrollbar_width in gui_mch_get_scrollbar_xpadding()
1430 ypad = rcWnd.bottom - rcTxt.bottom - gui.scrollbar_height in gui_mch_get_scrollbar_ypadding()
1458 if (gui.bottom_sbar.id == hwnd) in gui_mswin_find_scrollbar()
1459 return &gui.bottom_sbar; in gui_mswin_find_scrollbar()
1488 gui.char_width = (size.cx / 26 + 1) / 2 + tm.tmOverhang; in GetFontSize()
1490 gui.char_height = tm.tmHeight + p_linespace; in GetFontSize()
1503 GetFontSize(gui.norm_font); in gui_mch_adjust_charheight()
1685 rc.right = rc.left + nc * gui.char_width; in gui_mch_invert_rectangle()
1686 rc.bottom = rc.top + nr * gui.char_height; in gui_mch_invert_rectangle()
1716 rc.left = FILL_X(gui.col); in gui_mch_draw_hollow_cursor()
1717 rc.top = FILL_Y(gui.row); in gui_mch_draw_hollow_cursor()
1718 rc.right = rc.left + gui.char_width; in gui_mch_draw_hollow_cursor()
1719 if (mb_lefthalve(gui.row, gui.col)) in gui_mch_draw_hollow_cursor()
1720 rc.right += gui.char_width; in gui_mch_draw_hollow_cursor()
1721 rc.bottom = rc.top + gui.char_height; in gui_mch_draw_hollow_cursor()
1744 CURSOR_BAR_RIGHT ? FILL_X(gui.col + 1) - w : in gui_mch_draw_part_cursor()
1746 FILL_X(gui.col); in gui_mch_draw_part_cursor()
1747 rc.top = FILL_Y(gui.row) + gui.char_height - h; in gui_mch_draw_part_cursor()
1914 && gui.menu_is_active in process_message()
2019 point.x = FILL_X(gui.col); in process_message()
2020 point.y = FILL_Y(gui.row); in process_message()
2098 focus = gui.in_focus; in gui_mch_wait_for_chars()
2102 if (gui.in_focus != focus) in gui_mch_wait_for_chars()
2104 if (gui.in_focus) in gui_mch_wait_for_chars()
2108 focus = gui.in_focus; in gui_mch_wait_for_chars()
2214 rc.right = Columns * gui.char_width + 2 * gui.border_width; in gui_mch_clear_all()
2215 rc.bottom = Rows * gui.char_height + 2 * gui.border_width; in gui_mch_clear_all()
2764 if (hide != gui.pointer_hidden) in gui_mch_mousehide()
2767 gui.pointer_hidden = hide; in gui_mch_mousehide()
2936 (void)SetCursorPos(x + gui.border_offset + rct.left, in gui_mch_setmouse()
2937 y + gui.border_offset + rct.top); in gui_mch_setmouse()
2962 *cols = (w - base_width) / gui.char_width; in gui_mswin_get_valid_dimensions()
2963 *rows = (h - base_height) / gui.char_height; in gui_mswin_get_valid_dimensions()
2964 *valid_w = base_width + *cols * gui.char_width; in gui_mswin_get_valid_dimensions()
2965 *valid_h = base_height + *rows * gui.char_height; in gui_mswin_get_valid_dimensions()
2983 rc.right = gui.num_cols * gui.char_width; in gui_mch_flash()
2984 rc.bottom = gui.num_rows * gui.char_height; in gui_mch_flash()
3067 GetPixel(s_hdc, FILL_X(gui.col), FILL_Y(gui.row)); in intel_gpu_workaround()
3081 rc.left = FILL_X(gui.scroll_region_left); in gui_mch_delete_lines()
3082 rc.right = FILL_X(gui.scroll_region_right + 1); in gui_mch_delete_lines()
3084 rc.bottom = FILL_Y(gui.scroll_region_bot + 1); in gui_mch_delete_lines()
3089 DWriteContext_Scroll(s_dwc, 0, -num_lines * gui.char_height, &rc); in gui_mch_delete_lines()
3099 ScrollWindowEx(s_textArea, 0, -num_lines * gui.char_height, in gui_mch_delete_lines()
3110 gui_clear_block(gui.scroll_region_bot - num_lines + 1, in gui_mch_delete_lines()
3111 gui.scroll_region_left, in gui_mch_delete_lines()
3112 gui.scroll_region_bot, gui.scroll_region_right); in gui_mch_delete_lines()
3126 rc.left = FILL_X(gui.scroll_region_left); in gui_mch_insert_lines()
3127 rc.right = FILL_X(gui.scroll_region_right + 1); in gui_mch_insert_lines()
3129 rc.bottom = FILL_Y(gui.scroll_region_bot + 1); in gui_mch_insert_lines()
3134 DWriteContext_Scroll(s_dwc, 0, num_lines * gui.char_height, &rc); in gui_mch_insert_lines()
3146 ScrollWindowEx(s_textArea, 0, num_lines * gui.char_height, in gui_mch_insert_lines()
3151 gui_clear_block(row, gui.scroll_region_left, in gui_mch_insert_lines()
3152 row + num_lines - 1, gui.scroll_region_right); in gui_mch_insert_lines()
3256 && gui.wide_font != NOFONT in update_im_font()
3257 && GetObjectW((HFONT)gui.wide_font, sizeof(lf_wide), &lf_wide)) in update_im_font()
3277 gui_mch_free_font(gui.wide_ital_font); in gui_mch_wide_font_changed()
3278 gui.wide_ital_font = NOFONT; in gui_mch_wide_font_changed()
3279 gui_mch_free_font(gui.wide_bold_font); in gui_mch_wide_font_changed()
3280 gui.wide_bold_font = NOFONT; in gui_mch_wide_font_changed()
3281 gui_mch_free_font(gui.wide_boldital_font); in gui_mch_wide_font_changed()
3282 gui.wide_boldital_font = NOFONT; in gui_mch_wide_font_changed()
3284 if (gui.wide_font in gui_mch_wide_font_changed()
3285 && GetObjectW((HFONT)gui.wide_font, sizeof(lf), &lf)) in gui_mch_wide_font_changed()
3290 gui.wide_ital_font = get_font_handle(&lf); in gui_mch_wide_font_changed()
3296 gui.wide_bold_font = get_font_handle(&lf); in gui_mch_wide_font_changed()
3300 gui.wide_boldital_font = get_font_handle(&lf); in gui_mch_wide_font_changed()
3334 gui_mch_free_font(gui.norm_font); in gui_mch_init_font()
3335 gui.norm_font = font; in gui_mch_init_font()
3355 gui_mch_free_font(gui.ital_font); in gui_mch_init_font()
3356 gui.ital_font = NOFONT; in gui_mch_init_font()
3357 gui_mch_free_font(gui.bold_font); in gui_mch_init_font()
3358 gui.bold_font = NOFONT; in gui_mch_init_font()
3359 gui_mch_free_font(gui.boldital_font); in gui_mch_init_font()
3360 gui.boldital_font = NOFONT; in gui_mch_init_font()
3365 gui.ital_font = get_font_handle(&lf); in gui_mch_init_font()
3371 gui.bold_font = get_font_handle(&lf); in gui_mch_init_font()
3375 gui.boldital_font = get_font_handle(&lf); in gui_mch_init_font()
4247 if (gui.menu_is_active) in gui_mswin_get_menu_height()
4272 if (gui.starting) in gui_mswin_get_menu_height()
4442 gui.tabline_height = tm.tmHeight + tm.tmInternalLeading + 7; in set_tabline_font()
4671 if ( !gui.menu_is_active in _WndProc()
4980 gui.in_use = mch_is_gui_executable(); in ole_error()
5246 gui.scrollbar_width = GetSystemMetrics(SM_CXVSCROLL); in gui_mch_init()
5247 gui.scrollbar_height = GetSystemMetrics(SM_CYHSCROLL); in gui_mch_init()
5249 gui.menu_height = 0; // Windows takes care of this in gui_mch_init()
5251 gui.border_width = 0; in gui_mch_init()
5409 gui.def_norm_pixel = gui.norm_pixel; in gui_mch_init()
5410 gui.def_back_pixel = gui.back_pixel; in gui_mch_init()
5419 gui.border_offset = gui.border_width; in gui_mch_init()
5574 gui_mswin_get_menu_height(!gui.starting); in gui_mch_set_shellsize()
5616 gui.currFont = font; in gui_mch_set_font()
5626 gui.currFgColor = color; in gui_mch_set_fg_color()
5635 gui.currBgColor = color; in gui_mch_set_bg_color()
5644 gui.currSpColor = color; in gui_mch_set_sp_color()
5674 im_set_position(gui.row, gui.col); in _OnImeNotify()
5685 int old_row = gui.row; in _OnImeNotify()
5686 int old_col = gui.col; in _OnImeNotify()
5695 gui.row = old_row; in _OnImeNotify()
5696 gui.col = old_col; in _OnImeNotify()
5857 if (!gui.in_use && !gui.starting) in im_set_active()
5934 if (!gui.in_use && !gui.starting) in im_get_status()
6160 if (gui.currBgColor == brush_color[0]) in gui_mch_draw_string()
6165 else if (gui.currBgColor == brush_color[1]) in gui_mch_draw_string()
6174 hbr_cache[brush_lru] = CreateSolidBrush(gui.currBgColor); in gui_mch_draw_string()
6175 brush_color[brush_lru] = gui.currBgColor; in gui_mch_draw_string()
6180 fill_rect(&rc, hbr, gui.currBgColor); in gui_mch_draw_string()
6194 SetTextColor(s_hdc, gui.currFgColor); in gui_mch_draw_string()
6195 SelectFont(s_hdc, gui.currFont); in gui_mch_draw_string()
6199 DWriteContext_SetFont(s_dwc, (HFONT)gui.currFont); in gui_mch_draw_string()
6202 if (pad_size != Columns || padding == NULL || padding[0] != gui.char_width) in gui_mch_draw_string()
6212 padding[i] = gui.char_width; in gui_mch_draw_string()
6298 unicodepdy[wlen - 2] = cw * gui.char_width; in gui_mch_draw_string()
6302 unicodepdy[wlen - 1] = cw * gui.char_width; in gui_mch_draw_string()
6315 gui.char_width, gui.currFgColor, in gui_mch_draw_string()
6352 unicodepdy[i] = cw * gui.char_width; in gui_mch_draw_string()
6382 draw_line(FILL_X(col), y, FILL_X(col + len), y, gui.currFgColor); in gui_mch_draw_string()
6388 y = FILL_Y(row + 1) - gui.char_height/2; in gui_mch_draw_string()
6389 draw_line(FILL_X(col), y, FILL_X(col + len), y, gui.currSpColor); in gui_mch_draw_string()
6403 set_pixel(x, y - offset, gui.currSpColor); in gui_mch_draw_string()
6430 fill_rect(rcp, NULL, gui.back_pixel); in clear_rect()
6499 gui_mswin_get_menu_height(!gui.starting); in gui_mch_add_menu()
6913 if (!(gui.in_use || gui.starting)) in gui_mch_dialog()
8073 gui.tabline_height = TABLINE_HEIGHT; in initialise_tabline()
8277 if (!gui.in_use || (sign = (signicon_t *)sign_get_image(typenr)) == NULL) in gui_mch_drawsign()
8287 w = gui.char_width * 2; in gui_mch_drawsign()
8288 h = gui.char_height; in gui_mch_drawsign()
8376 gui.char_width * 2, gui.char_height, in gui_mch_register_sign()
8792 for (i = 0; i < gui.char_height - 3; i++) in netbeans_draw_multisign_indicator()
8793 SetPixel(s_hdc, x+2, y++, gui.currFgColor); in netbeans_draw_multisign_indicator()
8795 SetPixel(s_hdc, x+0, y, gui.currFgColor); in netbeans_draw_multisign_indicator()
8796 SetPixel(s_hdc, x+2, y, gui.currFgColor); in netbeans_draw_multisign_indicator()
8797 SetPixel(s_hdc, x+4, y++, gui.currFgColor); in netbeans_draw_multisign_indicator()
8798 SetPixel(s_hdc, x+1, y, gui.currFgColor); in netbeans_draw_multisign_indicator()
8799 SetPixel(s_hdc, x+2, y, gui.currFgColor); in netbeans_draw_multisign_indicator()
8800 SetPixel(s_hdc, x+3, y++, gui.currFgColor); in netbeans_draw_multisign_indicator()
8801 SetPixel(s_hdc, x+2, y, gui.currFgColor); in netbeans_draw_multisign_indicator()