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
|
|
20 typedef struct _GnLine GntLine;
|
|
21 typedef struct _GnLinePriv GntLinePriv;
|
|
22 typedef struct _GnLineClass GntLineClass;
|
|
23
|
|
24 struct _GnLine
|
|
25 {
|
|
26 GntWidget parent;
|
|
27
|
|
28 gboolean vertical;
|
|
29 };
|
|
30
|
|
31 struct _GnLineClass
|
|
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 */
|