| 94 | |
| 95 | |
| 96 | class IViewObject(IUnknown): |
| 97 | _case_insensitive_ = False |
| 98 | _iid_ = GUID("{0000010D-0000-0000-C000-000000000046}") |
| 99 | _idlflags_ = [] |
| 100 | |
| 101 | _methods_ = [ |
| 102 | COMMETHOD( |
| 103 | [], |
| 104 | HRESULT, |
| 105 | "Draw", |
| 106 | (["in"], c_ulong, "dwDrawAspect"), |
| 107 | (["in"], c_int, "lindex"), |
| 108 | (["in"], c_void_p, "pvAspect"), |
| 109 | (["in"], POINTER(tagDVTARGETDEVICE), "ptd"), |
| 110 | (["in"], HDC, "hdcTargetDev"), |
| 111 | (["in"], HDC, "hdcDraw"), |
| 112 | (["in"], POINTER(_RECTL), "lprcBounds"), |
| 113 | (["in"], POINTER(_RECTL), "lprcWBounds"), |
| 114 | (["in"], c_void_p, "pfnContinue"), # a pointer to a callback function |
| 115 | (["in"], c_ulong, "dwContinue"), |
| 116 | ), |
| 117 | COMMETHOD( |
| 118 | [], |
| 119 | HRESULT, |
| 120 | "GetColorSet", |
| 121 | (["in"], c_ulong, "dwDrawAspect"), |
| 122 | (["in"], c_int, "lindex"), |
| 123 | (["in"], c_void_p, "pvAspect"), |
| 124 | (["in"], POINTER(tagDVTARGETDEVICE), "ptd"), |
| 125 | (["in"], HDC, "hicTargetDev"), |
| 126 | (["out"], POINTER(POINTER(tagLOGPALETTE)), "ppColorSet"), |
| 127 | ), |
| 128 | COMMETHOD( |
| 129 | [], |
| 130 | HRESULT, |
| 131 | "Freeze", |
| 132 | (["in"], c_ulong, "dwDrawAspect"), |
| 133 | (["in"], c_int, "lindex"), |
| 134 | (["in"], c_void_p, "pvAspect"), |
| 135 | (["out"], POINTER(c_ulong), "pdwFreeze"), |
| 136 | ), |
| 137 | COMMETHOD([], HRESULT, "Unfreeze", (["in"], c_ulong, "dwFreeze")), |
| 138 | COMMETHOD( |
| 139 | [], |
| 140 | HRESULT, |
| 141 | "SetAdvise", |
| 142 | (["in"], c_ulong, "dwAspect"), |
| 143 | (["in"], c_ulong, "advf"), |
| 144 | (["in"], POINTER(IAdviseSink), "pAdvSink"), |
| 145 | ), |
| 146 | COMMETHOD( |
| 147 | [], |
| 148 | HRESULT, |
| 149 | "GetAdvise", |
| 150 | (["out"], POINTER(c_ulong), "pdwAspect"), |
| 151 | (["out"], POINTER(c_ulong), "pAdvf"), |
| 152 | (["out"], POINTER(POINTER(IAdviseSink)), "ppAdvSink"), |
| 153 | ), |