Debian Codegraph @

gtk/src/stacksidebar.hg

raw
1 /* Copyright (C) 2015 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 <http://www.gnu.org/licenses/>.
15 */
16
17 #include <gtkmm/bin.h>
18 #include <gtkmm/stack.h>
19
20 _DEFS(gtkmm,gtk)
21 _PINCLUDE(gtkmm/private/bin_p.h)
22
23 namespace Gtk
24 {
25 class GTKMM_API Stack;
26
27 // Gtk::StackSidebar is formally a container widget, but it's not included
28 // in group Containers. A StackSidebar adds its children itself, when a Stack
29 // is connected. Users of StackSidebar shall not call its inherited add() method.
30
31 /** Sidebar widget that shows the pages of a Stack.
32 *
33 * A StackSidebar enables you to quickly and easily provide a
34 * consistent "sidebar" object for your user interface.
35 *
36 * In order to use a StackSidebar, you simply use a Stack to
37 * organize your UI flow, and add the sidebar to your sidebar area. You
38 * can use set_stack() to connect the StackSidebar to the Stack.
39 *
40 * @ingroup Widgets
41 * @newin{3,16}
42 */
43 class GTKMM_API StackSidebar : public Bin
44 {
45 _CLASS_GTKOBJECT(StackSidebar,GtkStackSidebar,GTK_STACK_SIDEBAR,Gtk::Bin,GtkBin,,,GTKMM_API)
46 public:
47 _CTOR_DEFAULT
48
49 _WRAP_METHOD(void set_stack(Stack& stack), gtk_stack_sidebar_set_stack)
50 /** Unsets the associated Stack.
51 * @see set_stack().
52 * @newin{3,16}
53 */
54 void unset_stack();
55
56 _WRAP_METHOD(Stack* get_stack(), gtk_stack_sidebar_get_stack)
57 _WRAP_METHOD(const Stack* get_stack() const, gtk_stack_sidebar_get_stack, constversion)
58
59 _WRAP_PROPERTY("stack", Stack*)
60
61 // There are no signals or vfuncs.
62 };
63
64 } //namespace Gtk