comparison finch/libgnt/gnttextview.h @ 15931:f00f2e283ffb

Some define changes. This helps in generating the python bindings.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Mon, 26 Mar 2007 04:10:39 +0000
parents 0e3a8505ebbe
children ab3f93232a2d
comparison
equal deleted inserted replaced
15930:846a00760176 15931:f00f2e283ffb
4 #include "gntwidget.h" 4 #include "gntwidget.h"
5 #include "gnt.h" 5 #include "gnt.h"
6 #include "gntcolors.h" 6 #include "gntcolors.h"
7 #include "gntkeys.h" 7 #include "gntkeys.h"
8 8
9 #define GNT_TYPE_TEXTVIEW (gnt_text_view_get_gtype()) 9 #define GNT_TYPE_TEXT_VIEW (gnt_text_view_get_gtype())
10 #define GNT_TEXT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_TEXTVIEW, GntTextView)) 10 #define GNT_TEXT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_TEXT_VIEW, GntTextView))
11 #define GNT_TEXT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNT_TYPE_TEXTVIEW, GntTextViewClass)) 11 #define GNT_TEXT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNT_TYPE_TEXT_VIEW, GntTextViewClass))
12 #define GNT_IS_TEXTVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNT_TYPE_TEXTVIEW)) 12 #define GNT_IS_TEXT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNT_TYPE_TEXT_VIEW))
13 #define GNT_IS_TEXTVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GNT_TYPE_TEXTVIEW)) 13 #define GNT_IS_TEXT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GNT_TYPE_TEXT_VIEW))
14 #define GNT_TEXT_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_TEXTVIEW, GntTextViewClass)) 14 #define GNT_TEXT_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_TEXT_VIEW, GntTextViewClass))
15 15
16 #define GNT_TEXT_VIEW_FLAGS(obj) (GNT_TEXT_VIEW(obj)->priv.flags) 16 #define GNT_TEXT_VIEW_FLAGS(obj) (GNT_TEXT_VIEW(obj)->priv.flags)
17 #define GNT_TEXT_VIEW_SET_FLAGS(obj, flags) (GNT_TEXT_VIEW_FLAGS(obj) |= flags) 17 #define GNT_TEXT_VIEW_SET_FLAGS(obj, flags) (GNT_TEXT_VIEW_FLAGS(obj) |= flags)
18 #define GNT_TEXT_VIEW_UNSET_FLAGS(obj, flags) (GNT_TEXT_VIEW_FLAGS(obj) &= ~(flags)) 18 #define GNT_TEXT_VIEW_UNSET_FLAGS(obj, flags) (GNT_TEXT_VIEW_FLAGS(obj) &= ~(flags))
19 19
20 typedef struct _GnTextView GntTextView; 20 typedef struct _GntTextView GntTextView;
21 typedef struct _GnTextViewPriv GntTextViewPriv; 21 typedef struct _GntTextViewPriv GntTextViewPriv;
22 typedef struct _GnTextViewClass GntTextViewClass; 22 typedef struct _GntTextViewClass GntTextViewClass;
23 23
24 struct _GnTextView 24 struct _GntTextView
25 { 25 {
26 GntWidget parent; 26 GntWidget parent;
27 27
28 GString *string; 28 GString *string;
29 GList *list; /* List of GntTextLine */ 29 GList *list; /* List of GntTextLine */
39 GNT_TEXT_FLAG_BLINK = 1 << 2, 39 GNT_TEXT_FLAG_BLINK = 1 << 2,
40 GNT_TEXT_FLAG_DIM = 1 << 3, 40 GNT_TEXT_FLAG_DIM = 1 << 3,
41 GNT_TEXT_FLAG_HIGHLIGHT = 1 << 4, 41 GNT_TEXT_FLAG_HIGHLIGHT = 1 << 4,
42 } GntTextFormatFlags; 42 } GntTextFormatFlags;
43 43
44 struct _GnTextViewClass 44 struct _GntTextViewClass
45 { 45 {
46 GntWidgetClass parent; 46 GntWidgetClass parent;
47 47
48 void (*gnt_reserved1)(void); 48 void (*gnt_reserved1)(void);
49 void (*gnt_reserved2)(void); 49 void (*gnt_reserved2)(void);