Mercurial > hg > xmms-sid
comparison src/xs_curve.h @ 384:7e35b6059d79
Tabs
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 27 Dec 2005 10:33:00 +0000 |
parents | 58079c6180a0 |
children | 54d86ee98b98 |
comparison
equal
deleted
inserted
replaced
383:e0caab85510e | 384:7e35b6059d79 |
---|---|
20 typedef struct _XSCurveClass XSCurveClass; | 20 typedef struct _XSCurveClass XSCurveClass; |
21 | 21 |
22 | 22 |
23 struct _XSCurve | 23 struct _XSCurve |
24 { | 24 { |
25 GtkDrawingArea graph; | 25 GtkDrawingArea graph; |
26 | 26 |
27 gfloat min_x; | 27 gfloat min_x; |
28 gfloat max_x; | 28 gfloat max_x; |
29 gfloat min_y; | 29 gfloat min_y; |
30 gfloat max_y; | 30 gfloat max_y; |
31 GdkPixmap *pixmap; | 31 GdkPixmap *pixmap; |
32 gint height; /* (cached) graph height in pixels */ | 32 gint height; /* (cached) graph height in pixels */ |
33 gint grab_point; /* point currently grabbed */ | 33 gint grab_point; /* point currently grabbed */ |
34 gint last; | 34 gint last; |
35 | 35 |
36 /* (cached) curve points: */ | 36 /* (cached) curve points: */ |
37 gint num_points; | 37 gint num_points; |
38 GdkPoint *point; | 38 GdkPoint *point; |
39 | 39 |
40 /* control points: */ | 40 /* control points: */ |
41 gint num_ctlpoints; /* number of control points */ | 41 gint num_ctlpoints; /* number of control points */ |
42 gfloat (*ctlpoint)[2]; /* array of control points */ | 42 gfloat (*ctlpoint)[2]; /* array of control points */ |
43 }; | 43 }; |
44 | 44 |
45 struct _XSCurveClass | 45 struct _XSCurveClass |
46 { | 46 { |
47 GtkDrawingAreaClass parent_class; | 47 GtkDrawingAreaClass parent_class; |
48 }; | 48 }; |
49 | 49 |
50 | 50 |
51 GtkType xs_curve_get_type (void); | 51 GtkType xs_curve_get_type (void); |
52 GtkWidget* xs_curve_new (void); | 52 GtkWidget* xs_curve_new (void); |