Debian Codegraph @

gtk/src/shortcutsshortcut.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 #include <gtkmm/enums.h>
19 #include <giomm/icon.h>
20
21 _DEFS(gtkmm,gtk)
22 _PINCLUDE(gtkmm/private/box_p.h)
23
24 namespace Gtk
25 {
26 _WRAP_ENUM(ShortcutType, GtkShortcutType, decl_prefix GTKMM_API)
27
28 /** Represents a keyboard shortcut in a ShortcutsWindow.
29 *
30 * A ShortcutsShortcut represents a single keyboard shortcut or gesture
31 * with a short text. This widget is only meant to be used with ShortcutsWindow.
32 *
33 * @newin{3,20}
34 *
35 * @ingroup Widgets
36 */
37 class GTKMM_API ShortcutsShortcut : public Box
38 {
39 _CLASS_GTKOBJECT(ShortcutsShortcut, GtkShortcutsShortcut, GTK_SHORTCUTS_SHORTCUT, Box, GtkBox, , , GTKMM_API)
40
41 public:
42 _CTOR_DEFAULT
43
44 _WRAP_PROPERTY("accelerator", Glib::ustring)
45 _WRAP_PROPERTY("icon", Glib::RefPtr<Gio::Icon>)
46 _WRAP_PROPERTY("icon-set", bool)
47 _WRAP_PROPERTY("title", Glib::ustring)
48 _WRAP_PROPERTY("subtitle", Glib::ustring)
49 _WRAP_PROPERTY("subtitle-set", bool)
50 _WRAP_PROPERTY("direction", TextDirection)
51 _WRAP_PROPERTY("shortcut-type", ShortcutType)
52 _WRAP_PROPERTY("action-name", Glib::ustring)
53
54 _IGNORE_PROPERTY("accel-size-group", "title-size-group")dnl// Internal properties
55 };
56
57 } // namespace Gtk