summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorengelsman <engelsman>2010-10-27 22:07:55 +0000
committerengelsman <engelsman>2010-10-27 22:07:55 +0000
commitfc1a878290197e5e4ec037e65662a90c8f5ce3a8 (patch)
treee9bf12d97b919244116abe0d481c7d3bfa4e3edf /src
parentb10ffb40d8e4b9eac1e47af53c8926e13d23d1a1 (diff)
reworked color documentation as suggested in STR #2373
part of the confusion was the main page link to Common Widgets and Attributes/Colors actually went to Drawing Things in FLTK/Colors therefore making it harder to find information. Common Widgets and Attribute/Colors now simplified Drawing Things in FLTK/Colors now expanded FLTK Enumerations/Colors now simplified git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7762 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/fl_color.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/fl_color.cxx b/src/fl_color.cxx
index b4cee410b..9c8c4bb25 100644
--- a/src/fl_color.cxx
+++ b/src/fl_color.cxx
@@ -366,9 +366,6 @@ void Fl::set_color(Fl_Color i, unsigned c) {
integer with the red value in the upper 8 bits, the green value
in the next 8 bits, and the blue value in bits 8-15. The lower
8 bits will always be 0.
-
- The second form returns the red, green, and blue values
- separately in referenced variables.
*/
unsigned Fl::get_color(Fl_Color i) {
if (i & 0xffffff00) return (i);
@@ -383,7 +380,14 @@ void Fl::set_color(Fl_Color i, uchar red, uchar green, uchar blue) {
Fl::set_color((Fl_Color)(i & 255),
((unsigned)red<<24)+((unsigned)green<<16)+((unsigned)blue<<8));
}
-/** See unsigned get_color(Fl_Color c) */
+/**
+ Returns the RGB value(s) for the given FLTK color index.
+
+ This form returns the red, green, and blue values
+ separately in referenced variables.
+
+ See also unsigned get_color(Fl_Color c)
+ */
void Fl::get_color(Fl_Color i, uchar &red, uchar &green, uchar &blue) {
unsigned c;