Mercurial > hg > xmms-sid
diff src/xs_curve.h @ 502:54d86ee98b98
Alpha/preliminary curve widget code merged.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 27 Jan 2007 02:52:02 +0000 |
parents | 7e35b6059d79 |
children | fa95d942f226 |
line wrap: on
line diff
--- a/src/xs_curve.h Sat Jan 27 02:51:02 2007 +0000 +++ b/src/xs_curve.h Sat Jan 27 02:52:02 2007 +0000 @@ -19,31 +19,30 @@ typedef struct _XSCurve XSCurve; typedef struct _XSCurveClass XSCurveClass; +typedef struct { + gfloat x,y; +} t_xs_point; -struct _XSCurve -{ + +struct _XSCurve { GtkDrawingArea graph; + gint cursor_type; gfloat min_x; gfloat max_x; gfloat min_y; gfloat max_y; GdkPixmap *pixmap; - gint height; /* (cached) graph height in pixels */ - gint grab_point; /* point currently grabbed */ + gint height; /* (cached) graph height in pixels */ + gint grab_point; /* point currently grabbed */ gint last; - /* (cached) curve points: */ - gint num_points; - GdkPoint *point; - - /* control points: */ - gint num_ctlpoints; /* number of control points */ - gfloat (*ctlpoint)[2]; /* array of control points */ + /* control points */ + gint num_ctlpoints; /* number of control points */ + t_xs_point *ctlpoints; /* array of control points */ }; -struct _XSCurveClass -{ +struct _XSCurveClass { GtkDrawingAreaClass parent_class; }; @@ -51,15 +50,9 @@ GtkType xs_curve_get_type (void); GtkWidget* xs_curve_new (void); void xs_curve_reset (XSCurve *curve); -void xs_curve_set_gamma (XSCurve *curve, gfloat gamma); void xs_curve_set_range (XSCurve *curve, gfloat min_x, gfloat max_x, gfloat min_y, gfloat max_y); -void xs_curve_get_vector (XSCurve *curve, - int veclen, gfloat vector[]); -void xs_curve_set_vector (XSCurve *curve, - int veclen, gfloat vector[]); - #ifdef __cplusplus }