wined3d: Directly call wined3d_texture_create() to create swapchain textures.
[wine.git] / include / iimgctx.idl
blobb30eadd0d1e4705e91d028270a8ae6716a91ca9c
1 /*
2 * Copyright 2015 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 import "unknwn.idl";
21 cpp_quote("#define IMGCHG_SIZE 0x0001")
22 cpp_quote("#define IMGCHG_VIEW 0x0002")
23 cpp_quote("#define IMGCHG_COMPLETE 0x0004")
24 cpp_quote("#define IMGCHG_ANIMATE 0x0008")
25 cpp_quote("#define IMGCHG_MASK 0x000f")
27 cpp_quote("#define IMGLOAD_NOTLOADED 0x00100000")
28 cpp_quote("#define IMGLOAD_LOADING 0x00200000")
29 cpp_quote("#define IMGLOAD_STOPPED 0x00400000")
30 cpp_quote("#define IMGLOAD_ERROR 0x00800000")
31 cpp_quote("#define IMGLOAD_COMPLETE 0x01000000")
32 cpp_quote("#define IMGLOAD_MASK 0x01f00000")
34 cpp_quote("#define IMGBITS_NONE 0x02000000")
35 cpp_quote("#define IMGBITS_PARTIAL 0x04000000")
36 cpp_quote("#define IMGBITS_TOTAL 0x08000000")
37 cpp_quote("#define IMGBITS_MASK 0x0e000000")
39 cpp_quote("#define IMGANIM_ANIMATED 0x10000000")
40 cpp_quote("#define IMGANIM_MASK 0x10000000")
42 cpp_quote("#define IMGTRANS_OPAQUE 0x20000000")
43 cpp_quote("#define IMGTRANS_MASK 0x20000000")
45 cpp_quote("#define DWN_COLORMODE 0x0000003f")
46 cpp_quote("#define DWN_DOWNLOADONLY 0x00000040")
47 cpp_quote("#define DWN_FORCEDITHER 0x00000080")
48 cpp_quote("#define DWN_RAWIMAGE 0x00000100")
49 cpp_quote("#define DWN_MIRRORIMAGE 0x00000200")
51 typedef void (__stdcall *PFNIMGCTXCALLBACK)(void *, void *);
54 local,
55 object,
56 uuid(3050f3d7-98b5-11cf-bb82-00aa00bdce0b)
58 interface IImgCtx : IUnknown
60 HRESULT Load(LPCWSTR url, DWORD flags);
61 HRESULT SelectChanges(ULONG changeon, ULONG changeoff, BOOL signal);
62 HRESULT SetCallback(PFNIMGCTXCALLBACK fn, void *priv);
63 HRESULT Disconnect();
64 HRESULT GetUpdateRects(RECT *rect, RECT *img, LONG *pcrc);
65 HRESULT GetStateInfo(ULONG *state, SIZE *size, BOOL clear_changes);
66 HRESULT GetPalette(HPALETTE *hpal);
67 HRESULT Draw(HDC hdc, RECT *bounds);
68 HRESULT Tile(HDC hdc, POINT *backorg, RECT *clip, SIZE *size);
69 HRESULT StretchBlt(HDC hdc, int dstX, int dstY, int dstXE, int dstYE, int srcX, int srcY, int srcXE, int srcYE, DWORD rop);