Mercurial > pidgin.yaz
annotate finch/libgnt/gntline.h @ 16011:1f24fd9a6237
word wrapping, fix \r\n newlines
author | Richard Nelson <wabz@pidgin.im> |
---|---|
date | Mon, 09 Apr 2007 10:03:48 +0000 |
parents | f00f2e283ffb |
children | 8410511f4dbb |
rev | line source |
---|---|
15818 | 1 #ifndef GNT_LINE_H |
2 #define GNT_LINE_H | |
3 | |
4 #include "gntwidget.h" | |
5 #include "gnt.h" | |
6 #include "gntcolors.h" | |
7 #include "gntkeys.h" | |
8 | |
9 #define GNT_TYPE_LINE (gnt_line_get_gtype()) | |
10 #define GNT_LINE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_LINE, GntLine)) | |
11 #define GNT_LINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNT_TYPE_LINE, GntLineClass)) | |
12 #define GNT_IS_LINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNT_TYPE_LINE)) | |
13 #define GNT_IS_LINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GNT_TYPE_LINE)) | |
14 #define GNT_LINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_LINE, GntLineClass)) | |
15 | |
16 #define GNT_LINE_FLAGS(obj) (GNT_LINE(obj)->priv.flags) | |
17 #define GNT_LINE_SET_FLAGS(obj, flags) (GNT_LINE_FLAGS(obj) |= flags) | |
18 #define GNT_LINE_UNSET_FLAGS(obj, flags) (GNT_LINE_FLAGS(obj) &= ~(flags)) | |
19 | |
15931
f00f2e283ffb
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
20 typedef struct _GntLine GntLine; |
f00f2e283ffb
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
21 typedef struct _GntLinePriv GntLinePriv; |
f00f2e283ffb
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
22 typedef struct _GntLineClass GntLineClass; |
15818 | 23 |
15931
f00f2e283ffb
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
24 struct _GntLine |
15818 | 25 { |
26 GntWidget parent; | |
27 | |
28 gboolean vertical; | |
29 }; | |
30 | |
15931
f00f2e283ffb
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
31 struct _GntLineClass |
15818 | 32 { |
33 GntWidgetClass parent; | |
34 | |
35 void (*gnt_reserved1)(void); | |
36 void (*gnt_reserved2)(void); | |
37 void (*gnt_reserved3)(void); | |
38 void (*gnt_reserved4)(void); | |
39 }; | |
40 | |
41 G_BEGIN_DECLS | |
42 | |
43 GType gnt_line_get_gtype(void); | |
44 | |
45 #define gnt_hline_new() gnt_line_new(FALSE) | |
46 #define gnt_vline_new() gnt_line_new(TRUE) | |
47 | |
48 GntWidget *gnt_line_new(gboolean vertical); | |
49 | |
50 G_END_DECLS | |
51 | |
52 #endif /* GNT_LINE_H */ |