From a4a7431b8103f42464fd401572cff76551896467 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 11 Aug 2003 04:38:38 +0000 Subject: added latest Linux [grid] sources svn path=/trunk/externals/unauthorized/; revision=838 --- grid/g_grid.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 grid/g_grid.h (limited to 'grid/g_grid.h') diff --git a/grid/g_grid.h b/grid/g_grid.h new file mode 100644 index 0000000..e58da9f --- /dev/null +++ b/grid/g_grid.h @@ -0,0 +1,36 @@ +/* Copyright (c) 2002 Yves Degoyon +* For information on usage and redistribution, and for a DISCLAIMER OF ALL +* WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ + +/* a header for grid which enables to control +* 2 parameters with the mouse cursor +*/ + +#ifndef __G_GRID_H +#define __G_GRID_H + +typedef struct _grid +{ + t_object x_obj; + t_glist *x_glist; + t_symbol *x_name; + t_outlet *x_xoutlet; + t_outlet *x_youtlet; + int x_height; /* height of the grid */ + t_float x_min; /* minimum value of x */ + t_float x_max; /* max value of x */ + int x_width; /* width of the grid */ + t_float y_min; /* minimum value of y */ + t_float y_max; /* max value of y */ + t_float x_current; /* x coordinate of current position */ + t_float y_current; /* y coordinate of current position */ + int x_selected; /* stores selected state */ + int x_point; /* indicates if a point is plotted */ + int x_grid; /* indicates if a grid is requested */ + t_float x_xstep; /* sets the step ( grain ) for x */ + t_float x_ystep; /* sets the step ( grain ) for y */ + int x_xlines; /* number of vertical lines */ + int x_ylines; /* number of horizontal lines */ +} t_grid; + +#endif -- cgit v1.2.1