From b9ca1333769f87c029430a9d14a7a9937d400f93 Mon Sep 17 00:00:00 2001 From: Fabien Costantini Date: Mon, 15 Sep 2008 08:41:54 +0000 Subject: 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 --- src/Fl_Scrollbar.cxx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/Fl_Scrollbar.cxx') 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 #include #include @@ -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); } -- cgit v1.2.3