summaryrefslogtreecommitdiff
path: root/src/fl_color.cxx
diff options
context:
space:
mode:
authorengelsman <engelsman>2008-10-15 21:38:38 +0000
committerengelsman <engelsman>2008-10-15 21:38:38 +0000
commit065cfaadbe31f61dc5530b3dc4bf6ec6293cb1a8 (patch)
treee051d8f23f47414ac16925f516c9af84856556ff /src/fl_color.cxx
parent4f60171ba69ab0fba32a1ed1221b981f92d1c69a (diff)
minor doxygen updates for fl_draw.H, fl_color.cxx and fl_vertex.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6442 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_color.cxx')
-rw-r--r--src/fl_color.cxx12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/fl_color.cxx b/src/fl_color.cxx
index a3f82df19..b5b98401b 100644
--- a/src/fl_color.cxx
+++ b/src/fl_color.cxx
@@ -307,6 +307,11 @@ void fl_color(Fl_Color i) {
}
}
+/**
+ Free color \a i if used, and clear mapping table entry.
+ \param[in] i color index
+ \param[in] overlay 0 for normal, 1 for overlay color
+*/
void Fl::free_color(Fl_Color i, int overlay) {
# if HAVE_OVERLAY
# else
@@ -326,6 +331,11 @@ void Fl::free_color(Fl_Color i, int overlay) {
}
}
+/**
+ Set color mapping table entry \a i to color \a c
+ \param[in] i color index
+ \param[in] c color
+*/
void Fl::set_color(Fl_Color i, unsigned c) {
if (fl_cmap[i] != c) {
free_color(i,0);
@@ -344,7 +354,7 @@ void Fl::set_color(Fl_Color i, unsigned c) {
in the next 8 bits, and the blue value in bits 8-15. The lower
8 bits will always be 0.
- <P>The second form returns the red, green, and blue values
+ The second form returns the red, green, and blue values
separately in referenced variables.
*/
unsigned Fl::get_color(Fl_Color i) {