iimgctx.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. typedef void (CALLBACK *PFNIMGCTXCALLBACK)(void *,void *);
  12. #ifdef __cplusplus
  13. }
  14. #endif
  15. #define IMGCHG_SIZE 0x0001
  16. #define IMGCHG_VIEW 0x0002
  17. #define IMGCHG_COMPLETE 0x0004
  18. #define IMGCHG_ANIMATE 0x0008
  19. #define IMGCHG_MASK 0x000F
  20. #define IMGLOAD_NOTLOADED 0x00100000
  21. #define IMGLOAD_LOADING 0x00200000
  22. #define IMGLOAD_STOPPED 0x00400000
  23. #define IMGLOAD_ERROR 0x00800000
  24. #define IMGLOAD_COMPLETE 0x01000000
  25. #define IMGLOAD_MASK 0x01F00000
  26. #define IMGBITS_NONE 0x02000000
  27. #define IMGBITS_PARTIAL 0x04000000
  28. #define IMGBITS_TOTAL 0x08000000
  29. #define IMGBITS_MASK 0x0E000000
  30. #define IMGANIM_ANIMATED 0x10000000
  31. #define IMGANIM_MASK 0x10000000
  32. #define IMGTRANS_OPAQUE 0x20000000
  33. #define IMGTRANS_MASK 0x20000000
  34. #define DWN_COLORMODE 0x0000003F
  35. #define DWN_DOWNLOADONLY 0x00000040
  36. #define DWN_FORCEDITHER 0x00000080
  37. #define DWN_RAWIMAGE 0x00000100
  38. #define DWN_MIRRORIMAGE 0x00000200
  39. #undef INTERFACE
  40. #define INTERFACE IImgCtx
  41. DEFINE_GUID(IID_IImgCtx,0x3050f3d7,0x98b5,0x11cf,0xbb,0x82,0x00,0xaa,0x00,0xbd,0xce,0x0b);
  42. DECLARE_INTERFACE_(IImgCtx,IUnknown) {
  43. #ifndef NO_BASEINTERFACE_FUNCS
  44. STDMETHOD(QueryInterface)(THIS_ REFIID riid,LPVOID *ppvObj) PURE;
  45. STDMETHOD_(ULONG,AddRef)(THIS) PURE;
  46. STDMETHOD_(ULONG,Release)(THIS) PURE;
  47. #endif
  48. STDMETHOD(Load)(THIS_ LPCWSTR pszUrl,DWORD dwFlags) PURE;
  49. STDMETHOD(SelectChanges)(THIS_ ULONG ulChgOn,ULONG ulChgOff,WINBOOL fSignal) PURE;
  50. STDMETHOD(SetCallback)(THIS_ PFNIMGCTXCALLBACK pfn,void *pvPrivateData) PURE;
  51. STDMETHOD(Disconnect)(THIS) PURE;
  52. STDMETHOD(GetUpdateRects)(THIS_ struct tagRECT *prc,struct tagRECT *prcImg,__LONG32 *pcrc) PURE;
  53. STDMETHOD(GetStateInfo)(THIS_ ULONG *pulState,struct tagSIZE *psize,WINBOOL fClearChanges) PURE;
  54. STDMETHOD(GetPalette)(THIS_ HPALETTE *phpal) PURE;
  55. STDMETHOD(Draw)(THIS_ HDC hdc,struct tagRECT *prcBounds) PURE;
  56. STDMETHOD(Tile)(THIS_ HDC hdc,struct tagPOINT *pptBackOrg,struct tagRECT *prcClip,struct tagSIZE *psize) PURE;
  57. STDMETHOD(StretchBlt)(THIS_ HDC hdc,int dstX,int dstY,int dstXE,int dstYE,int srcX,int srcY,int srcXE,int srcYE,DWORD dwROP) PURE;
  58. };
  59. #ifdef COBJMACROS
  60. #define IImgCtx_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  61. #define IImgCtx_AddRef(This) (This)->lpVtbl->AddRef(This)
  62. #define IImgCtx_Release(This) (This)->lpVtbl->Release(This)
  63. #define IImgCtx_Load(This,pszUrl,dwFlags) (This)->lpVtbl->Load(This,pszUrl,dwFlags)
  64. #define IImgCtx_Draw(This,hdc,prcBounds) (This)->lpVtbl->Draw(This,hdc,prcBounds)
  65. #define IImgCtx_Tile(This,hdc,pptBackOrg,prcClip,psize) (This)->lpVtbl->Tile(This,hdc,pptBackOrg,prcClip,psize)
  66. #define IImgCtx_GetUpdateRects(This,prc,prcImg,pcrc) (This)->lpVtbl->GetUpdateRects(This,prc,prcImg,pcrc)
  67. #define IImgCtx_GetStateInfo(This,pulState,psize,fClearChanges) (This)->lpVtbl->GetStateInfo(This,pulState,psize,fClearChanges)
  68. #define IImgCtx_GetPalette(This,phpal) (This)->lpVtbl->GetPalette(This,phpal)
  69. #define IImgCtx_SelectChanges(This,ulChgOn,ulChgOff,fSignal) (This)->lpVtbl->SelectChanges(This,ulChgOn,ulChgOff,fSignal)
  70. #define IImgCtx_SetCallback(This,pfnCallback,pvPrivateData) (This)->lpVtbl->SetCallback(This,pfnCallback,pvPrivateData)
  71. #define IImgCtx_Disconnect(This) (This)->lpVtbl->Disconnect(This)
  72. #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)
  73. #endif
  74. DEFINE_GUID(CLSID_IImgCtx,0x3050f3d6,0x98b5,0x11cf,0xbb,0x82,0x00,0xaa,0x00,0xbd,0xce,0x0b);
  75. #endif