/* Copyright (C) 1998-2002 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see .
*/
#include
#include
_DEFS(gtkmm,gtk)
_PINCLUDE(gtkmm/private/range_p.h)
namespace Gtk
{
/** A Scrollbar.
*
* The #Scrollbar widget is a horizontal or vertical scrollbar,
* depending on the value of the orientation property.
*
* The position of the thumb in a scrollbar is controlled by the scroll
* adjustments. See Gtk::Adjustment for the fields in an adjustment - for
* Gtk::Scrollbar, the "value" field represents the position of the scrollbar,
* which must be between the "lower" field and "upper - page_size." The
* "page_size" field represents the size of the visible scrollable area. The
* "step_increment" and "page_increment" fields are used when the user asks
* to step down (using the small stepper arrows) or page down (using for
* example the PageDown key).
*
* @ingroup Widgets
*/
class GTKMM_API Scrollbar
: public Range,
public Orientable
{
_CLASS_GTKOBJECT(Scrollbar,GtkScrollbar,GTK_SCROLLBAR,Gtk::Range,GtkRange,,,GTKMM_API)
_IMPLEMENTS_INTERFACE(Orientable)
public:
_CTOR_DEFAULT()
//Note that we try to use the same defaul parameter value as the default property value.
explicit Scrollbar(const Glib::RefPtr& adjustment, Orientation orientation = ORIENTATION_HORIZONTAL);
_IGNORE(gtk_scrollbar_new)
};
} //namespace Gtk
#ifndef GTKMM_DISABLE_DEPRECATED
//Include the deprecated header,
//whose classes were previously in this header,
//to preserve the "API" of the includes.
#include
#endif // GTKMM_DISABLE_DEPRECATED