adg-arrow-style.h | adg-arrow-style.h | |||
---|---|---|---|---|
skipping to change at line 82 | skipping to change at line 82 | |||
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); | |||
const AdgArrowRenderer | AdgArrowRenderer | |||
adg_arrow_style_get_renderer (AdgArrowStyle *arrow_styl e); | adg_arrow_style_get_renderer (AdgArrowStyle *arrow_styl e); | |||
void adg_arrow_style_set_renderer (AdgArrowStyle *arrow_styl e, | void adg_arrow_style_set_renderer (AdgArrowStyle *arrow_styl e, | |||
AdgArrowRenderer renderer) ; | AdgArrowRenderer renderer) ; | |||
G_END_DECLS | G_END_DECLS | |||
#endif /* __ADG_ARROW_STYLE_H__ */ | #endif /* __ADG_ARROW_STYLE_H__ */ | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
adg-enums.h | adg-enums.h | |||
---|---|---|---|---|
skipping to change at line 32 | skipping to change at line 32 | |||
#include <glib-object.h> | #include <glib-object.h> | |||
G_BEGIN_DECLS | G_BEGIN_DECLS | |||
/** | /** | |||
* AdgLineStyleId: | * AdgLineStyleId: | |||
* @ADG_LINE_STYLE_DRAW: normal drawing | * @ADG_LINE_STYLE_DRAW: normal drawing | |||
* @ADG_LINE_STYLE_CENTER: axis and center-lines | * @ADG_LINE_STYLE_CENTER: axis and center-lines | |||
* @ADG_LINE_STYLE_HIDDEN: covered entities | * @ADG_LINE_STYLE_HIDDEN: covered entities | |||
* @ADG_LINE_STYLE_XATCH: xatches | * @ADG_LINE_STYLE_HATCH: hatches | |||
* @ADG_LINE_STYLE_DIM: extension and base lines of dimension entities | * @ADG_LINE_STYLE_DIM: extension and base lines of dimension entities | |||
* @ADG_LINE_STYLE_LAST: start of user-defined styles | * @ADG_LINE_STYLE_LAST: start of user-defined styles | |||
* | * | |||
* Builtin id to get some predefined #AdgLineStyle instances. | * Builtin id to get some predefined #AdgLineStyle instances. | |||
*/ | */ | |||
typedef enum { | typedef enum { | |||
ADG_LINE_STYLE_DRAW, | ADG_LINE_STYLE_DRAW, | |||
ADG_LINE_STYLE_CENTER, | ADG_LINE_STYLE_CENTER, | |||
ADG_LINE_STYLE_HIDDEN, | ADG_LINE_STYLE_HIDDEN, | |||
ADG_LINE_STYLE_XATCH, | ADG_LINE_STYLE_HATCH, | |||
ADG_LINE_STYLE_DIM, | ADG_LINE_STYLE_DIM, | |||
ADG_LINE_STYLE_LAST | ADG_LINE_STYLE_LAST | |||
} AdgLineStyleId; | } AdgLineStyleId; | |||
/** | /** | |||
* AdgFontStyleId: | * AdgFontStyleId: | |||
* @ADG_FONT_STYLE_TEXT: generic text style | * @ADG_FONT_STYLE_TEXT: generic text style | |||
* @ADG_FONT_STYLE_QUOTE: text style for the quote number | * @ADG_FONT_STYLE_QUOTE: text style for the quote number | |||
* @ADG_FONT_STYLE_TOLERANCE: text style for quote tolerances | * @ADG_FONT_STYLE_TOLERANCE: text style for quote tolerances | |||
* @ADG_FONT_STYLE_NOTE: text style for additional notes appended to the qu ote | * @ADG_FONT_STYLE_NOTE: text style for additional notes appended to the qu ote | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added | |||
adg-model.h | adg-model.h | |||
---|---|---|---|---|
skipping to change at line 27 | skipping to change at line 27 | |||
* Boston, MA 02110-1301, USA. | * Boston, MA 02110-1301, USA. | |||
*/ | */ | |||
#ifndef __ADG_MODEL_H__ | #ifndef __ADG_MODEL_H__ | |||
#define __ADG_MODEL_H__ | #define __ADG_MODEL_H__ | |||
#include <glib-object.h> | #include <glib-object.h> | |||
G_BEGIN_DECLS | G_BEGIN_DECLS | |||
#define ADG_TYPE_MODEL (adg_model_get_type ()) | #define ADG_TYPE_MODEL (adg_model_get_type()) | |||
#define ADG_MODEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ADG_ | #define ADG_MODEL(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), ADG_T | |||
TYPE_MODEL, AdgModel)) | YPE_MODEL, AdgModel)) | |||
#define ADG_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ADG_T | #define ADG_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), ADG_TY | |||
YPE_MODEL, AdgModel)) | PE_MODEL, AdgModel)) | |||
#define ADG_IS_MODEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ADG_ | #define ADG_IS_MODEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), ADG_T | |||
TYPE_MODEL)) | YPE_MODEL)) | |||
#define ADG_IS_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ADG_T | #define ADG_IS_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), ADG_TY | |||
YPE_MODEL)) | PE_MODEL)) | |||
#define ADG_MODEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ADG_T | #define ADG_MODEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), ADG_TY | |||
YPE_MODEL, AdgModel)) | PE_MODEL, AdgModelClass)) | |||
typedef struct _AdgModel AdgModel; | typedef struct _AdgModel AdgModel; | |||
typedef struct _AdgModelClass AdgModelClass; | typedef struct _AdgModelClass AdgModelClass; | |||
typedef struct _AdgModelPrivate AdgModelPrivate; | typedef struct _AdgModelPrivate AdgModelPrivate; | |||
struct _AdgModel { | struct _AdgModel { | |||
GObject object; | ||||
/*< private >*/ | /*< private >*/ | |||
GObject object; | ||||
AdgModelPrivate *priv; | AdgModelPrivate *priv; | |||
}; | }; | |||
struct _AdgModelClass { | struct _AdgModelClass { | |||
GObjectClass parent_class; | GObjectClass parent_class; | |||
/* Virtual Table */ | ||||
void (*changed) (AdgModel *model); | ||||
}; | }; | |||
GType adg_model_get_type (void) G_GNUC_CONST; | GType adg_model_get_type (void) G_GNUC_CONST; | |||
void adg_model_changed (AdgModel *model); | ||||
gchar * adg_model_get_name (AdgModel *model); | ||||
void adg_model_set_name (AdgModel *model, | ||||
const gchar *name); | ||||
gchar * adg_model_get_material (AdgModel *model); | ||||
void adg_model_set_material (AdgModel *model, | ||||
const gchar *material); | ||||
gchar * adg_model_get_treatment (AdgModel *model); | ||||
void adg_model_set_treatment (AdgModel *model, | ||||
const gchar *treatment) | ||||
; | ||||
G_END_DECLS | G_END_DECLS | |||
#endif /* __ADG_MODEL_H__ */ | #endif /* __ADG_MODEL_H__ */ | |||
End of changes. 5 change blocks. | ||||
23 lines changed or deleted | 16 lines changed or added | |||
adg-path.h | adg-path.h | |||
---|---|---|---|---|
/* ADG - Automatic Drawing Generation | /* ADG - Automatic Drawing Generation | |||
* Copyright (C) 2007,2008,2009 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 Library 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 | |||
* Library General Public License for more details. | * Lesser 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., 59 Temple Place - Suite 330, | * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | |||
* Boston, MA 02111-1307, USA. | * Boston, MA 02110-1301, 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-model.h> | |||
#include <cpml/cpml.h> | ||||
G_BEGIN_DECLS | G_BEGIN_DECLS | |||
#define ADG_TYPE_PATH (adg_path_get_type ()) | #define ADG_TYPE_PATH (adg_path_get_type ()) | |||
#define ADG_PATH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ADG_T YPE_PATH, AdgPath)) | #define ADG_PATH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ADG_T YPE_PATH, AdgPath)) | |||
#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; | ||||
/*< private >*/ | /*< private >*/ | |||
AdgModel model; | ||||
AdgPathPrivate *priv; | AdgPathPrivate *priv; | |||
}; | }; | |||
struct _AdgPathClass { | struct _AdgPathClass { | |||
AdgEntityClass parent_class; | AdgModelClass 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 callback, | AdgModel * adg_path_new (void); | |||
gpointer user_data) | ||||
; | ||||
const cairo_path_t * | const cairo_path_t * | |||
adg_path_get_cairo_path (AdgPath *path); | adg_path_get_cairo_path (AdgPath *path); | |||
cairo_path_t * adg_path_get_cpml_path (AdgPath *path); | ||||
cairo_path_t * adg_path_dup_cpml_path (AdgPath *path); | ||||
void adg_path_get_current_point (AdgPath *path, | ||||
gdouble *x, | ||||
gdouble *y); | ||||
gboolean adg_path_has_current_point (AdgPath *path); | ||||
void adg_path_clear (AdgPath *path); | ||||
void adg_path_append (AdgPath *path, | ||||
cairo_path_data_type_t typ | ||||
e, | ||||
...); | ||||
void adg_path_append_valist (AdgPath *path, | ||||
cairo_path_data_type_t typ | ||||
e, | ||||
va_list var_args); | ||||
void adg_path_append_cairo_path (AdgPath *path, | ||||
const cairo_path_t *cairo_ | ||||
path); | ||||
void adg_path_move_to (AdgPath *path, | ||||
gdouble x, | ||||
gdouble y); | ||||
void adg_path_line_to (AdgPath *path, | ||||
gdouble x, | ||||
gdouble y); | ||||
void adg_path_arc_to (AdgPath *path, | ||||
gdouble x1, | ||||
gdouble y1, | ||||
gdouble x2, | ||||
gdouble y2); | ||||
void adg_path_curve_to (AdgPath *path, | ||||
gdouble x1, | ||||
gdouble y1, | ||||
gdouble x2, | ||||
gdouble y2, | ||||
gdouble x3, | ||||
gdouble y3); | ||||
void adg_path_close (AdgPath *path); | ||||
void adg_path_arc (AdgPath *path, | ||||
gdouble xc, | ||||
gdouble yc, | ||||
gdouble r, | ||||
gdouble start, | ||||
gdouble end); | ||||
void adg_path_dump (AdgPath *path); | void adg_path_dump (AdgPath *path); | |||
G_END_DECLS | G_END_DECLS | |||
#endif /* __ADG_PATH_H__ */ | #endif /* __ADG_PATH_H__ */ | |||
End of changes. 9 change blocks. | ||||
14 lines changed or deleted | 56 lines changed or added | |||
adg.h | adg.h | |||
---|---|---|---|---|
skipping to change at line 35 | skipping to change at line 35 | |||
#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-rotable.h> | |||
#include <adg/adg-stroke.h> | ||||
#include <adg/adg-style.h> | #include <adg/adg-style.h> | |||
#include <adg/adg-title-block.h> | ||||
#include <adg/adg-toy-text.h> | #include <adg/adg-toy-text.h> | |||
#include <adg/adg-translatable.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. 2 change blocks. | ||||
0 lines changed or deleted | 2 lines changed or added | |||
cpml-curve.h | cpml-curve.h | |||
---|---|---|---|---|
skipping to change at line 44 | skipping to change at line 44 | |||
double pos); | double pos); | |||
void cpml_curve_vector_at_time (const CpmlPrimitive *curve, | void cpml_curve_vector_at_time (const CpmlPrimitive *curve, | |||
CpmlVector *vector, | CpmlVector *vector, | |||
double t); | double t); | |||
void cpml_curve_vector_at (const CpmlPrimitive *curve, | void cpml_curve_vector_at (const CpmlPrimitive *curve, | |||
CpmlVector *vector, | CpmlVector *vector, | |||
double pos); | double pos); | |||
int cpml_curve_intersection (const CpmlPrimitive *curve, | int cpml_curve_intersection (const CpmlPrimitive *curve, | |||
const CpmlPrimitive *curve2, | const CpmlPrimitive *curve2, | |||
CpmlPair *dest); | CpmlPair *dest); | |||
int cpml_curve_intersection_with_arc(const CpmlPrimitive *curve, | ||||
const CpmlPrimitive *arc, | ||||
CpmlPair *dest); | ||||
int cpml_curve_intersection_with_line | int cpml_curve_intersection_with_line | |||
(const CpmlPrimitive *curve, | (const CpmlPrimitive *curve, | |||
const CpmlPrimitive *line, | const CpmlPrimitive *line, | |||
CpmlPair *dest); | CpmlPair *dest); | |||
void cpml_curve_offset (CpmlPrimitive *curve, | void cpml_curve_offset (CpmlPrimitive *curve, | |||
double offset); | double offset); | |||
CAIRO_END_DECLS | CAIRO_END_DECLS | |||
#endif /* __CPML_CURVE_H__ */ | #endif /* __CPML_CURVE_H__ */ | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 3 lines changed or added | |||
cpml.h | cpml.h | |||
---|---|---|---|---|
skipping to change at line 23 | skipping to change at line 23 | |||
* | * | |||
* 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., 51 Franklin Street, Fifth Floor, | |||
* Boston, MA 02110-1301, USA. | * Boston, MA 02110-1301, USA. | |||
*/ | */ | |||
#ifndef __CPML_H__ | #ifndef __CPML_H__ | |||
#define __CPML_H__ | #define __CPML_H__ | |||
#include <cpml/cpml-arc.h> | ||||
#include <cpml/cpml-curve.h> | #include <cpml/cpml-curve.h> | |||
#include <cpml/cpml-line.h> | #include <cpml/cpml-line.h> | |||
#include <cpml/cpml-macros.h> | #include <cpml/cpml-macros.h> | |||
#include <cpml/cpml-pair.h> | #include <cpml/cpml-pair.h> | |||
#include <cpml/cpml-primitive.h> | #include <cpml/cpml-primitive.h> | |||
#include <cpml/cpml-segment.h> | #include <cpml/cpml-segment.h> | |||
#endif /* __CPML_H__ */ | #endif /* __CPML_H__ */ | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 1 lines changed or added | |||