diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2011-02-07 01:10:17 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2011-02-07 01:10:17 +0100 |
commit | 1277b6eaaffc08076f9d9440693f201fb61072e3 (patch) | |
tree | 1d31fbd5d8f0106823196e523125f17f9735de37 /liblogdiag/ld-types.h | |
parent | ee95916749ae978b01f3a5dece599d1bc07bddc3 (diff) | |
download | logdiag-1277b6eaaffc08076f9d9440693f201fb61072e3.tar.gz logdiag-1277b6eaaffc08076f9d9440693f201fb61072e3.tar.xz logdiag-1277b6eaaffc08076f9d9440693f201fb61072e3.zip |
Add support for LdDiagramConnection to LdCanvas.
Heavy LdCanvas refactoring, some modifications to ld-types.
It just wasn't possible for me to further work with an old,
2000 lines long file without shuffling everything around
at the same time.
Diffstat (limited to 'liblogdiag/ld-types.h')
-rw-r--r-- | liblogdiag/ld-types.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/liblogdiag/ld-types.h b/liblogdiag/ld-types.h index 29c0acc..30590e7 100644 --- a/liblogdiag/ld-types.h +++ b/liblogdiag/ld-types.h @@ -39,7 +39,7 @@ GType ld_point_get_type (void) G_GNUC_CONST; LdPoint *ld_point_copy (const LdPoint *self); void ld_point_free (LdPoint *self); -gdouble ld_point_distance (LdPoint *self, gdouble x, gdouble y); +gdouble ld_point_distance (const LdPoint *self, gdouble x, gdouble y); /** @@ -88,8 +88,12 @@ GType ld_rectangle_get_type (void) G_GNUC_CONST; LdRectangle *ld_rectangle_copy (const LdRectangle *self); void ld_rectangle_free (LdRectangle *self); -gboolean ld_rectangle_contains (LdRectangle *self, gdouble x, gdouble y); -gboolean ld_rectangle_intersects (LdRectangle *self, LdRectangle *rect); +gboolean ld_rectangle_intersects (const LdRectangle *self, + const LdRectangle *rect); +gboolean ld_rectangle_contains (const LdRectangle *self, + const LdRectangle *rect); +gboolean ld_rectangle_contains_point (const LdRectangle *self, + const LdPoint *point); void ld_rectangle_extend (LdRectangle *self, gdouble border); |