[seed] cairo: Define cairo_format_t enum
- From: Robert Carr <racarr src gnome org>
- To: svn-commits-list gnome org
- Subject: [seed] cairo: Define cairo_format_t enum
- Date: Thu, 14 May 2009 04:01:56 -0400 (EDT)
commit 59c1a36e47aeab872f5ae290f6165b2fe050e922
Author: Robert Carr <racarr svn gnome org>
Date: Thu May 14 04:00:33 2009 -0400
cairo: Define cairo_format_t enum
---
modules/cairo/seed-cairo-enums.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/modules/cairo/seed-cairo-enums.c b/modules/cairo/seed-cairo-enums.c
index 6d2d9c0..614fbe8 100644
--- a/modules/cairo/seed-cairo-enums.c
+++ b/modules/cairo/seed-cairo-enums.c
@@ -8,11 +8,18 @@ void
seed_define_cairo_enums (SeedContext ctx,
SeedObject namespace_ref)
{
- SeedObject content_holder;
+ SeedObject content_holder, format_holder;
content_holder = seed_make_object (ctx, NULL, NULL);
seed_object_set_property (ctx, namespace_ref, "Content", content_holder);
ENUM_MEMBER(content_holder, "COLOR", CAIRO_CONTENT_COLOR);
ENUM_MEMBER(content_holder, "ALPHA", CAIRO_CONTENT_ALPHA);
ENUM_MEMBER(content_holder, "COLOR_ALPHA", CAIRO_CONTENT_COLOR_ALPHA);
+
+ format_holder = seed_make_object (ctx, NULL, NULL);
+ seed_object_set_property (ctx, namespace_ref, "Format", format_holder);
+ ENUM_MEMBER(format_holder, "ARGB32", CAIRO_FORMAT_ARGB32);
+ ENUM_MEMBER(format_holder, "RGB23", CAIRO_FORMAT_RGB24);
+ ENUM_MEMBER(format_holder, "A8", CAIRO_FORMAT_A8);
+ ENUM_MEMBER(format_holder, "A1", CAIRO_FORMAT_A1);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]