Reformat to FLTK style, improve documentation

No code changes.

Replace '#define fl_clip ..' with an inline method.
This commit is contained in:
Albrecht Schlosser 2021-11-16 00:02:16 +01:00
parent e4d8b94102
commit b2979b6425
4 changed files with 603 additions and 457 deletions

File diff suppressed because it is too large Load Diff

View File

@ -635,7 +635,7 @@ Add a single vertex to the current path.
void fl_curve(double X0, double Y0, double X1, double Y1, double X2, double Y2, double X3, double Y3)
\par
Add a series of points on a Bezier curve to the path. The curve ends
Add a series of points on a Bézier curve to the path. The curve ends
(and two of the points are) at <tt>X0,Y0</tt> and <tt>X3,Y3</tt>.
\anchor drawing_fl_arc

View File

@ -266,7 +266,7 @@ on few systems (some version of Irix for example).
\subsection examples_curve curve
\par
\c curve draws a nice Bezier curve into a custom widget. The
\c curve draws a nice Bézier curve into a custom widget. The
<i>points</i> option for splines is not supported on all platforms.

View File

@ -1,5 +1,5 @@
//
// Bezier curve functions for the Fast Light Tool Kit (FLTK).
// Bézier curve functions for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2010 by Bill Spitzak and others.
//
@ -16,7 +16,7 @@
/**
\file fl_curve.cxx
\brief Utility for drawing Bezier curves, adding the points to the
\brief Utility for drawing Bézier curves, adding the points to the
current fl_begin/fl_vertex/fl_end path.
Incremental math implementation: