git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4720 ea41ed52-d2ee-0310-a9c1-e6b18d33e121

This commit is contained in:
Matthias Melcher
2005-12-19 13:33:08 +00:00
parent 3a635d7884
commit a31071deb4
6 changed files with 43 additions and 20 deletions
+9 -10
View File
@@ -392,16 +392,17 @@ any pending redraws can be processed.
<H4><A NAME="Fl.background2">void background2(uchar, uchar, uchar);</A></H4> <H4><A NAME="Fl.background2">void background2(uchar, uchar, uchar);</A></H4>
<P>Changes <tt>fl_color(FL_WHITE)</tt> and the same colors as <tt> <P>Changes the alternative background color. This color is used as a
Fl::foreground()</tt>. This color is used as a background by <tt> background by <tt>Fl_Input</tt> and other text widgets.
Fl_Input</tt> and other text widgets. <P>This call may change <tt>fl_color(FL_FOREGROUND_COLOR)</tt> if it
does not provide sufficient contrast to FL_BACKGROUND2_COLOR.
<H4><A NAME="Fl.background">void background(uchar, uchar, uchar);</A></H4> <H4><A NAME="Fl.background">void background(uchar, uchar, uchar);</A></H4>
<P>Changes <tt>fl_color(FL_GRAY)</tt> to the given color, and changes the <P>Changes <tt>fl_color(FL_BACKGROUND_COLOR)</tt> to the given color,
gray ramp from 32 to 56 to black to white. These are the colors used and changes the gray ramp from 32 to 56 to black to white. These are
as backgrounds by almost all widgets and used to draw the edges of all the colors used as backgrounds by almost all widgets and used to draw
the boxtypes. the edges of all the boxtypes.
<H4><A NAME="Fl.belowmouse">Fl_Widget* belowmouse();<BR> <H4><A NAME="Fl.belowmouse">Fl_Widget* belowmouse();<BR>
void belowmouse(Fl_Widget*);</A></H4> void belowmouse(Fl_Widget*);</A></H4>
@@ -760,9 +761,7 @@ test</I> if the widget wants the focus (by it returning non-zero from
<H4><A NAME="Fl.foreground">void foreground(uchar, uchar, uchar);</A></H4> <H4><A NAME="Fl.foreground">void foreground(uchar, uchar, uchar);</A></H4>
<P>Changes <tt>fl_color(FL_BLACK)</tt>. Also changes <tt> <P>Changes <tt>fl_color(FL_FOREGROUND_COLOR)</tt>.
FL_INACTIVE_COLOR</tt> and <tt>FL_SELECTION_COLOR</tt> to be a ramp
between this and <tt>FL_WHITE</tt>.
<H4><A NAME="Fl.free_color">void free_color(Fl_Color c, int overlay = 0);</A></H4> <H4><A NAME="Fl.free_color">void free_color(Fl_Color c, int overlay = 0);</A></H4>
+3 -3
View File
@@ -165,9 +165,9 @@ image height.</P>
<H4><A NAME="Fl_Image.inactive">void inactive();</A></H4> <H4><A NAME="Fl_Image.inactive">void inactive();</A></H4>
<P>The <TT>inactive()</TT> method calls <P>The <TT>inactive()</TT> method calls
<TT>color_average(FL_GRAY, 0.33f)</TT> to produce an image that <TT>color_average(FL_BACKGROUND_COLOR, 0.33f)</TT> to produce
appears grayed out. <I>This method does not alter the original an image that appears grayed out. <I>This method does not
image data.</I></P> alter the original image data.</I></P>
<H4><A NAME="Fl_Image.label">virtual void label(Fl_Widget *w); <H4><A NAME="Fl_Image.label">virtual void label(Fl_Widget *w);
virtual void label(Fl_Menu_Item *m);</A></H4> virtual void label(Fl_Menu_Item *m);</A></H4>
+2 -2
View File
@@ -241,7 +241,7 @@ normally, all widgets participate in keyboard focus navigation.
passed to the box routine. The color is either an index into an passed to the box routine. The color is either an index into an
internal table of RGB colors or an RGB color value generated internal table of RGB colors or an RGB color value generated
using <TT>fl_rgb_color()</TT>. The default for most widgets is using <TT>fl_rgb_color()</TT>. The default for most widgets is
<TT>FL_GRAY</TT>. See the <A <TT>FL_BACKGROUND_COLOR</TT>. See the <A
href=enumerations.html#Enumerations>enumeration list</A> for href=enumerations.html#Enumerations>enumeration list</A> for
predefined colors. Use <A predefined colors. Use <A
href="Fl.html#Fl.set_color"><TT>Fl::set_color()</TT></A> to href="Fl.html#Fl.set_color"><TT>Fl::set_color()</TT></A> to
@@ -347,7 +347,7 @@ automatically.</p>
<H4><A name=Fl_Widget.labelcolor>Fl_Color Fl_Widget::labelcolor() const <H4><A name=Fl_Widget.labelcolor>Fl_Color Fl_Widget::labelcolor() const
<BR> void Fl_Widget::labelcolor(Fl_Color)</A></H4> <BR> void Fl_Widget::labelcolor(Fl_Color)</A></H4>
<P>Gets or sets the label color. The default color is <TT>FL_BLACK</TT>. <P>Gets or sets the label color. The default color is <TT>FL_FOREGROUND_COLOR</TT>.
<H4><A name=Fl_Widget.labelfont>Fl_Font Fl_Widget::labelfont() const <H4><A name=Fl_Widget.labelfont>Fl_Font Fl_Widget::labelfont() const
+14 -2
View File
@@ -214,7 +214,7 @@ fixed contents.</P>
<P>There are symbols for naming some of the more common colors:</P> <P>There are symbols for naming some of the more common colors:</P>
<UL> <UL>
<LI><TT>FL_BLACK</TT> (this is the default label color)</LI> <LI><TT>FL_BLACK</TT></LI>
<LI><TT>FL_RED</TT></LI> <LI><TT>FL_RED</TT></LI>
@@ -229,8 +229,20 @@ fixed contents.</P>
<LI><TT>FL_CYAN</TT></LI> <LI><TT>FL_CYAN</TT></LI>
<LI><TT>FL_WHITE</TT></LI> <LI><TT>FL_WHITE</TT></LI>
</UL>
<LI><TT>FL_GRAY</TT> (this is the default color of most widgets)</LI> <P>These symbols are the default colors for all FLTK widgets. They are
explained in more detail in the chapter
<A HREF="enumerations.html#colors">Enumerations</A></P>
<UL>
<LI><TT>FL_FOREGROUND_COLOR</TT> </LI>
<LI><TT>FL_BACKGROUND_COLOR</TT> </LI>
<LI><TT>FL_INACTIVE_COLOR</TT> </LI>
<LI><TT>FL_SELECTION_COLOR</TT> </LI>
</UL> </UL>
<P>RGB colors can be set using the <A HREF="functions.html#fl_rgb_color"><TT>fl_rgb_color()</TT></A> <P>RGB colors can be set using the <A HREF="functions.html#fl_rgb_color"><TT>fl_rgb_color()</TT></A>
+12
View File
@@ -12,6 +12,18 @@
instead of the unsigned character in 1.0.x. This allows for the instead of the unsigned character in 1.0.x. This allows for the
specification of 24-bit RGB values or 8-bit FLTK color indices. specification of 24-bit RGB values or 8-bit FLTK color indices.
<P><TT>FL_BLACK</TT> and <TT>FL_WHITE</TT> now remain black and
white, even if the base color of the gray ramp is changed using
<A HREF="Fl.html#Fl.background"><TT>Fl::background()</TT></A>.
<TT>FL_DARK3</TT> and <TT>FL_LIGHT3</TT> can be used instead to
draw a very dark or a very bright background hue.</P>
<P>Widgets use the new color symbols <TT>FL_FORGROUND_COLOR</TT>,
<TT>FL_BACKGROUND_COLOR</TT>, <TT>FL_BACKGROUND2_COLOR</TT>,
<TT>FL_INACTIVE_COLOR</TT>, and <TT>FL_SELECTION_COLOR</TT>.
More details can be found in the chapter
<A HREF="enumerations.html#colors">Enumerations</A>.</P>
<H2>Cut and Paste Support</H2> <H2>Cut and Paste Support</H2>
<P>The FLTK clipboard is now broken into two parts - a local <P>The FLTK clipboard is now broken into two parts - a local
+3 -3
View File
@@ -43,12 +43,12 @@ and initializes the other instance variables to:
<UL><PRE> <UL><PRE>
type(0); type(0);
box(FL_NO_BOX); box(FL_NO_BOX);
color(FL_GRAY); color(FL_BACKGROUND_COLOR);
selection_color(FL_GRAY); selection_color(FL_BACKGROUND_COLOR);
labeltype(FL_NORMAL_LABEL); labeltype(FL_NORMAL_LABEL);
labelstyle(FL_NORMAL_STYLE); labelstyle(FL_NORMAL_STYLE);
labelsize(FL_NORMAL_SIZE); labelsize(FL_NORMAL_SIZE);
labelcolor(FL_BLACK); labelcolor(FL_FOREGROUND_COLOR);
align(FL_ALIGN_CENTER); align(FL_ALIGN_CENTER);
callback(default_callback,0); callback(default_callback,0);
flags(ACTIVE|VISIBLE); flags(ACTIVE|VISIBLE);