Debian Codegraph @

gtk/src/separator.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/widget.h>
18 #include <gtkmm/orientable.h>
19
20 _DEFS(gtkmm,gtk)
21 _PINCLUDE(gtkmm/private/widget_p.h)
22
23
24 namespace Gtk
25 {
26
27 /** A separator widget.
28 *
29 * Gtk::Separator is a horizontal or vertical separator widget, depending on the
30 * value of the orientation property, used to group the widgets within a
31 * window. It displays a line with a shadow to make it appear sunken into the
32 * interface.
33 */
34 class GTKMM_API Separator
35 : public Widget,
36 public Orientable
37 {
38 _CLASS_GTKOBJECT(Separator,GtkSeparator,GTK_SEPARATOR,Gtk::Widget,GtkWidget,,,GTKMM_API)
39 _IMPLEMENTS_INTERFACE(Orientable)
40 public:
41
42 //Note that we try to use the same default parameter value as the default property value.
43 _WRAP_CTOR(Separator(Orientation orientation = ORIENTATION_HORIZONTAL), gtk_separator_new)
44 };
45
46 } //namespace Gtk
47
48 #ifndef GTKMM_DISABLE_DEPRECATED
49 //Include the deprecated header,
50 //whose classes were previously in this header,
51 //to preserve the "API" of the includes.
52 #include <gtkmm/hvseparator.h>
53 #endif // GTKMM_DISABLE_DEPRECATED