| adg-arrow-style.h | | adg-arrow-style.h | |
| /* ADG - Automatic Drawing Generation | | /* ADG - Automatic Drawing Generation | |
|
| * Copyright (C) 2007-2008, Nicola Fontana <ntd at entidi.it> | | * Copyright (C) 2007,2008,2009 Nicola Fontana <ntd at entidi.it> | |
| * | | * | |
| * This library is free software; you can redistribute it and/or | | * This library is free software; you can redistribute it and/or | |
| * modify it under the terms of the GNU Lesser General Public | | * modify it under the terms of the GNU Lesser General Public | |
| * License as published by the Free Software Foundation; either | | * License as published by the Free Software Foundation; either | |
| * version 2 of the License, or (at your option) any later version. | | * version 2 of the License, or (at your option) any later version. | |
| * | | * | |
| * This library is distributed in the hope that it will be useful, | | * This library is distributed in the hope that it will be useful, | |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| * Lesser General Public License for more details. | | * Lesser General Public License for more details. | |
| | | | |
| skipping to change at line 45 | | skipping to change at line 45 | |
| #define ADG_ARROW_STYLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),
ADG_TYPE_ARROW_STYLE, AdgArrowStyleClass)) | | #define ADG_ARROW_STYLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),
ADG_TYPE_ARROW_STYLE, AdgArrowStyleClass)) | |
| | | | |
| typedef struct _AdgArrowStyle AdgArrowStyle; | | typedef struct _AdgArrowStyle AdgArrowStyle; | |
| typedef struct _AdgArrowStyleClass AdgArrowStyleClass; | | typedef struct _AdgArrowStyleClass AdgArrowStyleClass; | |
| typedef struct _AdgArrowStylePrivate AdgArrowStylePrivate; | | typedef struct _AdgArrowStylePrivate AdgArrowStylePrivate; | |
| | | | |
| /** | | /** | |
| * AdgArrowRenderer: | | * AdgArrowRenderer: | |
| * @arrow_style: an #AdgArrowStyle object | | * @arrow_style: an #AdgArrowStyle object | |
| * @cr: a #cairo_t drawing context | | * @cr: a #cairo_t drawing context | |
|
| * @segment: the CpmlPath segment where rendering the arrow | | * @segment: the #CpmlSegment where rendering the arrow | |
| * | | * | |
| * Callback that renders a custom arrow at the start position in @segment. | | * Callback that renders a custom arrow at the start position in @segment. | |
| * If you need an ending arrow, you should reverse the segment and recall | | * If you need an ending arrow, you should reverse the segment and recall | |
| * this function. | | * this function. | |
| **/ | | **/ | |
| typedef void (*AdgArrowRenderer) (AdgArrowStyle *arrow_styl
e, | | typedef void (*AdgArrowRenderer) (AdgArrowStyle *arrow_styl
e, | |
| cairo_t *cr, | | cairo_t *cr, | |
|
| CpmlPath *segment); | | CpmlSegment *segment); | |
| | | | |
| struct _AdgArrowStyle { | | struct _AdgArrowStyle { | |
| AdgStyle style; | | AdgStyle style; | |
| /*< private >*/ | | /*< private >*/ | |
| AdgArrowStylePrivate *priv; | | AdgArrowStylePrivate *priv; | |
| }; | | }; | |
| | | | |
| struct _AdgArrowStyleClass { | | struct _AdgArrowStyleClass { | |
| AdgStyleClass parent_class; | | AdgStyleClass parent_class; | |
| }; | | }; | |
| | | | |
| GType adg_arrow_style_get_type (void) G_GNUC_CONST; | | GType adg_arrow_style_get_type (void) G_GNUC_CONST; | |
| AdgStyleSlot adg_arrow_style_get_slot (void) G_GNUC_CONST; | | AdgStyleSlot adg_arrow_style_get_slot (void) G_GNUC_CONST; | |
| AdgStyle * adg_arrow_style_new (void); | | AdgStyle * adg_arrow_style_new (void); | |
| | | | |
| void adg_arrow_style_render (AdgArrowStyle *arrow_styl
e, | | void adg_arrow_style_render (AdgArrowStyle *arrow_styl
e, | |
| cairo_t *cr, | | cairo_t *cr, | |
|
| CpmlPath *segment); | | CpmlSegment *segment); | |
| | | | |
| gdouble adg_arrow_style_get_size (AdgArrowStyle *arrow_styl
e); | | gdouble adg_arrow_style_get_size (AdgArrowStyle *arrow_styl
e); | |
| void adg_arrow_style_set_size (AdgArrowStyle *arrow_styl
e, | | void adg_arrow_style_set_size (AdgArrowStyle *arrow_styl
e, | |
| gdouble size); | | gdouble size); | |
| gdouble adg_arrow_style_get_angle (AdgArrowStyle *arrow_styl
e); | | gdouble adg_arrow_style_get_angle (AdgArrowStyle *arrow_styl
e); | |
| void adg_arrow_style_set_angle (AdgArrowStyle *arrow_styl
e, | | void adg_arrow_style_set_angle (AdgArrowStyle *arrow_styl
e, | |
| gdouble angle); | | gdouble angle); | |
| gdouble adg_arrow_style_get_margin (AdgArrowStyle *arrow_styl
e); | | gdouble adg_arrow_style_get_margin (AdgArrowStyle *arrow_styl
e); | |
| void adg_arrow_style_set_margin (AdgArrowStyle *arrow_styl
e, | | void adg_arrow_style_set_margin (AdgArrowStyle *arrow_styl
e, | |
| gdouble margin); | | gdouble margin); | |
| | | | |
End of changes. 4 change blocks. |
| 4 lines changed or deleted | | 4 lines changed or added | |
|
| adg-entity.h | | adg-entity.h | |
| /* ADG - Automatic Drawing Generation | | /* ADG - Automatic Drawing Generation | |
|
| * Copyright (C) 2007-2008, Nicola Fontana <ntd at entidi.it> | | * Copyright (C) 2007,2008,2009 Nicola Fontana <ntd at entidi.it> | |
| * | | * | |
| * This library is free software; you can redistribute it and/or | | * This library is free software; you can redistribute it and/or | |
| * modify it under the terms of the GNU Lesser General Public | | * modify it under the terms of the GNU Lesser General Public | |
| * License as published by the Free Software Foundation; either | | * License as published by the Free Software Foundation; either | |
| * version 2 of the License, or (at your option) any later version. | | * version 2 of the License, or (at your option) any later version. | |
| * | | * | |
| * This library is distributed in the hope that it will be useful, | | * This library is distributed in the hope that it will be useful, | |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| * Lesser General Public License for more details. | | * Lesser General Public License for more details. | |
| | | | |
| skipping to change at line 25 | | skipping to change at line 25 | |
| * License along with this library; if not, write to the | | * License along with this library; if not, write to the | |
| * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | | * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | |
| * Boston, MA 02110-1301, USA. | | * Boston, MA 02110-1301, USA. | |
| */ | | */ | |
| | | | |
| #ifndef __ADG_ENTITY_H__ | | #ifndef __ADG_ENTITY_H__ | |
| #define __ADG_ENTITY_H__ | | #define __ADG_ENTITY_H__ | |
| | | | |
| #include <adg/adg-context.h> | | #include <adg/adg-context.h> | |
| #include <adg/adg-matrix.h> | | #include <adg/adg-matrix.h> | |
|
| | | #include <adg/adg-point.h> | |
| #include <adg/adg-line-style.h> | | #include <adg/adg-line-style.h> | |
| #include <adg/adg-font-style.h> | | #include <adg/adg-font-style.h> | |
| #include <adg/adg-arrow-style.h> | | #include <adg/adg-arrow-style.h> | |
| #include <adg/adg-dim-style.h> | | #include <adg/adg-dim-style.h> | |
| | | | |
| G_BEGIN_DECLS | | G_BEGIN_DECLS | |
| | | | |
| /* Forward declarations */ | | /* Forward declarations */ | |
| typedef struct _AdgCanvas AdgCanvas; | | typedef struct _AdgCanvas AdgCanvas; | |
| typedef struct _AdgContainer AdgContainer; | | typedef struct _AdgContainer AdgContainer; | |
| | | | |
| skipping to change at line 78 | | skipping to change at line 79 | |
| AdgContainer * (*get_parent) (AdgEntity *entity); | | AdgContainer * (*get_parent) (AdgEntity *entity); | |
| void (*set_parent) (AdgEntity *entity, | | void (*set_parent) (AdgEntity *entity, | |
| AdgContainer *parent); | | AdgContainer *parent); | |
| AdgContext * (*get_context) (AdgEntity *entity); | | AdgContext * (*get_context) (AdgEntity *entity); | |
| const AdgMatrix * (*get_model_matrix) (AdgEntity *entity); | | const AdgMatrix * (*get_model_matrix) (AdgEntity *entity); | |
| const AdgMatrix * (*get_paper_matrix) (AdgEntity *entity); | | const AdgMatrix * (*get_paper_matrix) (AdgEntity *entity); | |
| }; | | }; | |
| | | | |
| #define ADG_CALLBACK(f) ((AdgCallback) (f)) | | #define ADG_CALLBACK(f) ((AdgCallback) (f)) | |
| | | | |
|
| typedef void (*AdgCallback) (AdgEntity *entity, gpointer user_data); | | typedef void (*AdgCallback) (AdgEntity *entity, cairo_t *cr); | |
| | | | |
| GType adg_entity_get_type (void) G_GNUC_CONST; | | GType adg_entity_get_type (void) G_GNUC_CONST; | |
| AdgCanvas * adg_entity_get_canvas (AdgEntity *entity); | | AdgCanvas * adg_entity_get_canvas (AdgEntity *entity); | |
| | | | |
| AdgContainer * adg_entity_get_parent (AdgEntity *entity); | | AdgContainer * adg_entity_get_parent (AdgEntity *entity); | |
| void adg_entity_set_parent (AdgEntity *entity, | | void adg_entity_set_parent (AdgEntity *entity, | |
| AdgContainer *parent); | | AdgContainer *parent); | |
| void adg_entity_unparent (AdgEntity *entity); | | void adg_entity_unparent (AdgEntity *entity); | |
| void adg_entity_reparent (AdgEntity *entity, | | void adg_entity_reparent (AdgEntity *entity, | |
| AdgContainer *parent); | | AdgContainer *parent); | |
| | | | |
| skipping to change at line 111 | | skipping to change at line 112 | |
| cairo_t *cr); | | cairo_t *cr); | |
| void adg_entity_model_matrix_changed (AdgEntity *entity, | | void adg_entity_model_matrix_changed (AdgEntity *entity, | |
| const AdgMatrix*parent_mat
rix); | | const AdgMatrix*parent_mat
rix); | |
| void adg_entity_paper_matrix_changed (AdgEntity *entity, | | void adg_entity_paper_matrix_changed (AdgEntity *entity, | |
| const AdgMatrix*parent_mat
rix); | | const AdgMatrix*parent_mat
rix); | |
| AdgStyle * adg_entity_get_style (AdgEntity *entity, | | AdgStyle * adg_entity_get_style (AdgEntity *entity, | |
| AdgStyleSlot style_slot
); | | AdgStyleSlot style_slot
); | |
| void adg_entity_apply (AdgEntity *entity, | | void adg_entity_apply (AdgEntity *entity, | |
| AdgStyleSlot style_slot
, | | AdgStyleSlot style_slot
, | |
| cairo_t *cr); | | cairo_t *cr); | |
|
| | | void adg_entity_point_to_pair (AdgEntity *entity, | |
| | | const AdgPoint *point, | |
| | | AdgPair *pair, | |
| | | cairo_t *cr); | |
| | | void adg_entity_point_to_model_pair (AdgEntity *entity, | |
| | | const AdgPoint *point, | |
| | | AdgPair *pair); | |
| | | void adg_entity_point_to_paper_pair (AdgEntity *entity, | |
| | | const AdgPoint *point, | |
| | | AdgPair *pair); | |
| gboolean adg_entity_model_matrix_applied (AdgEntity *entity); | | gboolean adg_entity_model_matrix_applied (AdgEntity *entity); | |
| gboolean adg_entity_paper_matrix_applied (AdgEntity *entity); | | gboolean adg_entity_paper_matrix_applied (AdgEntity *entity); | |
| gboolean adg_entity_model_applied (AdgEntity *entity); | | gboolean adg_entity_model_applied (AdgEntity *entity); | |
| void adg_entity_invalidate (AdgEntity *entity); | | void adg_entity_invalidate (AdgEntity *entity); | |
| void adg_entity_render (AdgEntity *entity, | | void adg_entity_render (AdgEntity *entity, | |
| cairo_t *cr); | | cairo_t *cr); | |
| | | | |
| G_END_DECLS | | G_END_DECLS | |
| | | | |
| #endif /* __ADG_ENTITY_H__ */ | | #endif /* __ADG_ENTITY_H__ */ | |
| | | | |
End of changes. 4 change blocks. |
| 2 lines changed or deleted | | 13 lines changed or added | |
|
| adg-matrix.h | | adg-matrix.h | |
| /* ADG - Automatic Drawing Generation | | /* ADG - Automatic Drawing Generation | |
|
| * Copyright (C) 2007-2008, Nicola Fontana <ntd at entidi.it> | | * Copyright (C) 2007,2008,2009 Nicola Fontana <ntd at entidi.it> | |
| * | | * | |
| * This library is free software; you can redistribute it and/or | | * This library is free software; you can redistribute it and/or | |
| * modify it under the terms of the GNU Lesser General Public | | * modify it under the terms of the GNU Lesser General Public | |
| * License as published by the Free Software Foundation; either | | * License as published by the Free Software Foundation; either | |
| * version 2 of the License, or (at your option) any later version. | | * version 2 of the License, or (at your option) any later version. | |
| * | | * | |
| * This library is distributed in the hope that it will be useful, | | * This library is distributed in the hope that it will be useful, | |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| * Lesser General Public License for more details. | | * Lesser General Public License for more details. | |
| | | | |
| skipping to change at line 32 | | skipping to change at line 32 | |
| | | | |
| #include <glib-object.h> | | #include <glib-object.h> | |
| #include <cairo.h> | | #include <cairo.h> | |
| | | | |
| G_BEGIN_DECLS | | G_BEGIN_DECLS | |
| | | | |
| #define ADG_TYPE_MATRIX (adg_matrix_get_type ()) | | #define ADG_TYPE_MATRIX (adg_matrix_get_type ()) | |
| | | | |
| typedef cairo_matrix_t AdgMatrix; | | typedef cairo_matrix_t AdgMatrix; | |
| | | | |
|
| GType adg_matrix_get_type (void) G_GNUC_CONST; | | GType adg_matrix_get_type (void) G_GNUC_CONST; | |
| AdgMatrix * adg_matrix_dup (const AdgMatrix *matrix); | | AdgMatrix * adg_matrix_dup (const AdgMatrix *matrix); | |
| const AdgMatrix * adg_matrix_get_fallback (void) G_GNUC_CONST; | | const AdgMatrix*adg_matrix_get_fallback (void) G_GNUC_CONST; | |
| AdgMatrix * adg_matrix_set (AdgMatrix *matrix, | | AdgMatrix * adg_matrix_copy (AdgMatrix *matrix, | |
| const AdgMatrix *src); | | const AdgMatrix *src); | |
|
| void adg_matrix_init_null (AdgMatrix *matrix); | | void adg_matrix_init_null (AdgMatrix *matrix); | |
| gboolean adg_matrix_is_null (const AdgMatrix *matrix); | | gboolean adg_matrix_is_null (const AdgMatrix *matrix); | |
| gboolean adg_matrix_equal (const AdgMatrix *matrix1, | | gboolean adg_matrix_equal (const AdgMatrix *matrix1, | |
| const AdgMatrix *matrix2); | | const AdgMatrix *matrix2); | |
|
| | | void adg_matrix_init_reflection (AdgMatrix *matrix, | |
| | | double radians); | |
| | | | |
| G_END_DECLS | | G_END_DECLS | |
| | | | |
| #endif /* __ADG_MATRIX_H__ */ | | #endif /* __ADG_MATRIX_H__ */ | |
| | | | |
End of changes. 4 change blocks. |
| 8 lines changed or deleted | | 10 lines changed or added | |
|
| adg-pair.h | | adg-pair.h | |
| /* ADG - Automatic Drawing Generation | | /* ADG - Automatic Drawing Generation | |
|
| * Copyright (C) 2007-2008, Nicola Fontana <ntd at entidi.it> | | * Copyright (C) 2007,2008,2009 Nicola Fontana <ntd at entidi.it> | |
| * | | * | |
| * This library is free software; you can redistribute it and/or | | * This library is free software; you can redistribute it and/or | |
| * modify it under the terms of the GNU Lesser General Public | | * modify it under the terms of the GNU Lesser General Public | |
| * License as published by the Free Software Foundation; either | | * License as published by the Free Software Foundation; either | |
| * version 2 of the License, or (at your option) any later version. | | * version 2 of the License, or (at your option) any later version. | |
| * | | * | |
| * This library is distributed in the hope that it will be useful, | | * This library is distributed in the hope that it will be useful, | |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| * Lesser General Public License for more details. | | * Lesser General Public License for more details. | |
| | | | |
| skipping to change at line 28 | | skipping to change at line 28 | |
| */ | | */ | |
| | | | |
| #ifndef __ADG_PAIR_H__ | | #ifndef __ADG_PAIR_H__ | |
| #define __ADG_PAIR_H__ | | #define __ADG_PAIR_H__ | |
| | | | |
| #include <cpml/cpml.h> | | #include <cpml/cpml.h> | |
| #include <glib-object.h> | | #include <glib-object.h> | |
| | | | |
| G_BEGIN_DECLS | | G_BEGIN_DECLS | |
| | | | |
|
| #define ADG_TYPE_PAIR (adg_pair_get_type ()) | | #define ADG_TYPE_PAIR (adg_pair_get_type()) | |
| | | #define adg_pair_copy(pair,src) (cpml_pair_copy((pair), (src))) | |
| | | | |
| typedef CpmlPair AdgPair; | | typedef CpmlPair AdgPair; | |
| | | | |
| GType adg_pair_get_type (void) G_GNUC_CONST; | | GType adg_pair_get_type (void) G_GNUC_CONST; | |
| AdgPair * adg_pair_dup (const AdgPair *pair); | | AdgPair * adg_pair_dup (const AdgPair *pair); | |
| | | | |
| G_END_DECLS | | G_END_DECLS | |
| | | | |
| #endif /* __ADG_PAIR_H__ */ | | #endif /* __ADG_PAIR_H__ */ | |
| | | | |
End of changes. 2 change blocks. |
| 2 lines changed or deleted | | 3 lines changed or added | |
|
| adg-path.h | | adg-path.h | |
| /* ADG - Automatic Drawing Generation | | /* ADG - Automatic Drawing Generation | |
|
| * Copyright (C) 2007-2008, Nicola Fontana <ntd at entidi.it> | | * Copyright (C) 2007,2008,2009 Nicola Fontana <ntd at entidi.it> | |
| * | | * | |
| * This library is free software; you can redistribute it and/or | | * This library is free software; you can redistribute it and/or | |
|
| * modify it under the terms of the GNU Lesser General Public | | * modify it under the terms of the GNU Library General Public | |
| * License as published by the Free Software Foundation; either | | * License as published by the Free Software Foundation; either | |
| * version 2 of the License, or (at your option) any later version. | | * version 2 of the License, or (at your option) any later version. | |
| * | | * | |
| * This library is distributed in the hope that it will be useful, | | * This library is distributed in the hope that it will be useful, | |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
|
| * Lesser General Public License for more details. | | * Library General Public License for more details. | |
| * | | * | |
| * You should have received a copy of the GNU Lesser General Public | | * You should have received a copy of the GNU Lesser General Public | |
| * License along with this library; if not, write to the | | * License along with this library; if not, write to the | |
|
| * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
| * Boston, MA 02110-1301, USA. | | * Boston, MA 02111-1307, USA. | |
| */ | | */ | |
| | | | |
| #ifndef __ADG_PATH_H__ | | #ifndef __ADG_PATH_H__ | |
| #define __ADG_PATH_H__ | | #define __ADG_PATH_H__ | |
| | | | |
| #include <adg/adg-entity.h> | | #include <adg/adg-entity.h> | |
| | | | |
| G_BEGIN_DECLS | | G_BEGIN_DECLS | |
| | | | |
| #define ADG_TYPE_PATH (adg_path_get_type ()) | | #define ADG_TYPE_PATH (adg_path_get_type ()) | |
| | | | |
| skipping to change at line 39 | | skipping to change at line 39 | |
| #define ADG_PATH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ADG_TY
PE_PATH, AdgPathClass)) | | #define ADG_PATH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ADG_TY
PE_PATH, AdgPathClass)) | |
| #define ADG_IS_PATH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ADG_T
YPE_PATH)) | | #define ADG_IS_PATH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ADG_T
YPE_PATH)) | |
| #define ADG_IS_PATH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ADG_TY
PE_PATH)) | | #define ADG_IS_PATH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ADG_TY
PE_PATH)) | |
| #define ADG_PATH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ADG_TY
PE_PATH, AdgPathClass)) | | #define ADG_PATH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ADG_TY
PE_PATH, AdgPathClass)) | |
| | | | |
| typedef struct _AdgPath AdgPath; | | typedef struct _AdgPath AdgPath; | |
| typedef struct _AdgPathClass AdgPathClass; | | typedef struct _AdgPathClass AdgPathClass; | |
| typedef struct _AdgPathPrivate AdgPathPrivate; | | typedef struct _AdgPathPrivate AdgPathPrivate; | |
| | | | |
| struct _AdgPath { | | struct _AdgPath { | |
|
| AdgEntity entity; | | AdgEntity entity; | |
| | | | |
| /*< private >*/ | | /*< private >*/ | |
|
| AdgPathPrivate *priv; | | AdgPathPrivate *priv; | |
| }; | | }; | |
| | | | |
| struct _AdgPathClass { | | struct _AdgPathClass { | |
|
| AdgEntityClass parent_class; | | AdgEntityClass parent_class; | |
| | | | |
| | | /* Virtual table */ | |
| | | void (*clear) (AdgPath *path); | |
| }; | | }; | |
| | | | |
| GType adg_path_get_type (void) G_GNUC_CONST; | | GType adg_path_get_type (void) G_GNUC_CONST; | |
|
| AdgEntity * adg_path_new (AdgCallback create_fun | | AdgEntity * adg_path_new (AdgCallback callback); | |
| c, | | | |
| gpointer user_data) | | | |
| ; | | | |
| void adg_path_clear (AdgPath *path); | | | |
| const cairo_path_t * | | const cairo_path_t * | |
| adg_path_get_cairo_path (AdgPath *path); | | adg_path_get_cairo_path (AdgPath *path); | |
|
| void adg_path_chain_ymirror (AdgPath *path); | | | |
| void adg_path_dump (AdgPath *path); | | void adg_path_dump (AdgPath *path); | |
| | | | |
|
| /* Cairo wrappers */ | | | |
| gboolean adg_path_get_current_point (AdgPath *path, | | | |
| double *x, | | | |
| double *y); | | | |
| void adg_path_close (AdgPath *path); | | | |
| void adg_path_arc (AdgPath *path, | | | |
| double xc, | | | |
| double yc, | | | |
| double radius, | | | |
| double angle1, | | | |
| double angle2); | | | |
| void adg_path_arc_negative (AdgPath *path, | | | |
| double xc, | | | |
| double yc, | | | |
| double radius, | | | |
| double angle1, | | | |
| double angle2); | | | |
| void adg_path_curve_to (AdgPath *path, | | | |
| double x1, | | | |
| double y1, | | | |
| double x2, | | | |
| double y2, | | | |
| double x3, | | | |
| double y3); | | | |
| void adg_path_line_to (AdgPath *path, | | | |
| double x, | | | |
| double y); | | | |
| void adg_path_move_to (AdgPath *path, | | | |
| double x, | | | |
| double y); | | | |
| void adg_path_rectangle (AdgPath *path, | | | |
| double x, | | | |
| double y, | | | |
| double width, | | | |
| double height); | | | |
| void adg_path_rel_curve_to (AdgPath *path, | | | |
| double dx1, | | | |
| double dy1, | | | |
| double dx2, | | | |
| double dy2, | | | |
| double dx3, | | | |
| double dy3); | | | |
| void adg_path_rel_line_to (AdgPath *path, | | | |
| double dx, | | | |
| double dy); | | | |
| void adg_path_rel_move_to (AdgPath *path, | | | |
| double dx, | | | |
| double dy); | | | |
| | | | |
| G_END_DECLS | | G_END_DECLS | |
| | | | |
| #endif /* __ADG_PATH_H__ */ | | #endif /* __ADG_PATH_H__ */ | |
| | | | |
End of changes. 10 change blocks. |
| 63 lines changed or deleted | | 13 lines changed or added | |
|
| adg.h | | adg.h | |
| /* ADG - Automatic Drawing Generation | | /* ADG - Automatic Drawing Generation | |
|
| * Copyright (C) 2007-2008, Nicola Fontana <ntd at entidi.it> | | * Copyright (C) 2007,2008,2009 Nicola Fontana <ntd at entidi.it> | |
| * | | * | |
| * This library is free software; you can redistribute it and/or | | * This library is free software; you can redistribute it and/or | |
| * modify it under the terms of the GNU Lesser General Public | | * modify it under the terms of the GNU Lesser General Public | |
| * License as published by the Free Software Foundation; either | | * License as published by the Free Software Foundation; either | |
| * version 2 of the License, or (at your option) any later version. | | * version 2 of the License, or (at your option) any later version. | |
| * | | * | |
| * This library is distributed in the hope that it will be useful, | | * This library is distributed in the hope that it will be useful, | |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| * Lesser General Public License for more details. | | * Lesser General Public License for more details. | |
| | | | |
| skipping to change at line 34 | | skipping to change at line 34 | |
| #include <adg/adg-canvas.h> | | #include <adg/adg-canvas.h> | |
| #include <adg/adg-container.h> | | #include <adg/adg-container.h> | |
| #include <adg/adg-dim.h> | | #include <adg/adg-dim.h> | |
| #include <adg/adg-entity.h> | | #include <adg/adg-entity.h> | |
| #include <adg/adg-enums.h> | | #include <adg/adg-enums.h> | |
| #include <adg/adg-ldim.h> | | #include <adg/adg-ldim.h> | |
| #include <adg/adg-matrix.h> | | #include <adg/adg-matrix.h> | |
| #include <adg/adg-model.h> | | #include <adg/adg-model.h> | |
| #include <adg/adg-pair.h> | | #include <adg/adg-pair.h> | |
| #include <adg/adg-path.h> | | #include <adg/adg-path.h> | |
|
| | | #include <adg/adg-rotable.h> | |
| #include <adg/adg-style.h> | | #include <adg/adg-style.h> | |
|
| | | #include <adg/adg-toy-text.h> | |
| | | #include <adg/adg-translatable.h> | |
| #include <adg/adg-type-builtins.h> | | #include <adg/adg-type-builtins.h> | |
| #include <adg/adg-util.h> | | #include <adg/adg-util.h> | |
| | | | |
| #endif /* __ADG_H__ */ | | #endif /* __ADG_H__ */ | |
| | | | |
End of changes. 3 change blocks. |
| 1 lines changed or deleted | | 4 lines changed or added | |
|