Debian Codegraph @

gtk/src/scrollbar.hg

raw
1 /* Copyright (C) 1998-2002 The gtkmm Development Team
2 *
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2.1 of the License, or (at your option) any later version.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, see <https://www.gnu.org/licenses/>.
15 */
16
17 #include <gtkmm/range.h>
18 #include <gtkmm/orientable.h>
19
20 _DEFS(gtkmm,gtk)
21 _PINCLUDE(gtkmm/private/range_p.h)
22
23 namespace Gtk
24 {
25
26 /** A Scrollbar.
27 *
28 * The #Scrollbar widget is a horizontal or vertical scrollbar,
29 * depending on the value of the orientation property.
30 *
31 * The position of the thumb in a scrollbar is controlled by the scroll
32 * adjustments. See Gtk::Adjustment for the fields in an adjustment - for
33 * Gtk::Scrollbar, the "value" field represents the position of the scrollbar,
34 * which must be between the "lower" field and "upper - page_size." The
35 * "page_size" field represents the size of the visible scrollable area. The
36 * "step_increment" and "page_increment" fields are used when the user asks
37 * to step down (using the small stepper arrows) or page down (using for
38 * example the PageDown key).
39 *
40 * @ingroup Widgets
41 */
42 class GTKMM_API Scrollbar
43 : public Range,
44 public Orientable
45 {
46 _CLASS_GTKOBJECT(Scrollbar,GtkScrollbar,GTK_SCROLLBAR,Gtk::Range,GtkRange,,,GTKMM_API)
47 _IMPLEMENTS_INTERFACE(Orientable)
48 public:
49 _CTOR_DEFAULT()
50
51 //Note that we try to use the same defaul parameter value as the default property value.
52 explicit Scrollbar(const Glib::RefPtr<Adjustment>& adjustment, Orientation orientation = ORIENTATION_HORIZONTAL);
53 _IGNORE(gtk_scrollbar_new)
54
55 };
56
57 } //namespace Gtk
58
59 #ifndef GTKMM_DISABLE_DEPRECATED
60 //Include the deprecated header,
61 //whose classes were previously in this header,
62 //to preserve the "API" of the includes.
63 #include <gtkmm/hvscrollbar.h>
64 #endif // GTKMM_DISABLE_DEPRECATED