1 /* dzl-shortcut-label.h
2  *
3  * Copyright (C) 2017 Christian Hergert <chergert@redhat.com>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef DZL_SHORTCUT_LABEL_H
20 #define DZL_SHORTCUT_LABEL_H
21 
22 #include <gtk/gtk.h>
23 
24 #include "dzl-version-macros.h"
25 
26 #include "dzl-shortcut-chord.h"
27 
28 G_BEGIN_DECLS
29 
30 #define DZL_TYPE_SHORTCUT_LABEL (dzl_shortcut_label_get_type())
31 
32 DZL_AVAILABLE_IN_ALL
33 G_DECLARE_FINAL_TYPE (DzlShortcutLabel, dzl_shortcut_label, DZL, SHORTCUT_LABEL, GtkBox)
34 
35 DZL_AVAILABLE_IN_ALL
36 GtkWidget              *dzl_shortcut_label_new             (void);
37 DZL_AVAILABLE_IN_ALL
38 gchar                  *dzl_shortcut_label_get_accelerator (DzlShortcutLabel       *self);
39 DZL_AVAILABLE_IN_ALL
40 void                    dzl_shortcut_label_set_accelerator (DzlShortcutLabel       *self,
41                                                             const gchar            *accelerator);
42 DZL_AVAILABLE_IN_ALL
43 void                    dzl_shortcut_label_set_chord       (DzlShortcutLabel       *self,
44                                                             const DzlShortcutChord *chord);
45 DZL_AVAILABLE_IN_ALL
46 const DzlShortcutChord *dzl_shortcut_label_get_chord       (DzlShortcutLabel       *self);
47 
48 G_END_DECLS
49 
50 #endif /* DZL_SHORTCUT_LABEL_H */
51