]> Pileus Git - ~andy/gtk/blob - gtk/gtktexttypes.h
Make PLT-reduction work with gcc4, and don't include everything in
[~andy/gtk] / gtk / gtktexttypes.h
1 #ifndef __GTK_TEXT_TYPES_H__
2 #define __GTK_TEXT_TYPES_H__
3
4 #include <glib.h>
5
6 #include <gtk/gtktextbuffer.h>
7 #include <gtk/gtktexttagprivate.h>
8
9 G_BEGIN_DECLS
10
11 typedef struct _GtkTextCounter GtkTextCounter;
12 typedef struct _GtkTextLineSegment GtkTextLineSegment;
13 typedef struct _GtkTextLineSegmentClass GtkTextLineSegmentClass;
14 typedef struct _GtkTextToggleBody GtkTextToggleBody;
15 typedef struct _GtkTextMarkBody GtkTextMarkBody;
16
17 /*
18  * Declarations for variables shared among the text-related files:
19  */
20
21 #ifdef G_OS_WIN32
22 #ifdef GTK_COMPILATION
23 #define VARIABLE __declspec(dllexport)
24 #else
25 #define VARIABLE extern __declspec(dllimport)
26 #endif
27 #else
28 #define VARIABLE extern
29 #endif
30
31 /* In gtktextbtree.c */
32 extern GtkTextLineSegmentClass gtk_text_char_type;
33 extern GtkTextLineSegmentClass gtk_text_toggle_on_type;
34 extern GtkTextLineSegmentClass gtk_text_toggle_off_type;
35
36 /* In gtktextmark.c */
37 extern GtkTextLineSegmentClass gtk_text_left_mark_type;
38 extern GtkTextLineSegmentClass gtk_text_right_mark_type;
39
40 /* In gtktextchild.c */
41 extern GtkTextLineSegmentClass gtk_text_pixbuf_type;
42 extern GtkTextLineSegmentClass gtk_text_child_type;
43
44 /*
45  * UTF 8 Stubs
46  */
47
48 #define GTK_TEXT_UNKNOWN_CHAR 0xFFFC
49 VARIABLE const gchar gtk_text_unknown_char_utf8[];
50
51 gboolean gtk_text_byte_begins_utf8_char (const gchar *byte);
52
53 G_END_DECLS
54
55 #endif
56