fl_line_style() docs refer to the enum (#1016)

This commit is contained in:
Greg Ercolano 2024-07-20 09:51:10 -07:00
parent ffe39737e5
commit e64e708345

View File

@ -223,8 +223,8 @@ inline void fl_point(int x, int y) {
If you change this it is your responsibility to set it back to the default If you change this it is your responsibility to set it back to the default
using \c fl_line_style(0). using \c fl_line_style(0).
\param[in] style A bitmask which is a bitwise-OR of a line style, a cap \param[in] style A bitmask which is a bitwise-OR of \ref LineStyles "Line Styles",
style, and a join style. If you don't specify a dash type you a cap style, and a join style. If you don't specify a dash type you
will get a solid line. If you don't specify a cap or join type will get a solid line. If you don't specify a cap or join type
you will get a system-defined default of whatever value is fastest. you will get a system-defined default of whatever value is fastest.
\param[in] width The thickness of the lines in pixels. Zero results in the \param[in] width The thickness of the lines in pixels. Zero results in the
@ -249,6 +249,8 @@ inline void fl_point(int x, int y) {
inline void fl_line_style(int style, int width = 0, char *dashes = 0) { inline void fl_line_style(int style, int width = 0, char *dashes = 0) {
fl_graphics_driver->line_style(style, width, dashes); fl_graphics_driver->line_style(style, width, dashes);
} }
/// \anchor LineStyles
enum { enum {
FL_SOLID = 0, ///< line style: <tt>___________</tt> FL_SOLID = 0, ///< line style: <tt>___________</tt>
FL_DASH = 1, ///< line style: <tt>_ _ _ _ _ _</tt> FL_DASH = 1, ///< line style: <tt>_ _ _ _ _ _</tt>