[gjs/cairo: 8/18] [cairo] Add cairo enums



commit 36a48aa6530065e939eaa47d977f259302221264
Author: Johan Dahlin <johan gnome org>
Date:   Wed Feb 17 20:09:25 2010 -0200

    [cairo] Add cairo enums

 modules/cairo.js |   61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 61 insertions(+), 0 deletions(-)
---
diff --git a/modules/cairo.js b/modules/cairo.js
index 3ba2e3a..a6698f9 100644
--- a/modules/cairo.js
+++ b/modules/cairo.js
@@ -20,6 +20,67 @@
 
 const Lang = imports.lang;
 
+const Antialias = {
+    DEFAULT: 0,
+    NONE: 1,
+    GRAY: 2,
+    SUBPIXEL: 3
+};
+
+const FillRule = {
+    WINDING: 0,
+    EVEN_ODD: 1
+};
+
+const FontSlant = {
+    NORMAL: 0,
+    ITALIC: 1,
+    OBLIQUE: 2
+};
+
+const FontWeight = {
+    NORMAL : 0,
+    BOLD : 1
+};
+
+const Format = {
+    ARGB32 : 0,
+    RGB24 : 1,
+    A8 : 2,
+    A1 : 3,
+    // The value of 4 is reserved by a deprecated enum value
+    RGB16_565: 5
+};
+
+const LineCap = {
+    BUTT: 0,
+    ROUND: 1,
+    SQUASH: 2
+};
+
+const LineJoin = {
+    MITER: 0,
+    BOUND: 1,
+    BEVEL: 2
+};
+
+const Operator = {
+    CLEAR: 0,
+    SOURCE: 1,
+    OVER: 2,
+    IN : 3,
+    OUT : 4,
+    ATOP : 5,
+    DEST : 6,
+    DEST_OVER : 7,
+    DEST_IN : 8,
+    DEST_OUT : 9,
+    DEST_ATOP : 10,
+    XOR : 11,
+    ADD : 12,
+    SATURATE : 13
+};
+
 // Merge stuff defined in native code
 Lang.copyProperties(imports.cairoNative, this);
 



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