2 * (GLABELS) Label and Business Card Creation program for GNOME
4 * hig.h: HIG inspired dialog and layout tools
6 * Copyright (C) 2002 Jim Evins <evins@snaught.com>.
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
30 #define GL_HIG_SPACING 6
32 /*===========================================================================*/
34 /*===========================================================================*/
36 #define GL_TYPE_HIG_DIALOG (gl_hig_dialog_get_type ())
37 #define GL_HIG_DIALOG(obj) \
38 (GTK_CHECK_CAST((obj), GL_TYPE_HIG_DIALOG, glHigDialog ))
39 #define GL_HIG_DIALOG_CLASS(klass) \
40 (GTK_CHECK_CLASS_CAST ((klass), GL_TYPE_HIG_DIALOG, glHigDialogClass))
41 #define GL_IS_HIG_DIALOG(obj) \
42 (GTK_CHECK_TYPE ((obj), GL_TYPE_HIG_DIALOG))
43 #define GL_IS_HIG_DIALOG_CLASS(klass) \
44 (GTK_CHECK_CLASS_TYPE ((klass), GL_TYPE_HIG_DIALOG))
46 typedef struct _glHigDialog glHigDialog;
47 typedef struct _glHigDialogClass glHigDialogClass;
50 GtkDialog parent_widget;
55 struct _glHigDialogClass {
56 GtkDialogClass parent_class;
59 guint gl_hig_dialog_get_type (void);
61 GtkWidget *gl_hig_dialog_new (void);
63 GtkWidget *gl_hig_dialog_new_with_buttons (const gchar *title,
66 const gchar *first_button_text,
70 /*===========================================================================*/
72 /*===========================================================================*/
74 #define GL_TYPE_HIG_CATEGORY (gl_hig_category_get_type ())
75 #define GL_HIG_CATEGORY(obj) \
76 (GTK_CHECK_CAST((obj), GL_TYPE_HIG_CATEGORY, glHigCategory ))
77 #define GL_HIG_CATEGORY_CLASS(klass) \
78 (GTK_CHECK_CLASS_CAST ((klass), GL_TYPE_HIG_CATEGORY, glHigCategoryClass))
79 #define GL_IS_HIG_CATEGORY(obj) \
80 (GTK_CHECK_TYPE ((obj), GL_TYPE_HIG_CATEGORY))
81 #define GL_IS_HIG_CATEGORY_CLASS(klass) \
82 (GTK_CHECK_CLASS_TYPE ((klass), GL_TYPE_HIG_CATEGORY))
84 typedef struct _glHigCategory glHigCategory;
85 typedef struct _glHigCategoryClass glHigCategoryClass;
87 struct _glHigCategory {
88 GtkVBox parent_widget;
94 struct _glHigCategoryClass {
95 GtkVBoxClass parent_class;
98 guint gl_hig_category_get_type (void);
100 GtkWidget *gl_hig_category_new (const gchar *header);
104 #endif /* __HIG_H__ */