app/bezier_select.[ch] massive cleanup (prototypes, indentation, ...)

2000-12-28  Michael Natterer  <mitch@gimp.org>

	* app/bezier_select.[ch]
	* app/bezier_selectP.h: massive cleanup (prototypes, indentation, ...)
This commit is contained in:
Michael Natterer 2000-12-27 23:40:34 +00:00 committed by Michael Natterer
parent f8769ee5e2
commit 7355ee111c
7 changed files with 2261 additions and 1840 deletions

View file

@ -1,3 +1,8 @@
2000-12-28 Michael Natterer <mitch@gimp.org>
* app/bezier_select.[ch]
* app/bezier_selectP.h: massive cleanup (prototypes, indentation, ...)
2000-12-28 Michael Natterer <mitch@gimp.org> 2000-12-28 Michael Natterer <mitch@gimp.org>
* app/measure.c: cleanup, proper prototypes, ... * app/measure.c: cleanup, proper prototypes, ...

File diff suppressed because it is too large Load diff

View file

@ -15,6 +15,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef __BEZIER_SELECT_H__ #ifndef __BEZIER_SELECT_H__
#define __BEZIER_SELECT_H__ #define __BEZIER_SELECT_H__

View file

@ -15,6 +15,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef __BEZIER_SELECTP_H__ #ifndef __BEZIER_SELECTP_H__
#define __BEZIER_SELECTP_H__ #define __BEZIER_SELECTP_H__
@ -65,7 +66,7 @@ struct _BezierSelect
GSList **scanlines; /* used in converting a curve */ GSList **scanlines; /* used in converting a curve */
}; };
/* All udata that are passed to the bezier_draw_curve must /* All data that are passed to the bezier_draw_curve must
* have this structure as the first element. * have this structure as the first element.
*/ */
@ -74,39 +75,42 @@ typedef struct
gint count; gint count;
} CountCurves; } CountCurves;
typedef void (* BezierPointsFunc) (BezierSelect *, GdkPoint *, int,gpointer); typedef void (* BezierPointsFunc) (BezierSelect *bezier_sel,
GdkPoint *points,
gint n_points,
gpointer data);
/* Functions */ /* Functions */
int bezier_select_load (void *, gint bezier_select_load (void *gdisp_ptr,
BezierPoint *, BezierPoint *points,
gint, gint n_points,
gint); gint closed);
void bezier_draw_curve (BezierSelect *, void bezier_draw_curve (BezierSelect *bezier_sel,
BezierPointsFunc, BezierPointsFunc func,
gint, gint coord,
gpointer); gpointer data);
void bezier_select_reset (BezierSelect *bezier_sel); void bezier_select_reset (BezierSelect *bezier_sel);
void bezier_select_free (BezierSelect *bezier_sel); void bezier_select_free (BezierSelect *bezier_sel);
void bezier_add_point (BezierSelect *, void bezier_add_point (BezierSelect *bezier_sel,
gint, gint type,
gdouble, gdouble x,
gdouble); gdouble y);
void bezier_paste_bezierselect_to_current (GDisplay *gdisp, void bezier_paste_bezierselect_to_current (GDisplay *gdisp,
BezierSelect *bezier_sel); BezierSelect *bezier_sel);
void bezier_select_mode (gint); void bezier_select_mode (gint);
void bezier_stroke (BezierSelect *bezier_sel, void bezier_stroke (BezierSelect *bezier_sel,
GDisplay *gdisp, GDisplay *gdisp,
gint, gint subdivisions,
gint); gint open_path);
void bezier_to_selection (BezierSelect *bezier_sel, void bezier_to_selection (BezierSelect *bezier_sel,
GDisplay *gdisp); GDisplay *gdisp);
gint bezier_distance_along (BezierSelect *bezier_sel, gint bezier_distance_along (BezierSelect *bezier_sel,
gint, gint open_path,
gdouble, gdouble dist,
gint *, gint *x,
gint *, gint *y,
gdouble *); gdouble *gradient);
void bezier_draw (GDisplay *gdisp, void bezier_draw (GDisplay *gdisp,
BezierSelect *bezier_sel); BezierSelect *bezier_sel);
#endif /* __BEZIER_SELECTP_H__ */ #endif /* __BEZIER_SELECTP_H__ */

File diff suppressed because it is too large Load diff

View file

@ -15,6 +15,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef __BEZIER_SELECT_H__ #ifndef __BEZIER_SELECT_H__
#define __BEZIER_SELECT_H__ #define __BEZIER_SELECT_H__

View file

@ -15,6 +15,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef __BEZIER_SELECTP_H__ #ifndef __BEZIER_SELECTP_H__
#define __BEZIER_SELECTP_H__ #define __BEZIER_SELECTP_H__
@ -65,7 +66,7 @@ struct _BezierSelect
GSList **scanlines; /* used in converting a curve */ GSList **scanlines; /* used in converting a curve */
}; };
/* All udata that are passed to the bezier_draw_curve must /* All data that are passed to the bezier_draw_curve must
* have this structure as the first element. * have this structure as the first element.
*/ */
@ -74,39 +75,42 @@ typedef struct
gint count; gint count;
} CountCurves; } CountCurves;
typedef void (* BezierPointsFunc) (BezierSelect *, GdkPoint *, int,gpointer); typedef void (* BezierPointsFunc) (BezierSelect *bezier_sel,
GdkPoint *points,
gint n_points,
gpointer data);
/* Functions */ /* Functions */
int bezier_select_load (void *, gint bezier_select_load (void *gdisp_ptr,
BezierPoint *, BezierPoint *points,
gint, gint n_points,
gint); gint closed);
void bezier_draw_curve (BezierSelect *, void bezier_draw_curve (BezierSelect *bezier_sel,
BezierPointsFunc, BezierPointsFunc func,
gint, gint coord,
gpointer); gpointer data);
void bezier_select_reset (BezierSelect *bezier_sel); void bezier_select_reset (BezierSelect *bezier_sel);
void bezier_select_free (BezierSelect *bezier_sel); void bezier_select_free (BezierSelect *bezier_sel);
void bezier_add_point (BezierSelect *, void bezier_add_point (BezierSelect *bezier_sel,
gint, gint type,
gdouble, gdouble x,
gdouble); gdouble y);
void bezier_paste_bezierselect_to_current (GDisplay *gdisp, void bezier_paste_bezierselect_to_current (GDisplay *gdisp,
BezierSelect *bezier_sel); BezierSelect *bezier_sel);
void bezier_select_mode (gint); void bezier_select_mode (gint);
void bezier_stroke (BezierSelect *bezier_sel, void bezier_stroke (BezierSelect *bezier_sel,
GDisplay *gdisp, GDisplay *gdisp,
gint, gint subdivisions,
gint); gint open_path);
void bezier_to_selection (BezierSelect *bezier_sel, void bezier_to_selection (BezierSelect *bezier_sel,
GDisplay *gdisp); GDisplay *gdisp);
gint bezier_distance_along (BezierSelect *bezier_sel, gint bezier_distance_along (BezierSelect *bezier_sel,
gint, gint open_path,
gdouble, gdouble dist,
gint *, gint *x,
gint *, gint *y,
gdouble *); gdouble *gradient);
void bezier_draw (GDisplay *gdisp, void bezier_draw (GDisplay *gdisp,
BezierSelect *bezier_sel); BezierSelect *bezier_sel);
#endif /* __BEZIER_SELECTP_H__ */ #endif /* __BEZIER_SELECTP_H__ */