Lines Matching refs:num_points

121   curve->num_points = 0;  in curve_editor_init()
124 curve->spline.num_points = 0; in curve_editor_init()
158 if (c->num_points != width) in curve_editor_interpolate()
160 c->num_points = width; in curve_editor_interpolate()
163 c->point = g_malloc (c->num_points * sizeof (c->point[0])); in curve_editor_interpolate()
186 if (c->height != height || c->num_points != width) in curve_editor_draw()
217 gdk_draw_lines (c->pixmap, style->fg_gc[state], c->point, c->num_points); in curve_editor_draw()
219 for (i = 0; i < c->spline.num_points; ++i) in curve_editor_draw()
270 for (i = 0; i < c->spline.num_points; ++i) in curve_editor_graph_events()
304 if (c->spline.num_points > 0) in curve_editor_graph_events()
311 ++c->spline.num_points; in curve_editor_graph_events()
314 c->spline.num_points * sizeof (*c->spline.points)); in curve_editor_graph_events()
315 for (i = c->spline.num_points - 1; i > closest_point; --i) in curve_editor_graph_events()
336 for (src = dst = 0; src < c->spline.num_points; ++src) in curve_editor_graph_events()
347 c->spline.num_points -= (src - dst); in curve_editor_graph_events()
348 if (c->spline.num_points <= 0) in curve_editor_graph_events()
350 c->spline.num_points = 1; in curve_editor_graph_events()
358 c->spline.num_points * sizeof (*c->spline.points)); in curve_editor_graph_events()
387 if (c->grab_point + 1 < c->spline.num_points) in curve_editor_graph_events()
434 self->spline.num_points = spline->num_points; in curve_editor_set_spline()
435 self->spline.points = g_malloc (spline->num_points * sizeof (SplineControlPoint)); in curve_editor_set_spline()
436 memcpy(self->spline.points, spline->points, spline->num_points * sizeof (SplineControlPoint)); in curve_editor_set_spline()