/* $Id: keyboard.h,v 1.7 2010/09/18 12:27:58 khorben Exp $ */ /* Copyright (c) 2010 Pierre Pronchery */ /* 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 . */ #ifndef KEYBOARD_KEYBOARD_H # define KEYBOARD_KEYBOARD_H # include # include "key.h" /* Keyboard */ /* types */ typedef struct _Keyboard Keyboard; typedef struct _KeyboardPrefs { int monitor; char const * font; int embedded; } KeyboardPrefs; /* functions */ Keyboard * keyboard_new(KeyboardPrefs * prefs); void keyboard_delete(Keyboard * keyboard); /* accessors */ /* XXX be more explicit */ void keyboard_set_layout(Keyboard * keyboard, unsigned int which); /* useful */ void keyboard_show(Keyboard * keyboard, gboolean show); void keyboard_key_show(Keyboard * keyboard, KeyboardKey * key, gboolean show, GdkEventButton * event); #endif /* !KEYBOARD_KEYBOARD_H */