4 * Copyright 2012 Nikolay Sivov for CodeWeavers
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
27 #include "wine/debug.h"
29 WINE_DEFAULT_DEBUG_CHANNEL(dwrite);
31 static HRESULT WINAPI gdiinterop_QueryInterface(IDWriteGdiInterop *iface, REFIID riid, void **obj)
33 TRACE("(%s %p)\n", debugstr_guid(riid), obj);
35 if (IsEqualIID(riid, &IID_IUnknown) || IsEqualIID(riid, &IID_IDWriteGdiInterop))
46 static ULONG WINAPI gdiinterop_AddRef(IDWriteGdiInterop *iface)
51 static ULONG WINAPI gdiinterop_Release(IDWriteGdiInterop *iface)
56 static HRESULT WINAPI gdiinterop_CreateFontFromLOGFONT(IDWriteGdiInterop *iface,
57 LOGFONTW const *logfont, IDWriteFont **font)
59 FIXME("(%p %p): stub\n", logfont, font);
63 static HRESULT WINAPI gdiinterop_ConvertFontToLOGFONT(IDWriteGdiInterop *iface,
64 IDWriteFont *font, LOGFONTW *logfont, BOOL *is_systemfont)
66 FIXME("(%p %p %p): stub\n", font, logfont, is_systemfont);
70 static HRESULT WINAPI gdiinterop_ConvertFontFaceToLOGFONT(IDWriteGdiInterop *iface,
71 IDWriteFontFace *font, LOGFONTW *logfont)
73 FIXME("(%p %p): stub\n", font, logfont);
77 static HRESULT WINAPI gdiinterop_CreateFontFaceFromHdc(IDWriteGdiInterop *iface,
78 HDC hdc, IDWriteFontFace **fontface)
80 FIXME("(%p %p): stub\n", hdc, fontface);
84 static HRESULT WINAPI gdiinterop_CreateBitmapRenderTarget(IDWriteGdiInterop *iface,
85 HDC hdc, UINT32 width, UINT32 height, IDWriteBitmapRenderTarget **target)
87 FIXME("(%p %u %u %p): stub\n", hdc, width, height, target);
91 static const struct IDWriteGdiInteropVtbl gdiinteropvtbl = {
92 gdiinterop_QueryInterface,
95 gdiinterop_CreateFontFromLOGFONT,
96 gdiinterop_ConvertFontToLOGFONT,
97 gdiinterop_ConvertFontFaceToLOGFONT,
98 gdiinterop_CreateFontFaceFromHdc,
99 gdiinterop_CreateBitmapRenderTarget
102 static IDWriteGdiInterop gdiinterop = { &gdiinteropvtbl };
104 HRESULT create_gdiinterop(IDWriteGdiInterop **ret)