[gjs/cairo: 5/5] [cairo] Add cairo.Formats object enum
- From: Johan Dahlin <johan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/cairo: 5/5] [cairo] Add cairo.Formats object enum
- Date: Wed, 17 Feb 2010 22:10:22 +0000 (UTC)
commit 06b65522b8d4754493932e56648f0ad812168f5e
Author: Johan Dahlin <johan gnome org>
Date: Wed Feb 17 20:09:25 2010 -0200
[cairo] Add cairo.Formats object enum
modules/cairo.js | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/modules/cairo.js b/modules/cairo.js
index 3ba2e3a..d26ec4c 100644
--- a/modules/cairo.js
+++ b/modules/cairo.js
@@ -20,6 +20,15 @@
const Lang = imports.lang;
+const Format = {
+ ARGB32 : 0,
+ RGB24 : 1,
+ A8 : 2,
+ A1 : 3,
+ // The value of 4 is reserved by a deprecated enum value
+ RGB16_565: 5
+};
+
// 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]