summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorengelsman <engelsman>2008-10-16 20:56:43 +0000
committerengelsman <engelsman>2008-10-16 20:56:43 +0000
commit4b48d5f84ad79267c701cd5c1a8e9262d0921bcb (patch)
treefce047e46faa7fd0c6a992249173b9f6659e617f /src
parentee1db2a27ceabd1a6eb826df61103cf5a1e6acba (diff)
added more minor doxygen comments for fl_draw.H and fl_line_style.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6444 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/fl_line_style.cxx32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/fl_line_style.cxx b/src/fl_line_style.cxx
index 222ba8a68..63cf2da8d 100644
--- a/src/fl_line_style.cxx
+++ b/src/fl_line_style.cxx
@@ -25,6 +25,11 @@
// http://www.fltk.org/str.php
//
+/**
+ \file fl_line_style.cxx
+ \brief Line style drawing utility hiding different platforms.
+*/
+
#include <FL/Fl.H>
#include <FL/fl_draw.H>
#include <FL/x.H>
@@ -45,6 +50,33 @@ void fl_quartz_restore_line_style_() {
}
#endif
+/**
+ Set how to draw lines (the "pen").
+ If you change this it is your responsibility to set it back to the default
+ using \c fl_line_style(0).
+
+ \param[in] style A bitmask which is a bitwise-OR of a line style, 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
+ 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
+ system defined default, which on both X and Windows is somewhat
+ different and nicer than 1.
+ \param[in] dashes A pointer to an array of dash lengths, measured in pixels.
+ The first location is how long to draw a solid portion, the next
+ is how long to draw the fap, then the solid, etc. It is terminated
+ with a zero-length entry. A \c NULL pointer or a zero-length
+ array results in a solid line. Odd array sizes are not supported
+ and result in undefined behavior.
+
+ \note Because of how line styles are implemented on Win32 systems,
+ you \e must set the line style \e after setting the drawing
+ color. If you set the color after the line style you will lose
+ the line style settings.
+ \note The \a dashes array does not work under Windows 95, 98 or Me,
+ since those operating systems do not support complex line styles.
+*/
void fl_line_style(int style, int width, char* dashes) {
#if defined(USE_X11)