vkd3d: Disable printf format checks.
[wine.git] / dlls / dwrite / unixlib.h
blob1b9938f08c5a6a898bf9d4e8abd030dd2fd8bb71
1 /*
2 * Copyright 2021 Nikolay Sivov for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #include <stdarg.h>
20 #include "windef.h"
21 #include "winternl.h"
22 #include "dwrite.h"
23 #include "dwrite_private.h"
24 #include "wine/unixlib.h"
26 struct create_font_object_params
28 const void *data;
29 UINT64 size;
30 unsigned int index;
31 UINT64 *object;
34 struct release_font_object_params
36 UINT64 object;
39 struct get_glyph_outline_params
41 UINT64 object;
42 unsigned int simulations;
43 unsigned int glyph;
44 float emsize;
45 struct dwrite_outline *outline;
48 struct get_glyph_count_params
50 UINT64 object;
51 unsigned int *count;
54 struct get_glyph_advance_params
56 UINT64 object;
57 unsigned int glyph;
58 unsigned int mode;
59 float emsize;
60 int *advance;
61 unsigned int *has_contours;
64 struct get_glyph_bbox_params
66 UINT64 object;
67 unsigned int simulations;
68 unsigned int glyph;
69 float emsize;
70 MATRIX_2X2 m;
71 RECT *bbox;
74 struct get_glyph_bitmap_params
76 UINT64 object;
77 unsigned int simulations;
78 unsigned int glyph;
79 unsigned int mode;
80 float emsize;
81 MATRIX_2X2 m;
82 RECT bbox;
83 int pitch;
84 BYTE *bitmap;
85 unsigned int *is_1bpp;
88 struct get_design_glyph_metrics_params
90 UINT64 object;
91 unsigned int simulations;
92 unsigned int glyph;
93 unsigned int upem;
94 unsigned int ascent;
95 DWRITE_GLYPH_METRICS *metrics;
98 enum font_backend_funcs
100 unix_process_attach,
101 unix_process_detach,
102 unix_create_font_object,
103 unix_release_font_object,
104 unix_get_glyph_outline,
105 unix_get_glyph_count,
106 unix_get_glyph_advance,
107 unix_get_glyph_bbox,
108 unix_get_glyph_bitmap,
109 unix_get_design_glyph_metrics,
110 unix_funcs_count,
113 #define UNIX_CALL( func, params ) WINE_UNIX_CALL( unix_ ## func, params )