Desktop
/* $Id: keyboard.h,v 1.6 2010/08/27 14:16:47 khorben Exp $ */
							/* Copyright (c) 2010 Pierre Pronchery <khorben@defora.org> */
							/* This file is part of DeforaOS Desktop Keyboard */
							/* This program is free software: you can redistribute it and/or modify
							 * it under the terms of the GNU General Public License as published by
							 * the Free Software Foundation, version 3 of the License.
							 *
							 * This program is distributed in the hope that it will be useful,
							 * but WITHOUT ANY WARRANTY; without even the implied warranty of
							 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
							 * GNU General Public License for more details.
							 *
							 * You should have received a copy of the GNU General Public License
							 * along with this program.  If not, see <http://www.gnu.org/licenses/>. */
							#ifndef KEYBOARD_KEYBOARD_H
							# define KEYBOARD_KEYBOARD_H
							# include <gtk/gtk.h>
							/* Keyboard */
							/* types */
							typedef struct _Keyboard Keyboard;
							typedef struct _KeyboardKey
							{
								GtkWidget * widget;
								GtkWidget * popup;
								unsigned int keysym;
								char const * label;
								char const * upper_label;
							} KeyboardKey;
							typedef struct _KeyboardPrefs
							{
								int monitor;
								char const * font;
								int embedded;
							} KeyboardPrefs;
							typedef enum _KeyboardCase { KC_LOWER, KC_UPPER } KeyboardCase;
							/* functions */
							Keyboard * keyboard_new(KeyboardPrefs * prefs);
							void keyboard_delete(Keyboard * keyboard);
							/* accessors */
							void keyboard_set_case(Keyboard * keyboard, KeyboardCase kcase);
							/* useful */
							void keyboard_show(Keyboard * keyboard, gboolean show);
							void keyboard_key_show(Keyboard * keyboard, KeyboardKey * key, gboolean show,
									GdkEventButton * event);
							#endif /* !KEYBOARD_KEYBOARD_H */
							