1 /*
2  *  This file is part of the XForms library package.
3  *
4  *  XForms is free software; you can redistribute it and/or modify it
5  *  under the terms of the GNU Lesser General Public License as
6  *  published by the Free Software Foundation; either version 2.1, or
7  *  (at your option) any later version.
8  *
9  *  XForms is distributed in the hope that it will be useful, but
10  *  WITHOUT ANY WARRANTY; without even the implied warranty of
11  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  *  Lesser General Public License for more details.
13  *
14  *  You should have received a copy of the GNU General Public License
15  *  along with XForms.  If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 
19 /**
20  * \file ppositioner.h
21  *
22  *  This file is part of the XForms library package.
23  *  Copyright (c) 1995-1997  T.C. Zhao and Mark Overmars
24  *  All rights reserved.
25  *
26  * private header for positioner object
27  */
28 
29 #ifndef PPOSITION_H
30 #define PPOSITION_H
31 
32 typedef struct {
33     double xmin,                 /* minimal values  */
34            ymin;
35     double xmax,                 /* maximal values  */
36            ymax;
37     double xval,                 /* current values  */
38            yval;
39     double lxval,                /* previous values */
40            lyval;
41     double xstep,                /* step size to which values are rounded  */
42            ystep;
43     int    partial;
44     double old_x,                /* values at start of ineraction */
45            old_y;
46     int    react_to[ 5 ];
47     int    mousebut;
48     Pixmap xpm,
49            ypm;
50     GC     copy_gc;
51     FL_POSITIONER_VALIDATOR validator;
52                                  /* funcion for validating a new position */
53 } FLI_POSITIONER_SPEC;
54 
55 
56 #endif
57 
58 
59 /*
60  * Local variables:
61  * tab-width: 4
62  * indent-tabs-mode: nil
63  * End:
64  */
65