Mercurial > hg > xmms-sid
comparison src/xs_curve.h @ 702:b5b6b13a6d85
Renamed some types.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 25 May 2008 01:38:48 +0300 |
parents | b0743dc9165d |
children |
comparison
equal
deleted
inserted
replaced
701:f2037b4d2c23 | 702:b5b6b13a6d85 |
---|---|
22 typedef struct _XSCurve XSCurve; | 22 typedef struct _XSCurve XSCurve; |
23 typedef struct _XSCurveClass XSCurveClass; | 23 typedef struct _XSCurveClass XSCurveClass; |
24 | 24 |
25 typedef struct { | 25 typedef struct { |
26 gfloat x,y; | 26 gfloat x,y; |
27 } t_xs_point; | 27 } xs_point_t; |
28 | 28 |
29 typedef struct { | 29 typedef struct { |
30 gint x, y; | 30 gint x, y; |
31 } t_xs_int_point; | 31 } xs_int_point_t; |
32 | 32 |
33 struct _XSCurve { | 33 struct _XSCurve { |
34 GtkDrawingArea graph; | 34 GtkDrawingArea graph; |
35 | 35 |
36 gint cursor_type; | 36 gint cursor_type; |
41 GdkPixmap *pixmap; | 41 GdkPixmap *pixmap; |
42 gint grab_point; /* point currently grabbed */ | 42 gint grab_point; /* point currently grabbed */ |
43 | 43 |
44 /* control points */ | 44 /* control points */ |
45 gint nctlpoints; /* number of control points */ | 45 gint nctlpoints; /* number of control points */ |
46 t_xs_point *ctlpoints; /* array of control points */ | 46 xs_point_t *ctlpoints; /* array of control points */ |
47 }; | 47 }; |
48 | 48 |
49 struct _XSCurveClass { | 49 struct _XSCurveClass { |
50 GtkDrawingAreaClass parent_class; | 50 GtkDrawingAreaClass parent_class; |
51 }; | 51 }; |
56 void xs_curve_reset (XSCurve *curve); | 56 void xs_curve_reset (XSCurve *curve); |
57 void xs_curve_set_range (XSCurve *curve, | 57 void xs_curve_set_range (XSCurve *curve, |
58 gfloat min_x, gfloat min_y, | 58 gfloat min_x, gfloat min_y, |
59 gfloat max_x, gfloat max_y); | 59 gfloat max_x, gfloat max_y); |
60 gboolean xs_curve_realloc_data (XSCurve *curve, gint npoints); | 60 gboolean xs_curve_realloc_data (XSCurve *curve, gint npoints); |
61 void xs_curve_get_data (XSCurve *curve, t_xs_point ***points, gint **npoints); | 61 void xs_curve_get_data (XSCurve *curve, xs_point_t ***points, gint **npoints); |
62 gboolean xs_curve_set_points (XSCurve *curve, t_xs_int_point *points, gint npoints); | 62 gboolean xs_curve_set_points (XSCurve *curve, xs_int_point_t *points, gint npoints); |
63 gboolean xs_curve_get_points (XSCurve *curve, t_xs_int_point **points, gint *npoints); | 63 gboolean xs_curve_get_points (XSCurve *curve, xs_int_point_t **points, gint *npoints); |
64 | 64 |
65 #ifdef __cplusplus | 65 #ifdef __cplusplus |
66 } | 66 } |
67 #endif | 67 #endif |
68 | 68 |