Skip to content

Commit

Permalink
fl_line_style() diagrams replace ascii art (fltk#1016)
Browse files Browse the repository at this point in the history
  • Loading branch information
erco77 committed Jul 20, 2024
1 parent e64e708 commit 7f998ba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions FL/fl_draw.H
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ inline void fl_point(int x, int y) {
If you change this it is your responsibility to set it back to the default
using \c fl_line_style(0).
\image html fl_line_style.png "fl_line_style() styles"
\image latex fl_line_style.png "fl_line_style() styles" width=4cm
\param[in] style A bitmask which is a bitwise-OR of \ref LineStyles "Line Styles",
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
Expand Down Expand Up @@ -251,12 +254,16 @@ inline void fl_line_style(int style, int width = 0, char *dashes = 0) {
}

/// \anchor LineStyles
///
/// \image html fl_line_style.png "fl_line_style() styles"
/// \image latex fl_line_style.png "fl_line_style() styles" width=4cm
///
enum {
FL_SOLID = 0, ///< line style: <tt>___________</tt>
FL_DASH = 1, ///< line style: <tt>_ _ _ _ _ _</tt>
FL_DOT = 2, ///< line style: <tt>. . . . . .</tt>
FL_DASHDOT = 3, ///< line style: <tt>_ . _ . _ .</tt>
FL_DASHDOTDOT = 4, ///< line style: <tt>_ . . _ . .</tt>
FL_SOLID = 0, ///< line style: solid line
FL_DASH = 1, ///< line style: 75% dashed line
FL_DOT = 2, ///< line style: 50% pixel dotted
FL_DASHDOT = 3, ///< line style: dash / dot pattern
FL_DASHDOTDOT = 4, ///< line style: dash / two dot pattern

FL_CAP_FLAT = 0x100, ///< cap style: end is flat
FL_CAP_ROUND = 0x200, ///< cap style: end is round
Expand Down
Binary file added documentation/src/fl_line_style.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7f998ba

Please sign in to comment.