summaryrefslogtreecommitdiff
path: root/src/cairo.h
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2005-06-10 23:47:23 +0000
committerCarl Worth <cworth@cworth.org>2005-06-10 23:47:23 +0000
commitff2dee65bdff0e3bce239a6617b7acb680d5ad27 (patch)
tree4331ffd1503dbd09453adbf552506c8db19be07c /src/cairo.h
parent4c37790a22a029332d182dc21bff4a72a976bbf8 (diff)
Pull the enum out from inside cairo_path_data_t and give it a name of cairo_path_data_type_t. This allows C++ programs to see the enum values. It also allows variables to be declared of this type for manually constructing a cairo_path_t.
Diffstat (limited to 'src/cairo.h')
-rw-r--r--src/cairo.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/cairo.h b/src/cairo.h
index 61119c25f..ec81f4c9f 100644
--- a/src/cairo.h
+++ b/src/cairo.h
@@ -825,14 +825,16 @@ cairo_get_target (cairo_t *cr);
* cairo_path_destroy (path);
* </programlisting></informalexample>
*/
+typedef enum cairo_path_data_type {
+ CAIRO_PATH_MOVE_TO,
+ CAIRO_PATH_LINE_TO,
+ CAIRO_PATH_CURVE_TO,
+ CAIRO_PATH_CLOSE_PATH
+} cairo_path_data_type_t;
+
typedef union {
struct {
- enum {
- CAIRO_PATH_MOVE_TO,
- CAIRO_PATH_LINE_TO,
- CAIRO_PATH_CURVE_TO,
- CAIRO_PATH_CLOSE_PATH
- } type;
+ cairo_path_data_type_t type;
int length;
} header;
struct {