diff options
author | Hamish Moffatt <hamish@debian.org> | 2002-01-06 13:02:15 +0100 |
---|---|---|
committer | Hamish Moffatt <hamish@debian.org> | 2002-01-06 13:02:15 +0100 |
commit | 2679d213fe4eae9f00a496c9b5fa2a67c85e78e1 (patch) | |
tree | 8065f92eb2795042b55fa45c0ac74f539706e714 /libgstroke/gstroke-internal.h |
Import libstroke_0.5.1.orig.tar.gz
[dgit import orig libstroke_0.5.1.orig.tar.gz]
Diffstat (limited to 'libgstroke/gstroke-internal.h')
-rw-r--r-- | libgstroke/gstroke-internal.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/libgstroke/gstroke-internal.h b/libgstroke/gstroke-internal.h new file mode 100644 index 0000000..4faaa89 --- /dev/null +++ b/libgstroke/gstroke-internal.h @@ -0,0 +1,41 @@ +/* This file is to be used internally by the libgstroke implementation. + It should not be installed or used elsewhere. + + See the file COPYING for distribution information. +*/ + +#ifndef _GSTROKE_INTERNAL_H_ +#define _GSTROKE_INTERNAL_H_ + +/* metrics for stroke, they are used while processing a stroke, this + structure should be stored in local widget storage */ +struct gstroke_metrics { + GSList *pointList; /* point list */ + gint min_x; + gint min_y; + gint max_x; + gint max_y; + gint point_count; +}; + +#define GSTROKE_METRICS "gstroke_metrics" + +/* translate stroke to sequence */ +gint _gstroke_trans (gchar *sequence, struct gstroke_metrics *metrics); +gint _gstroke_canonical (gchar* sequence, struct gstroke_metrics *metrics); + +/* record point in stroke */ +void _gstroke_record (gint x, gint y, struct gstroke_metrics *metrics); + +/* initialize stroke functions */ +void _gstroke_init (struct gstroke_metrics*); + +/* structure for holding point data */ +struct s_point { + gint x; + gint y; +}; + +typedef struct s_point *p_point; + +#endif |