comparison src/gui_dwrite.h @ 12934:2ebc3df65ca2 v8.0.1343

patch 8.0.1343: MS-Windows: does not show colored emojis commit https://github.com/vim/vim/commit/d7ccc4d81dbcfa3ac0352bacea6e294fc9e33fda Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 26 14:29:32 2017 +0100 patch 8.0.1343: MS-Windows: does not show colored emojis Problem: MS-Windows: does not show colored emojis. Solution: Implement colored emojis. Improve drawing speed. Make 'taamode' work. (Taro Muraoka, Yasuhiro Matsumoto, Ken Takata, close #2375)
author Christian Brabandt <cb@256bit.org>
date Sun, 26 Nov 2017 14:30:04 +0100
parents 1bff71d20262
children 18e6f4addce9
comparison
equal deleted inserted replaced
12933:9eeaf892510c 12934:2ebc3df65ca2
2 /* 2 /*
3 * Author: MURAOKA Taro <koron.kaoriya@gmail.com> 3 * Author: MURAOKA Taro <koron.kaoriya@gmail.com>
4 * 4 *
5 * Contributors: 5 * Contributors:
6 * - Ken Takata 6 * - Ken Takata
7 * - Yasuhiro Matsumoto
7 * 8 *
8 * Copyright (C) 2013 MURAOKA Taro <koron.kaoriya@gmail.com> 9 * Copyright (C) 2013 MURAOKA Taro <koron.kaoriya@gmail.com>
9 * THIS FILE IS DISTRIBUTED UNDER THE VIM LICENSE. 10 * THIS FILE IS DISTRIBUTED UNDER THE VIM LICENSE.
10 */ 11 */
11 12
52 53
53 void DWrite_Init(void); 54 void DWrite_Init(void);
54 void DWrite_Final(void); 55 void DWrite_Final(void);
55 56
56 DWriteContext *DWriteContext_Open(void); 57 DWriteContext *DWriteContext_Open(void);
57 void DWriteContext_BeginDraw(DWriteContext *ctx);
58 void DWriteContext_BindDC(DWriteContext *ctx, HDC hdc, RECT *rect); 58 void DWriteContext_BindDC(DWriteContext *ctx, HDC hdc, RECT *rect);
59 void DWriteContext_SetFont(DWriteContext *ctx, HFONT hFont); 59 void DWriteContext_SetFont(DWriteContext *ctx, HFONT hFont);
60 void DWriteContext_DrawText( 60 void DWriteContext_DrawText(
61 DWriteContext *ctx, 61 DWriteContext *ctx,
62 HDC hdc,
63 const WCHAR* text, 62 const WCHAR* text,
64 int len, 63 int len,
65 int x, 64 int x,
66 int y, 65 int y,
67 int w, 66 int w,
68 int h, 67 int h,
69 int cellWidth, 68 int cellWidth,
70 COLORREF color); 69 COLORREF color,
71 void DWriteContext_EndDraw(DWriteContext *ctx); 70 UINT fuOptions,
71 CONST RECT *lprc,
72 CONST INT * lpDx);
73 void DWriteContext_FillRect(DWriteContext *ctx, RECT *rc, COLORREF color);
74 void DWriteContext_Flush(DWriteContext *ctx);
72 void DWriteContext_Close(DWriteContext *ctx); 75 void DWriteContext_Close(DWriteContext *ctx);
73 76
74 void DWriteContext_SetRenderingParams( 77 void DWriteContext_SetRenderingParams(
75 DWriteContext *ctx, 78 DWriteContext *ctx,
76 const DWriteRenderingParams *params); 79 const DWriteRenderingParams *params);