Debian Codegraph @

gtk/src/toolshell.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 <glibmm/interface.h>
18 #include <gtkmm/enums.h>
19 #include <gtkmm/sizegroup.h>
20
21 _DEFS(gtkmm,gtk)
22 _PINCLUDE(glibmm/private/interface_p.h)
23
24 #ifndef DOXYGEN_SHOULD_SKIP_THIS
25 extern "C"
26 {
27 typedef struct _GtkToolShellIface GtkToolShellIface;
28 }
29 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
30
31 namespace Gtk
32 {
33
34 /** A base class for containers containing ToolItem widgets.
35 * This interface allows container widgets to provide additional information when embedding ToolItem widgets.
36 *
37 * @newin{2,14}
38 */
39 class GTKMM_API ToolShell : public Glib::Interface
40 {
41 _CLASS_INTERFACE(ToolShell, GtkToolShell, GTK_TOOL_SHELL, GtkToolShellIface, , , GTKMM_API)
42
43 public:
44 _WRAP_METHOD(IconSize get_icon_size() const, gtk_tool_shell_get_icon_size)
45 _WRAP_METHOD(Orientation get_orientation() const, gtk_tool_shell_get_orientation)
46 _WRAP_METHOD(ToolbarStyle get_style() const, gtk_tool_shell_get_style)
47 _WRAP_METHOD(ReliefStyle get_relief_style() const, gtk_tool_shell_get_relief_style)
48 _WRAP_METHOD(void rebuild_menu(), gtk_tool_shell_rebuild_menu)
49 _WRAP_METHOD(Orientation get_text_orientation() const, gtk_tool_shell_get_text_orientation)
50 _WRAP_METHOD(float get_text_alignment() const, gtk_tool_shell_get_text_alignment)
51 _WRAP_METHOD(Pango::EllipsizeMode get_ellipsize_mode() const, gtk_tool_shell_get_ellipsize_mode)
52
53 _WRAP_METHOD(Glib::RefPtr<SizeGroup> get_text_size_group(), gtk_tool_shell_get_text_size_group, refreturn)
54 _WRAP_METHOD(Glib::RefPtr<const SizeGroup> get_text_size_group() const, gtk_tool_shell_get_text_size_group, refreturn, constversion)
55
56 protected:
57
58 _WRAP_VFUNC(IconSize get_icon_size(), get_icon_size)
59 _WRAP_VFUNC(Orientation get_orientation(), get_orientation)
60 _WRAP_VFUNC(ToolbarStyle get_style(), get_style)
61 _WRAP_VFUNC(ReliefStyle get_relief_style(), get_relief_style)
62 _WRAP_VFUNC(void rebuild_menu(), rebuild_menu)
63 //TODO: Add the other vfuncs when we can break ABI.
64 };
65
66 } // namespace Gtk