From 2921ca57a03c93d10e8791830256d8baf73e523f Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Mon, 18 Nov 2002 20:51:46 +0000 Subject: Update Fl::get_color() docos. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2844 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/Fl.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'documentation') diff --git a/documentation/Fl.html b/documentation/Fl.html index 01e36e437..f5ccc6064 100644 --- a/documentation/Fl.html +++ b/documentation/Fl.html @@ -741,7 +741,15 @@ overlay colormap.

unsigned get_color(Fl_Color c);
void get_color(Fl_Color c, uchar&r, uchar&g, uchar&b);

-

Returns the color index or RGB value for the given FLTK color index. +

Returns the RGB value(s) for the given FLTK color index. The +first form returns the RGB values packed in a 32-bit unsigned +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. +

const char* get_font(Fl_Font);

-- cgit v1.2.3