missing NULL terminator in set_config_x
[geda-gaf.git] / gschem / include / stroke.h
blob9146d755c48873add0da672bff80eff3882d2292
1 /*
2 libstroke - a stroke interface library
3 Copyright (c) 1996,1997,1998,1999,2000 Mark F. Willey, ETLA Technical
5 Permission is hereby granted, free of charge, to any person obtaining
6 a copy of this software and associated documentation files (the
7 "Software"), to deal in the Software, including the rights to use, copy,
8 modify, merge, publish, and distribute copies of the Software, and to
9 permit persons to whom the Software is furnished to do so, subject to
10 the following conditions:
12 This program is free software; you can redistribute it and/or
13 modify it under the terms of the GNU General Public License
14 as published by the Free Software Foundation; version 2.
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with this program; if not, write to the Free Software
23 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 The above copyright notice and this permission notice shall be included
26 in all copies or substantial portions of the Software.
28 See the file "LICENSE" for a copy of the GNU GPL terms.
30 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
31 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
32 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
33 IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR
34 OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
35 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
36 OTHER DEALINGS IN THE SOFTWARE.
38 Except as contained in this notice, the name of the author shall
39 name be used in advertising or otherwise to promote the sale, use or
40 other dealings in this Software without prior written authorization
41 from the author.
43 Non-GPL commercial use licenses are available - contact copyright holder.
45 Author: Mark F. Willey -- willey@etla.net
46 http://www.etla.net/
49 /* largest number of points allowed to be sampled */
50 #define STROKE_MAX_POINTS 10000
52 /* number of sample points required to have a valid stroke */
53 #define STROKE_MIN_POINTS 50
55 /* maximum number of numbers in stroke */
56 #define STROKE_MAX_SEQUENCE 20
58 /* threshold of size of smaller axis needed for it to define its own
59 bin size */
60 #define STROKE_SCALE_RATIO 4
62 /* minimum percentage of points in bin needed to add to sequence */
63 #define STROKE_BIN_COUNT_PERCENT 0.07
65 /* translate stroke to sequence */
66 int stroke_trans (char *sequence);
68 /* record point in stroke */
69 void stroke_record (int x, int y);
71 /* initialize stroke functions */
72 void stroke_init (void);