Debian Codegraph @

gtk/src/shortcutsgroup.hg

raw
1 /* Copyright (C) 2016 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/box.h>
18
19 _DEFS(gtkmm,gtk)
20 _PINCLUDE(gtkmm/private/box_p.h)
21
22 namespace Gtk
23 {
24
25 /** Represents a group of shortcuts in a ShortcutsWindow.
26 *
27 * A ShortcutsGroup represents a group of related keyboard shortcuts
28 * or gestures. The group has a title. It may optionally be associated with
29 * a view of the application, which can be used to show only relevant shortcuts
30 * depending on the application context.
31 *
32 * This widget is only meant to be used with ShortcutsWindow.
33 *
34 * @newin{3,20}
35 *
36 * @ingroup Widgets
37 */
38 class GTKMM_API ShortcutsGroup : public Box
39 {
40 _CLASS_GTKOBJECT(ShortcutsGroup, GtkShortcutsGroup, GTK_SHORTCUTS_GROUP, Box, GtkBox, , , GTKMM_API)
41
42 public:
43 _CTOR_DEFAULT
44
45 /** Unsets the property_view() of this shortcuts group.
46 * The group will then always be visible, regardless of the value of
47 * Gtk::ShortcutsWindow::property_view_name().
48 *
49 * This is a convenience method that calls property_view().reset_value().
50 */
51 void unset_view();
52
53 _WRAP_PROPERTY("title", Glib::ustring)
54 _WRAP_PROPERTY("view", Glib::ustring)
55 _IGNORE_PROPERTY("accel-size-group", "title-size-group", "height")dnl// Internal properties
56 };
57
58 } // namespace Gtk