1 /*
2  * Copyright (C) 2010-2011 Daiki Ueno <ueno@unixuser.org>
3  * Copyright (C) 2010-2011 Red Hat, Inc.
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public License
7  * as published by the Free Software Foundation; either version 2 of
8  * the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18  * 02110-1301 USA
19  */
20 
21 #if !defined(__EEK_H_INSIDE__) && !defined(EEK_COMPILATION)
22 #error "Only <eek/eek-gtk.h> can be included directly."
23 #endif
24 
25 #ifndef EEK_GTK_KEYBOARD_H
26 #define EEK_GTK_KEYBOARD_H 1
27 
28 #include <glib.h>
29 #include <gtk/gtk.h>
30 
31 #include "eek/eek-renderer.h"
32 #include "eek/eek-types.h"
33 
34 struct submission;
35 struct squeek_layout_state;
36 
37 G_BEGIN_DECLS
38 #define EEK_TYPE_GTK_KEYBOARD (eek_gtk_keyboard_get_type())
39 G_DECLARE_DERIVABLE_TYPE (EekGtkKeyboard, eek_gtk_keyboard, EEK, GTK_KEYBOARD, GtkDrawingArea)
40 
41 struct _EekGtkKeyboardClass
42 {
43     /*< private >*/
44     GtkDrawingAreaClass parent_class;
45 
46     /*< private >*/
47     /* padding */
48     gpointer pdummy[24];
49 };
50 
51 GtkWidget *eek_gtk_keyboard_new       (EekboardContextService *eekservice, struct submission *submission, struct squeek_layout_state *layout);
52 void       eek_gtk_keyboard_emit_feedback (EekGtkKeyboard *self);
53 
54 G_END_DECLS
55 #endif  /* EEK_GTK_KEYBOARD_H */
56