X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=specs%2Fd2d1.py;h=e532e4688a70122b3027210934c7c5b59881c064;hb=HEAD;hp=7fe9b65912fa3c571b4fc6862c184dea4a892868;hpb=43aa19fc1cf6979328dd6a1f6bcf33f74792faec;p=apitrace diff --git a/specs/d2d1.py b/specs/d2d1.py index 7fe9b65..e532e46 100644 --- a/specs/d2d1.py +++ b/specs/d2d1.py @@ -622,12 +622,14 @@ ID2D1Factory.methods += [ StdMethod(HRESULT, "CreateDCRenderTarget", [(Pointer(Const(D2D1_RENDER_TARGET_PROPERTIES)), "renderTargetProperties"), Out(Pointer(ObjPointer(ID2D1DCRenderTarget)), "dcRenderTarget")]), ] -d2d1 = API("d2d1") -d2d1.addInterface(ID2D1Factory) +d2d1 = Module("d2d1") +d2d1.addInterfaces([ + ID2D1Factory +]) d2d1.addFunctions([ - StdFunction(HRESULT, "D2D1CreateFactory", [(D2D1_FACTORY_TYPE, "factoryType"), (REFIID, "riid"), (Pointer(Const(D2D1_FACTORY_OPTIONS)), "pFactoryOptions"), Out(Pointer(OpaquePointer(Void)), "ppIFactory")]), + StdFunction(HRESULT, "D2D1CreateFactory", [(D2D1_FACTORY_TYPE, "factoryType"), (REFIID, "riid"), (Pointer(Const(D2D1_FACTORY_OPTIONS)), "pFactoryOptions"), Out(Pointer(ObjPointer(Void)), "ppIFactory")]), StdFunction(Void, "D2D1MakeRotateMatrix", [(FLOAT, "angle"), (D2D1_POINT_2F, "center"), Out(Pointer(D2D1_MATRIX_3X2_F), "matrix")]), StdFunction(Void, "D2D1MakeSkewMatrix", [(FLOAT, "angleX"), (FLOAT, "angleY"), (D2D1_POINT_2F, "center"), Out(Pointer(D2D1_MATRIX_3X2_F), "matrix")]), StdFunction(BOOL, "D2D1IsMatrixInvertible", [(Pointer(Const(D2D1_MATRIX_3X2_F)), "matrix")]), - StdFunction(BOOL, "D2D1InvertMatrix", [Out(Pointer(D2D1_MATRIX_3X2_F), "matrix")]), + StdFunction(BOOL, "D2D1InvertMatrix", [InOut(Pointer(D2D1_MATRIX_3X2_F), "matrix")]), ])