diff options
Diffstat (limited to 'src/easygtk.h')
-rw-r--r-- | src/easygtk.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/src/easygtk.h b/src/easygtk.h new file mode 100644 index 0000000..7499815 --- /dev/null +++ b/src/easygtk.h @@ -0,0 +1,65 @@ + +/* OpenIDA - Outil d'analyse de fichiers binaires + * easygtk.h - prototypes pour la mise en place rapide de composants GTK + * + * Copyright (C) 2008 Cyrille Bagard + * + * This file is part of OpenIDA. + * + * OpenIDA 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; either version 3 of the License, or + * (at your option) any later version. + * + * OpenIDA 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 Foobar. If not, see <http://www.gnu.org/licenses/>. + */ + + +#ifndef _EASYGTK_H +#define _EASYGTK_H + + +#include <gtk/gtk.h> + + + +/* Met en place un aligement dont les bordures sont à ajuster. */ +GtkWidget *qck_create_padded_alignment(guint, guint, guint, guint); + +/* Met en place une frame. */ +GtkWidget *qck_create_frame(const char *, GtkWidget **, guint, guint, guint, guint); + +/* Crée un composant 'GtkLabel'. */ +GtkWidget *qck_create_label(GObject *, const char *, const char *); + +/* Crée et enregistre un composant 'GtkButton'. */ +GtkWidget *qck_create_button(GObject *, const char *, const char *, GCallback, gpointer); + +/* Crée et enregistre un composant 'GtkButton'. */ +GtkWidget *qck_create_button_from_stock(GObject *, const char *, const char *, GCallback, gpointer); + +/* Crée et enregistre un composant 'GtkButton'. */ +GtkWidget *qck_create_button_with_img(GObject *, const char *, const char *, GCallback, gpointer); + +/* Crée et enregistre un composant 'GtkComboBox'. */ +GtkWidget *qck_create_combobox(GObject *, const char *, GCallback, gpointer); + + + + +/* Crée et enregistre un composant 'GtkMenuItem'. */ +GtkWidget *qck_create_menu_item(GObject *, const char *, const char *, GCallback, gpointer); + +/* Crée et enregistre un composant 'GtkSeparatorMenuItem'. */ +GtkWidget *qck_create_menu_separator(void); + + + + +#endif /* _EASYGTK_H */ |