comparison src/sid/xs_curve.h @ 2643:45ef6d7c0174

Synchronized typedef name changes from XMMS-SID.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 25 May 2008 20:03:48 +0300
parents 1223e8510d8a
children
comparison
equal deleted inserted replaced
2642:c2603047a1a3 2643:45ef6d7c0174
6 6
7 G_BEGIN_DECLS 7 G_BEGIN_DECLS
8 8
9 /* Macros for type-classing this GtkWidget/object 9 /* Macros for type-classing this GtkWidget/object
10 */ 10 */
11 #define XS_TYPE_CURVE (xs_curve_get_type()) 11 #define XS_TYPE_CURVE (xs_curve_get_type())
12 #define XS_CURVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), XS_TYPE_CURVE, XSCurve)) 12 #define XS_CURVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), XS_TYPE_CURVE, XSCurve))
13 #define XS_CURVE_CLASS(luokka) (G_TYPE_CHECK_CLASS_CAST ((luokka), XS_TYPE_CURVE, XSCurveClass)) 13 #define XS_CURVE_CLASS(luokka) (G_TYPE_CHECK_CLASS_CAST ((luokka), XS_TYPE_CURVE, XSCurveClass))
14 #define XS_IS_CURVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), XS_TYPE_CURVE)) 14 #define XS_IS_CURVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), XS_TYPE_CURVE))
15 #define XS_IS_CURVE_CLASS(luokka) (G_TYPE_CHECK_CLASS_TYPE ((luokka), XS_TYPE_CURVE)) 15 #define XS_IS_CURVE_CLASS(luokka) (G_TYPE_CHECK_CLASS_TYPE ((luokka), XS_TYPE_CURVE))
16 #define XS_CURVE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), XS_TYPE_CURVE, XSCurveClass)) 16 #define XS_CURVE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), XS_TYPE_CURVE, XSCurveClass))
17 17
18 18
19 /* Structures 19 /* Structures
20 */ 20 */
21 typedef struct _XSCurve XSCurve; 21 typedef struct _XSCurve XSCurve;
22 typedef struct _XSCurveClass XSCurveClass; 22 typedef struct _XSCurveClass XSCurveClass;
23 23
24 typedef struct { 24 typedef struct {
25 gfloat x,y; 25 gfloat x,y;
26 } t_xs_point; 26 } xs_point_t;
27 27
28 typedef struct { 28 typedef struct {
29 gint x, y; 29 gint x, y;
30 } t_xs_int_point; 30 } xs_int_point_t;
31 31
32 struct _XSCurve { 32 struct _XSCurve {
33 GtkDrawingArea graph; 33 GtkDrawingArea graph;
34 34
35 gint cursor_type; 35 gint cursor_type;
40 GdkPixmap *pixmap; 40 GdkPixmap *pixmap;
41 gint grab_point; /* point currently grabbed */ 41 gint grab_point; /* point currently grabbed */
42 42
43 /* control points */ 43 /* control points */
44 gint nctlpoints; /* number of control points */ 44 gint nctlpoints; /* number of control points */
45 t_xs_point *ctlpoints; /* array of control points */ 45 xs_point_t *ctlpoints; /* array of control points */
46 }; 46 };
47 47
48 struct _XSCurveClass { 48 struct _XSCurveClass {
49 GtkDrawingAreaClass parent_class; 49 GtkDrawingAreaClass parent_class;
50 }; 50 };
55 void xs_curve_reset (XSCurve *curve); 55 void xs_curve_reset (XSCurve *curve);
56 void xs_curve_set_range (XSCurve *curve, 56 void xs_curve_set_range (XSCurve *curve,
57 gfloat min_x, gfloat min_y, 57 gfloat min_x, gfloat min_y,
58 gfloat max_x, gfloat max_y); 58 gfloat max_x, gfloat max_y);
59 gboolean xs_curve_realloc_data (XSCurve *curve, gint npoints); 59 gboolean xs_curve_realloc_data (XSCurve *curve, gint npoints);
60 void xs_curve_get_data (XSCurve *curve, t_xs_point ***points, gint **npoints); 60 void xs_curve_get_data (XSCurve *curve, xs_point_t ***points, gint **npoints);
61 gboolean xs_curve_set_points (XSCurve *curve, t_xs_int_point *points, gint npoints); 61 gboolean xs_curve_set_points (XSCurve *curve, xs_int_point_t *points, gint npoints);
62 gboolean xs_curve_get_points (XSCurve *curve, t_xs_int_point **points, gint *npoints); 62 gboolean xs_curve_get_points (XSCurve *curve, xs_int_point_t **points, gint *npoints);
63 63
64 G_END_DECLS 64 G_END_DECLS
65 65
66 #endif /* XS_CURVE_H */ 66 #endif /* XS_CURVE_H */