summaryrefslogtreecommitdiff
path: root/FL/Fl_Scroll.H
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2009-11-14 17:17:18 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2009-11-14 17:17:18 +0000
commit89ed04701a98d32596709eaeecf46fe5d78ca63e (patch)
tree7b5a3c65a3dc6e1b31f6d4495ddcc6ca1956499a /FL/Fl_Scroll.H
parent07a18370ad2aa1f2253afbf45565d55605a88b47 (diff)
Removed unused members width_ and height_ from Fl_Scroll (STR #2289).
Removed obsolete <P> tags from doxygen docs (Fl_Scroll.H), fixed some typos. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6935 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_Scroll.H')
-rw-r--r--FL/Fl_Scroll.H50
1 files changed, 26 insertions, 24 deletions
diff --git a/FL/Fl_Scroll.H b/FL/Fl_Scroll.H
index 5e256f41a..035a07af9 100644
--- a/FL/Fl_Scroll.H
+++ b/FL/Fl_Scroll.H
@@ -36,22 +36,24 @@
/**
This container widget lets you maneuver around a set of widgets much
- larger than your window. If the child widgets are larger than the size
+ larger than your window. If the child widgets are larger than the size
of this object then scrollbars will appear so that you can scroll over
to them:
- <P ALIGN=CENTER>\image html Fl_Scroll.gif </P>
+ \image html Fl_Scroll.gif
\image latex Fl_Scroll.eps "Fl_Scroll" width=4cm
- <P>If all of the child widgets are packed together into a solid
+
+ If all of the child widgets are packed together into a solid
rectangle then you want to set box() to FL_NO_BOX or
one of the _FRAME types. This will result in the best output.
- However, if the child widgets are a sparse arrangment you must set
- box() to a real _BOX type. This can result in some
+ However, if the child widgets are a sparse arrangement you must
+ set box() to a real _BOX type. This can result in some
blinking during redrawing, but that can be solved by using a
- Fl_Double_Window. </P>
+ Fl_Double_Window.
By default you can scroll in both directions, and the scrollbars
disappear if the data will fit in the area of the scroll.
- <P>Use Fl_Scroll::type() to change this as follows :
+
+ Use Fl_Scroll::type() to change this as follows :
<UL>
<LI>0 - No scrollbars </LI>
<LI>Fl_Scroll::HORIZONTAL - Only a horizontal scrollbar. </LI>
@@ -62,38 +64,38 @@
<LI>Fl_Scroll::BOTH_ALWAYS - Both always on. </LI>
</UL>
- <P> Use <B> scrollbar.align(int) ( see void Fl_Widget::align(Fl_Align) ) :</B>
- to change what side the scrollbars are drawn on.<BR>If the
- FL_ALIGN_LEFT bit is on, the vertical scrollbar is on the left.
+ Use <B> scrollbar.align(int) ( see void Fl_Widget::align(Fl_Align) ) :</B>
+ to change what side the scrollbars are drawn on.
+
+ If the FL_ALIGN_LEFT bit is on, the vertical scrollbar is on the left.
If the FL_ALIGN_TOP bit is on, the horizontal scrollbar is on
the top. Note that only the alignment flags in scrollbar are
considered. The flags in hscrollbar however are ignored.
- <P>This widget can also be used to pan around a single child widget
- "canvas". This child widget should be of your own class, with a
- draw() method that draws the contents. The scrolling is done by
+ This widget can also be used to pan around a single child widget
+ "canvas". This child widget should be of your own class, with a
+ draw() method that draws the contents. The scrolling is done by
changing the x() and y() of the widget, so this child
- must use the x() and y() to position it's drawing.
+ must use the x() and y() to position its drawing.
To speed up drawing it should test fl_push_clip().
- <P>Another very useful child is a single
- Fl_Pack, which is itself a group that packs it's children
- together and changes size to surround them. Filling the Fl_Pack
- with Fl_Tabs groups (and then putting
+ Another very useful child is a single Fl_Pack, which is itself a group
+ that packs its children together and changes size to surround them.
+ Filling the Fl_Pack with Fl_Tabs groups (and then putting
normal widgets inside those) gives you a very powerful scrolling list
- of individually-openable panels. </P>
+ of individually-openable panels.
+
+ Fluid lets you create these, but you can only lay out objects that
+ fit inside the Fl_Scroll without scrolling. Be sure to leave
+ space for the scrollbars, as Fluid won't show these either.
- <P>Fluid lets you create these, but you can only lay out objects that
- fit inside the Fl_Scroll without scrolling. Be sure to leave
- space for the scrollbars, as Fluid won't show these either. </P>
- <P><I>You cannot use Fl_Window as a child of this since the
+ <I>You cannot use Fl_Window as a child of this since the
clipping is not conveyed to it when drawn, and it will draw over the
scrollbars and neighboring objects.</I>
*/
class FL_EXPORT Fl_Scroll : public Fl_Group {
int xposition_, yposition_;
- int width_, height_;
int oldx, oldy;
int scrollbar_size_;
static void hscrollbar_cb(Fl_Widget*, void*);