diff src/xs_curve.h @ 660:b0743dc9165d

Change tabs to 4 spaces, everywhere.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 02 Apr 2008 22:10:05 +0300
parents ce1fe59627f2
children b5b6b13a6d85
line wrap: on
line diff
--- a/src/xs_curve.h	Wed Apr 02 21:29:26 2008 +0300
+++ b/src/xs_curve.h	Wed Apr 02 22:10:05 2008 +0300
@@ -10,11 +10,11 @@
 
 /* Macros for type-classing this GtkWidget/object
  */
-#define XS_TYPE_CURVE			(xs_curve_get_type())
-#define XS_CURVE(obj)			(GTK_CHECK_CAST ((obj), XS_TYPE_CURVE, XSCurve))
-#define XS_CURVE_CLASS(luokka)		(GTK_CHECK_CLASS_CAST ((luokka), XS_TYPE_CURVE, XSCurveClass))
-#define XS_IS_CURVE(obj)		(GTK_CHECK_TYPE ((obj), XS_TYPE_CURVE))
-#define XS_IS_CURVE_CLASS(luokka)	(GTK_CHECK_CLASS_TYPE ((luokka), XS_TYPE_CURVE))
+#define XS_TYPE_CURVE            (xs_curve_get_type())
+#define XS_CURVE(obj)            (GTK_CHECK_CAST ((obj), XS_TYPE_CURVE, XSCurve))
+#define XS_CURVE_CLASS(luokka)        (GTK_CHECK_CLASS_CAST ((luokka), XS_TYPE_CURVE, XSCurveClass))
+#define XS_IS_CURVE(obj)        (GTK_CHECK_TYPE ((obj), XS_TYPE_CURVE))
+#define XS_IS_CURVE_CLASS(luokka)    (GTK_CHECK_CLASS_TYPE ((luokka), XS_TYPE_CURVE))
 
 
 /* Structures
@@ -23,44 +23,44 @@
 typedef struct _XSCurveClass XSCurveClass;
 
 typedef struct {
-	gfloat x,y;
+    gfloat x,y;
 } t_xs_point;
 
 typedef struct {
-	gint x, y;
+    gint x, y;
 } t_xs_int_point;
 
 struct _XSCurve {
-	GtkDrawingArea graph;
+    GtkDrawingArea graph;
 
-	gint cursor_type;
-	gfloat min_x;
-	gfloat max_x;
-	gfloat min_y;
-	gfloat max_y;
-	GdkPixmap *pixmap;
-	gint grab_point;	/* point currently grabbed */
+    gint cursor_type;
+    gfloat min_x;
+    gfloat max_x;
+    gfloat min_y;
+    gfloat max_y;
+    GdkPixmap *pixmap;
+    gint grab_point;    /* point currently grabbed */
 
-	/* control points */
-	gint nctlpoints;	/* number of control points */
-	t_xs_point *ctlpoints;	/* array of control points */
+    /* control points */
+    gint nctlpoints;    /* number of control points */
+    t_xs_point *ctlpoints;    /* array of control points */
 };
 
 struct _XSCurveClass {
-	GtkDrawingAreaClass parent_class;
+    GtkDrawingAreaClass parent_class;
 };
 
 
-GtkType		xs_curve_get_type	(void);
-GtkWidget*	xs_curve_new		(void);
-void		xs_curve_reset		(XSCurve *curve);
-void		xs_curve_set_range	(XSCurve *curve,
-					 gfloat min_x, gfloat min_y,
-					 gfloat max_x, gfloat max_y);
-gboolean	xs_curve_realloc_data	(XSCurve *curve, gint npoints);
-void		xs_curve_get_data	(XSCurve *curve, t_xs_point ***points, gint **npoints);
-gboolean	xs_curve_set_points	(XSCurve *curve, t_xs_int_point *points, gint npoints);
-gboolean	xs_curve_get_points	(XSCurve *curve, t_xs_int_point **points, gint *npoints);
+GtkType        xs_curve_get_type    (void);
+GtkWidget*    xs_curve_new        (void);
+void        xs_curve_reset        (XSCurve *curve);
+void        xs_curve_set_range    (XSCurve *curve,
+                     gfloat min_x, gfloat min_y,
+                     gfloat max_x, gfloat max_y);
+gboolean    xs_curve_realloc_data    (XSCurve *curve, gint npoints);
+void        xs_curve_get_data    (XSCurve *curve, t_xs_point ***points, gint **npoints);
+gboolean    xs_curve_set_points    (XSCurve *curve, t_xs_int_point *points, gint npoints);
+gboolean    xs_curve_get_points    (XSCurve *curve, t_xs_int_point **points, gint *npoints);
 
 #ifdef __cplusplus
 }