Debian Codegraph @

g_grid.h

raw symbols SCIP
1 /* Copyright (c) 2002 Yves Degoyon
2 * For information on usage and redistribution, and for a DISCLAIMER OF ALL
3 * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */
4
5 /* a header for grid which enables to control
6 * 2 parameters with the mouse cursor
7 */
8
9 #ifndef __G_GRID_H
10 #define __G_GRID_H
11
12 typedef struct _grid
13 {
14 t_object x_obj;
15 t_glist *x_glist;
16 t_symbol *x_name;
17 t_outlet *x_xoutlet;
18 t_outlet *x_youtlet;
19 int x_height; /* height of the grid */
20 t_float x_min; /* minimum value of x */
21 t_float x_max; /* max value of x */
22 int x_width; /* width of the grid */
23 t_float y_min; /* minimum value of y */
24 t_float y_max; /* max value of y */
25 t_float x_current; /* x coordinate of current position */
26 t_float y_current; /* y coordinate of current position */
27 int x_selected; /* stores selected state */
28 int x_point; /* indicates if a point is plotted */
29 int x_grid; /* indicates if a grid is requested */
30 t_float x_xstep; /* sets the step ( grain ) for x */
31 t_float x_ystep; /* sets the step ( grain ) for y */
32 int x_xlines; /* number of vertical lines */
33 int x_ylines; /* number of horizontal lines */
34 char *x_bgcolor; /* background color */
35 } t_grid;
36
37 #endif