diff options
| author | Fabien Costantini <fabien@onepost.net> | 2008-09-15 08:41:54 +0000 |
|---|---|---|
| committer | Fabien Costantini <fabien@onepost.net> | 2008-09-15 08:41:54 +0000 |
| commit | b9ca1333769f87c029430a9d14a7a9937d400f93 (patch) | |
| tree | 61b8043afc286a950b7624004ed549f84531fdb3 /src/Fl_Scrollbar.cxx | |
| parent | fdcfef214e67b0b1162ef4098ba960efd7049523 (diff) | |
Doxygen documentation WP8 Done. Reserved WP9, WP10. Will now check WP3 from engelsman and integrates it.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6250 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Scrollbar.cxx')
| -rw-r--r-- | src/Fl_Scrollbar.cxx | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/Fl_Scrollbar.cxx b/src/Fl_Scrollbar.cxx index b2c50905f..765adde00 100644 --- a/src/Fl_Scrollbar.cxx +++ b/src/Fl_Scrollbar.cxx @@ -25,6 +25,7 @@ // http://www.fltk.org/str.php // + #include <FL/Fl.H> #include <FL/Fl_Scrollbar.H> #include <FL/fl_draw.H> @@ -254,9 +255,13 @@ void Fl_Scrollbar::draw() { } } +/** + Creates a new Fl_Scrollbar widget using the given position, + size, and label string. You need to do type(FL_HORIZONTAL) if + you want a horizontal scrollbar. +*/ Fl_Scrollbar::Fl_Scrollbar(int X, int Y, int W, int H, const char* L) - : Fl_Slider(X, Y, W, H, L) -{ + : Fl_Slider(X, Y, W, H, L) { box(FL_FLAT_BOX); color(FL_DARK2); slider(FL_UP_BOX); @@ -265,8 +270,8 @@ Fl_Scrollbar::Fl_Scrollbar(int X, int Y, int W, int H, const char* L) step(1); } -Fl_Scrollbar::~Fl_Scrollbar() -{ +/** Destroys the Scrollbar. */ +Fl_Scrollbar::~Fl_Scrollbar() { if (pushed_) Fl::remove_timeout(timeout_cb, this); } |
