[perl-Cairo] Add support for missing operator types



commit 79ea0ad095f2280e2fb8333d2ca1ccfd8dd1a3fe
Author: Torsten SchÃnfeld <kaffeetisch gmx de>
Date:   Wed Aug 24 21:18:33 2011 +0200

    Add support for missing operator types
    
    They were added in cairo 1.10 but were missing from the bindings.  Patch
    by Lian Wan Situ.
    
    https://rt.cpan.org/Ticket/Display.html?id=70451

 Makefile.PL |   19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/Makefile.PL b/Makefile.PL
index 1a7f2f8..075f501 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -342,7 +342,24 @@ if ($have_cairo_1_10) {
 			   CAIRO_SURFACE_TYPE_TEE
 			   CAIRO_SURFACE_TYPE_XML
 			   CAIRO_SURFACE_TYPE_SKIA
-			   CAIRO_SURFACE_TYPE_SUBSURFACE/]);
+			   CAIRO_SURFACE_TYPE_SUBSURFACE/],
+		cairo_operator_t => [
+			qw/CAIRO_OPERATOR_MULTIPLY
+			   CAIRO_OPERATOR_SCREEN
+			   CAIRO_OPERATOR_OVERLAY
+			   CAIRO_OPERATOR_DARKEN
+			   CAIRO_OPERATOR_LIGHTEN
+			   CAIRO_OPERATOR_COLOR_DODGE
+			   CAIRO_OPERATOR_COLOR_BURN
+			   CAIRO_OPERATOR_HARD_LIGHT
+			   CAIRO_OPERATOR_SOFT_LIGHT
+			   CAIRO_OPERATOR_DIFFERENCE
+			   CAIRO_OPERATOR_EXCLUSION
+			   CAIRO_OPERATOR_HSL_HUE
+			   CAIRO_OPERATOR_HSL_SATURATION
+			   CAIRO_OPERATOR_HSL_COLOR
+			   CAIRO_OPERATOR_HSL_LUMINOSITY/],
+	);
 
 	$enums{cairo_pdf_version_t} = [qw/
 		CAIRO_PDF_VERSION_



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]