mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-23 21:20:41 +01:00
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.
This commit is contained in:
parent
4c37790a22
commit
ff2dee65bd
2 changed files with 15 additions and 6 deletions
|
|
@ -1,3 +1,10 @@
|
|||
2005-06-10 Carl Worth <cworth@cworth.org>
|
||||
|
||||
* src/cairo.h: 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.
|
||||
|
||||
2005-06-10 Carl Worth <cworth@cworth.org>
|
||||
|
||||
* ROADMAP: Add 'consistent error handling' to 1.0 roadmap. (This
|
||||
|
|
|
|||
14
src/cairo.h
14
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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue