Commit 8db6b9cf authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

added stubs of two new snapping functions.

2005-09-30  Michael Natterer  <mitch@gimp.org>

	* app/vectors/gimpstroke.[ch]: added stubs of two new snapping
	functions.

	* app/core/gimpimage-snap.c: removed their #defines here.
parent f6b37095
2005-09-30 Michael Natterer <mitch@gimp.org>
* app/vectors/gimpstroke.[ch]: added stubs of two new snapping
functions.
* app/core/gimpimage-snap.c: removed their #defines here.
2005-09-30 Sven Neumann <sven@gimp.org>
* app/core/core-enums.[ch]
......
......@@ -543,11 +543,6 @@ gimp_image_snap_rectangle (GimpImage *gimage,
GimpCoords nearest;
gdouble dist;
#define gimp_stroke_nearest_tangent_get(stroke,coords1,coords2,\
d,e,f,g,h) FALSE
#define gimp_stroke_nearest_intersection_get(stroke,coords,direction,\
d,e,f,g,h) FALSE
/* top edge */
coords1.x = x1;
......
......@@ -432,6 +432,48 @@ gimp_stroke_nearest_point_get (const GimpStroke *stroke,
ret_pos);
}
gdouble
gimp_stroke_nearest_tangent_get (const GimpStroke *stroke,
const GimpCoords *coords1,
const GimpCoords *coords2,
gdouble precision,
GimpCoords *nearest,
GimpAnchor **ret_segment_start,
GimpAnchor **ret_segment_end,
gdouble *ret_pos)
{
g_return_val_if_fail (GIMP_IS_STROKE (stroke), FALSE);
g_return_val_if_fail (coords1 != NULL, FALSE);
g_return_val_if_fail (coords2 != NULL, FALSE);
#ifdef __GNUC__
#warning please implement me, nomis!
#endif
return -1;
}
gdouble
gimp_stroke_nearest_intersection_get (const GimpStroke *stroke,
const GimpCoords *coords1,
const GimpCoords *coords2,
gdouble precision,
GimpCoords *nearest,
GimpAnchor **ret_segment_start,
GimpAnchor **ret_segment_end,
gdouble *ret_pos)
{
g_return_val_if_fail (GIMP_IS_STROKE (stroke), FALSE);
g_return_val_if_fail (coords1 != NULL, FALSE);
g_return_val_if_fail (coords2 != NULL, FALSE);
#ifdef __GNUC__
#warning please implement me, nomis!
#endif
return -1;
}
static gdouble
gimp_stroke_real_nearest_point_get (const GimpStroke *stroke,
const GimpCoords *coord,
......
......@@ -175,6 +175,22 @@ gdouble gimp_stroke_nearest_point_get (const GimpStroke *stroke,
GimpAnchor **ret_segment_start,
GimpAnchor **ret_segment_end,
gdouble *ret_pos);
gdouble gimp_stroke_nearest_tangent_get (const GimpStroke *stroke,
const GimpCoords *coords1,
const GimpCoords *coords2,
gdouble precision,
GimpCoords *nearest,
GimpAnchor **ret_segment_start,
GimpAnchor **ret_segment_end,
gdouble *ret_pos);
gdouble gimp_stroke_nearest_intersection_get (const GimpStroke *stroke,
const GimpCoords *coords1,
const GimpCoords *coords2,
gdouble precision,
GimpCoords *nearest,
GimpAnchor **ret_segment_start,
GimpAnchor **ret_segment_end,
gdouble *ret_pos);
/* prev == NULL: "first" anchor */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment