gtk-all.h, util-gtk.h: cosmetix (ignore this headers if built without GTK)
[k8lowj.git] / src / groupedbox.h
blobc5267008eac30e1f44dddf23dc3c10d279781376
1 /* logjam - a GTK client for LiveJournal.
2 * Copyright (C) 2000-2003 Evan Martin <evan@livejournal.com>
4 * vim: tabstop=4 shiftwidth=4 noexpandtab :
5 */
7 #ifndef GROUPEDBOX_H
8 #define GROUPEDBOX_H
10 #define TYPE_GROUPEDBOX groupedbox_get_type()
11 #define GROUPEDBOX(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), TYPE_GROUPEDBOX, GroupedBox))
13 typedef struct _GroupedBox GroupedBox;
14 typedef struct _GroupedBoxClass GroupedBoxClass;
16 /* +--------+
17 * | header +
18 * +-+------+
19 * | | |\
20 * | | vbox | body
21 * | | |/
22 * +-+------+
24 struct _GroupedBox {
25 GtkVBox parent;
26 GtkWidget *vbox;
27 GtkWidget *header, *body; /* for foldbox subclass */
30 struct _GroupedBoxClass
32 GtkVBoxClass parent_class;
35 GType groupedbox_get_type(void);
37 GtkWidget* groupedbox_new();
38 GtkWidget* groupedbox_new_with_text(const char *text);
39 void groupedbox_set_header_widget(GroupedBox *b, GtkWidget *w);
40 void groupedbox_set_header(GroupedBox *b, const char *title, gboolean bold);
41 void groupedbox_pack(GroupedBox *b, GtkWidget *w, gboolean expand);
42 GType groupedbox_get_type(void);
44 #endif /* GROUPEDBOX_H */