diff --git a/CHANGES b/CHANGES index e52a6e2fe..81d92b834 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,6 @@ CHANGES IN FLTK 1.1.0 + - Documentation updates. - Tweeked the look of the check button with a patch from Albrecht Schlosser. diff --git a/documentation/Fl_Tabs.html b/documentation/Fl_Tabs.html index 4e1cfde4f..d9c8dabb6 100644 --- a/documentation/Fl_Tabs.html +++ b/documentation/Fl_Tabs.html @@ -1,64 +1,88 @@ -
+ + + ++ +
Fl_Group
|
+----Fl_Tabs
-
-
+
+
+ +
#include <FL/Fl_Tabs.H> -- + +
The Fl_Tabs widget is the "file card tabs" +interface that allows you to put lots and lots of buttons and +switches in a panel, as popularized by many toolkits. +

Clicking the tab makes a child visible() (by calling -show() on it) and all other children are invisible (by calling -hide() on them). Usually the children are -Fl_Group widgets containing several widgets -themselves.
-Each child makes a card, and it's label() is printed on the -card tab (including the label font and style). The color of that child -is used to color the card as well. Currently this only draws nicely if -you set box() to the -default FL_THIN_UP_BOX or to FL_FLAT_BOX, which gets -rid of the edges drawn on the sides and bottom.
+ +Clicking the tab makes a child visible() by calling +show() on it, and all other children are made invisible +by calling hide() on them. Usually the children are Fl_Group widgets +containing several widgets themselves. + +
Each child makes a card, and it's label() is printed +on the card tab, including the label font and style. The +selection color of that child is used to color the tab, while +the color of the child determines the background color of the +pane. +
The size of the tabs is controlled by the bounding box of the -children (there should be some space between the children and the edge -of the Fl_Tabs), and the tabs may be placed "inverted" on the -bottom, this is determined by which gap is larger. It is easiest to -lay this out in fluid, using the fluid browser to select each child -group and resize them until the tabs look the way you want them to.
+children (there should be some space between the children and +the edge of the Fl_Tabs), and the tabs may be placed +"inverted" on the bottom, this is determined by which +gap is larger. It is easiest to lay this out in fluid, using the +fluid browser to select each child group and resize them until +the tabs look the way you want them to. +Creates a new Fl_Tabs widget using the given position, size, and label string. The default boxtype is FL_THIN_UP_BOX. -
Use add(Fl_Widget *) - to add each child (which is probably itself a Fl_Group). The -children should be sized to stay away from the top or bottom edge of -the Fl_Tabs, which is where the tabs are drawn.
-Use add(Fl_Widget +*) to add each child, which are usually +Fl_Group widgets. The children should be sized to stay +away from the top or bottom edge of the Fl_Tabs widget, +which is where the tabs will be drawn. + +
The destructor also deletes all the children. This +allows a whole tree to be deleted at once, without having to +keep a pointer to all the children in the user code. A kludge +has been done so the Fl_Tabs and all of it's children +can be automatic (local) variables, but you must declare the +Fl_Tabs widget first so that it is destroyed +last. + +
Gets or sets the currently visible widget/tab. + + + diff --git a/documentation/functions.html b/documentation/functions.html index d38f2615f..cdd3f7666 100644 --- a/documentation/functions.html +++ b/documentation/functions.html @@ -13,10 +13,13 @@ A
.
+
+
+#include <FL/Enumerations.H> ++ +
+Fl_Color fl_average_color(Fl_Color c1, Fl_Color c2, float weight); ++ +
Returns the weighted average color between the two colors. +The red, green, and blue values are averaged using the following +formula: + +
+color = c1 * weight + c2 * (1 - weight) ++ +
Thus, a weight value of 1.0 will return the
+first color, while a value of 0.0 will return the second color.
+
+
+#include <FL/Enumerations.H> ++ +
+Fl_Color fl_contrast(Fl_Color fg, Fl_Color bg); ++ +
Returns the foreground color if it contrasts sufficiently
+with the background color. Otherwise, returns
+FL_WHITE or FL_BLACK depending on
+which color provides the best contrast.
+
+
+
+
+#include <FL/Enumerations.H> ++ +
+Fl_Color fl_darker(Fl_Color c); ++ +
Returns a darker version of the specified color. + +
+
+
+#include <FL/Enumerations.H> ++ +
+Fl_Color fl_lighter(Fl_Color c); ++ +
Returns a lighter version of the specified color. + +