source: Daodan/MSYS2/mingw32/i686-w64-mingw32/include/iimgctx.h@ 1180

Last change on this file since 1180 was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 3.7 KB
Line 
1/**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6#ifndef _IImgCtxObjects_H_
7#define _IImgCtxObjects_H_
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12 typedef void (CALLBACK *PFNIMGCTXCALLBACK)(void *,void *);
13#ifdef __cplusplus
14}
15#endif
16
17#define IMGCHG_SIZE 0x0001
18#define IMGCHG_VIEW 0x0002
19#define IMGCHG_COMPLETE 0x0004
20#define IMGCHG_ANIMATE 0x0008
21#define IMGCHG_MASK 0x000F
22
23#define IMGLOAD_NOTLOADED 0x00100000
24#define IMGLOAD_LOADING 0x00200000
25#define IMGLOAD_STOPPED 0x00400000
26#define IMGLOAD_ERROR 0x00800000
27#define IMGLOAD_COMPLETE 0x01000000
28#define IMGLOAD_MASK 0x01F00000
29
30#define IMGBITS_NONE 0x02000000
31#define IMGBITS_PARTIAL 0x04000000
32#define IMGBITS_TOTAL 0x08000000
33#define IMGBITS_MASK 0x0E000000
34
35#define IMGANIM_ANIMATED 0x10000000
36#define IMGANIM_MASK 0x10000000
37
38#define IMGTRANS_OPAQUE 0x20000000
39#define IMGTRANS_MASK 0x20000000
40
41#define DWN_COLORMODE 0x0000003F
42#define DWN_DOWNLOADONLY 0x00000040
43#define DWN_FORCEDITHER 0x00000080
44#define DWN_RAWIMAGE 0x00000100
45#define DWN_MIRRORIMAGE 0x00000200
46
47#undef INTERFACE
48#define INTERFACE IImgCtx
49
50DEFINE_GUID(IID_IImgCtx,0x3050f3d7,0x98b5,0x11cf,0xbb,0x82,0x00,0xaa,0x00,0xbd,0xce,0x0b);
51
52DECLARE_INTERFACE_(IImgCtx,IUnknown) {
53#ifndef NO_BASEINTERFACE_FUNCS
54 STDMETHOD(QueryInterface)(THIS_ REFIID riid,LPVOID *ppvObj) PURE;
55 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
56 STDMETHOD_(ULONG,Release)(THIS) PURE;
57#endif
58 STDMETHOD(Load)(THIS_ LPCWSTR pszUrl,DWORD dwFlags) PURE;
59 STDMETHOD(SelectChanges)(THIS_ ULONG ulChgOn,ULONG ulChgOff,WINBOOL fSignal) PURE;
60 STDMETHOD(SetCallback)(THIS_ PFNIMGCTXCALLBACK pfn,void *pvPrivateData) PURE;
61 STDMETHOD(Disconnect)(THIS) PURE;
62 STDMETHOD(GetUpdateRects)(THIS_ struct tagRECT *prc,struct tagRECT *prcImg,__LONG32 *pcrc) PURE;
63 STDMETHOD(GetStateInfo)(THIS_ ULONG *pulState,struct tagSIZE *psize,WINBOOL fClearChanges) PURE;
64 STDMETHOD(GetPalette)(THIS_ HPALETTE *phpal) PURE;
65 STDMETHOD(Draw)(THIS_ HDC hdc,struct tagRECT *prcBounds) PURE;
66 STDMETHOD(Tile)(THIS_ HDC hdc,struct tagPOINT *pptBackOrg,struct tagRECT *prcClip,struct tagSIZE *psize) PURE;
67 STDMETHOD(StretchBlt)(THIS_ HDC hdc,int dstX,int dstY,int dstXE,int dstYE,int srcX,int srcY,int srcXE,int srcYE,DWORD dwROP) PURE;
68};
69
70#ifdef COBJMACROS
71#define IImgCtx_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
72#define IImgCtx_AddRef(This) (This)->lpVtbl->AddRef(This)
73#define IImgCtx_Release(This) (This)->lpVtbl->Release(This)
74#define IImgCtx_Load(This,pszUrl,dwFlags) (This)->lpVtbl->Load(This,pszUrl,dwFlags)
75#define IImgCtx_Draw(This,hdc,prcBounds) (This)->lpVtbl->Draw(This,hdc,prcBounds)
76#define IImgCtx_Tile(This,hdc,pptBackOrg,prcClip,psize) (This)->lpVtbl->Tile(This,hdc,pptBackOrg,prcClip,psize)
77#define IImgCtx_GetUpdateRects(This,prc,prcImg,pcrc) (This)->lpVtbl->GetUpdateRects(This,prc,prcImg,pcrc)
78#define IImgCtx_GetStateInfo(This,pulState,psize,fClearChanges) (This)->lpVtbl->GetStateInfo(This,pulState,psize,fClearChanges)
79#define IImgCtx_GetPalette(This,phpal) (This)->lpVtbl->GetPalette(This,phpal)
80#define IImgCtx_SelectChanges(This,ulChgOn,ulChgOff,fSignal) (This)->lpVtbl->SelectChanges(This,ulChgOn,ulChgOff,fSignal)
81#define IImgCtx_SetCallback(This,pfnCallback,pvPrivateData) (This)->lpVtbl->SetCallback(This,pfnCallback,pvPrivateData)
82#define IImgCtx_Disconnect(This) (This)->lpVtbl->Disconnect(This)
83#define IImgCtx_StretchBlt(This,hdc,dstX,dstY,dstXE,dstYE,srcX,srcY,srcXE,srcYE,dwROP) (This)->lpVtbl->StretchBlt(This,hdc,dstX,dstY,dstXE,dstYE,srcX,srcY,srcXE,srcYE,dwROP)
84#endif
85
86DEFINE_GUID(CLSID_IImgCtx,0x3050f3d6,0x98b5,0x11cf,0xbb,0x82,0x00,0xaa,0x00,0xbd,0xce,0x0b);
87#endif
Note: See TracBrowser for help on using the repository browser.