D bindings to the GraphicsMagick library.
Révision | 596ad613732bf22ca5c296b1a2bcaabfeb3c86c3 (tree) |
---|---|
l'heure | 2023-06-25 13:57:36 |
Auteur | Mio <stigma@disr...> |
Commiter | Mio |
[graphicsmagick] render in -> const scope
@@ -348,49 +348,49 @@ version (GMagick_Static) | ||
348 | 348 | { |
349 | 349 | @system @nogc nothrow extern (C): |
350 | 350 | |
351 | - char** GetTypeList(in char*, c_ulong*); | |
351 | + char** GetTypeList(const scope char*, c_ulong*); | |
352 | 352 | |
353 | - const(TypeInfo)* GetTypeInfo(in char*, ExceptionInfo*); | |
354 | - const(TypeInfo)* GetTypeInfoByFamily(in char*, in StyleType, in StretchType, | |
355 | - in c_ulong, ExceptionInfo*); | |
353 | + const(TypeInfo)* GetTypeInfo(const scope char*, ExceptionInfo*); | |
354 | + const(TypeInfo)* GetTypeInfoByFamily(const scope char*, const scope StyleType, const scope StretchType, | |
355 | + const scope c_ulong, ExceptionInfo*); | |
356 | 356 | |
357 | - DrawInfo* CloneDrawInfo(in ImageInfo*, in DrawInfo*); | |
357 | + DrawInfo* CloneDrawInfo(const scope ImageInfo*, const scope DrawInfo*); | |
358 | 358 | |
359 | - MagickPassFail AnnotateImage(Image*, in DrawInfo*); | |
360 | - MagickPassFail DrawAffineImage(Image*, in Image*, in AffineMatrix*); | |
361 | - MagickPassFail DrawClipPath(Image*, in DrawInfo*, in char*); | |
362 | - MagickPassFail DrawImage(Image*, in DrawInfo*); | |
363 | - MagickPassFail DrawPatternPath(Image*, in DrawInfo*, in char*, Image**); | |
364 | - MagickPassFail GetTypeMetrics(Image*, in DrawInfo*, TypeMetric*); | |
359 | + MagickPassFail AnnotateImage(Image*, const scope DrawInfo*); | |
360 | + MagickPassFail DrawAffineImage(Image*, const scope Image*, const scope AffineMatrix*); | |
361 | + MagickPassFail DrawClipPath(Image*, const scope DrawInfo*, const scope char*); | |
362 | + MagickPassFail DrawImage(Image*, const scope DrawInfo*); | |
363 | + MagickPassFail DrawPatternPath(Image*, const scope DrawInfo*, const scope char*, Image**); | |
364 | + MagickPassFail GetTypeMetrics(Image*, const scope DrawInfo*, TypeMetric*); | |
365 | 365 | MagickPassFail ListTypeInfo(FILE*, ExceptionInfo*); |
366 | 366 | |
367 | 367 | void DestroyDrawInfo(DrawInfo*); |
368 | 368 | void DestroyTypeInfo(); |
369 | - void GetDrawInfo(in ImageInfo*, DrawInfo*); | |
369 | + void GetDrawInfo(const scope ImageInfo*, DrawInfo*); | |
370 | 370 | } // version (GMagick_Static) |
371 | 371 | else |
372 | 372 | { |
373 | 373 | @system @nogc nothrow extern (C) |
374 | 374 | { |
375 | - alias mGetTypeList = char** function(in char*, c_ulong*); | |
375 | + alias mGetTypeList = char** function(const scope char*, c_ulong*); | |
376 | 376 | |
377 | - alias mGetTypeInfo = const(TypeInfo)* function(in char*, ExceptionInfo*); | |
378 | - alias mGetTypeInfoByFamily = const(TypeInfo)* function(in char*, in StyleType, in StretchType, | |
379 | - in c_ulong, ExceptionInfo*); | |
377 | + alias mGetTypeInfo = const(TypeInfo)* function(const scope char*, ExceptionInfo*); | |
378 | + alias mGetTypeInfoByFamily = const(TypeInfo)* function(const scope char*, const scope StyleType, const scope StretchType, | |
379 | + const scope c_ulong, ExceptionInfo*); | |
380 | 380 | |
381 | - alias mCloneDrawInfo = DrawInfo* function(in ImageInfo*, in DrawInfo*); | |
381 | + alias mCloneDrawInfo = DrawInfo* function(const scope ImageInfo*, const scope DrawInfo*); | |
382 | 382 | |
383 | - alias mAnnotateImage = MagickPassFail function(Image*, in DrawInfo*); | |
384 | - alias mDrawAffineImage = MagickPassFail function(Image*, in Image*, in AffineMatrix*); | |
385 | - alias mDrawClipPath = MagickPassFail function(Image*, in DrawInfo*, in char*); | |
386 | - alias mDrawImage = MagickPassFail function(Image*, in DrawInfo*); | |
387 | - alias mDrawPatternPath = MagickPassFail function(Image*, in DrawInfo*, in char*, Image**); | |
388 | - alias mGetTypeMetrics = MagickPassFail function(Image*, in DrawInfo*, TypeMetric*); | |
383 | + alias mAnnotateImage = MagickPassFail function(Image*, const scope DrawInfo*); | |
384 | + alias mDrawAffineImage = MagickPassFail function(Image*, const scope Image*, const scope AffineMatrix*); | |
385 | + alias mDrawClipPath = MagickPassFail function(Image*, const scope DrawInfo*, const scope char*); | |
386 | + alias mDrawImage = MagickPassFail function(Image*, const scope DrawInfo*); | |
387 | + alias mDrawPatternPath = MagickPassFail function(Image*, const scope DrawInfo*, const scope char*, Image**); | |
388 | + alias mGetTypeMetrics = MagickPassFail function(Image*, const scope DrawInfo*, TypeMetric*); | |
389 | 389 | alias mListTypeInfo = MagickPassFail function(FILE*, ExceptionInfo*); |
390 | 390 | |
391 | 391 | alias mDestroyDrawInfo = void function(DrawInfo*); |
392 | 392 | alias mDestroyTypeInfo = void function(); |
393 | - alias mGetDrawInfo = void function(in ImageInfo*, DrawInfo*); | |
393 | + alias mGetDrawInfo = void function(const scope ImageInfo*, DrawInfo*); | |
394 | 394 | } |
395 | 395 | |
396 | 396 | __gshared |