]> Pileus Git - ~andy/gtk/blob - gtk/gtktexttagprivate.h
44fe225016c603d17afdde2c7add7be6f9b55277
[~andy/gtk] / gtk / gtktexttagprivate.h
1 #ifndef __GTK_TEXT_TAG_PRIVATE_H__
2 #define __GTK_TEXT_TAG_PRIVATE_H__
3
4 #include <gtk/gtktexttag.h>
5
6 typedef struct _GtkTextBTreeNode GtkTextBTreeNode;
7
8 /* values should already have desired defaults; this function will override
9  * the defaults with settings in the given tags, which should be sorted in
10  * ascending order of priority
11 */
12 void _gtk_text_attributes_fill_from_tags   (GtkTextAttributes   *values,
13                                             GtkTextTag         **tags,
14                                             guint                n_tags);
15 void _gtk_text_tag_array_sort              (GtkTextTag         **tag_array_p,
16                                             guint                len);
17
18 /* ensure colors are allocated, etc. for drawing */
19 void                _gtk_text_attributes_realize   (GtkTextAttributes *values,
20                                                     GdkColormap       *cmap,
21                                                     GdkVisual         *visual);
22
23 /* free the stuff again */
24 void                _gtk_text_attributes_unrealize (GtkTextAttributes *values,
25                                                     GdkColormap       *cmap,
26                                                     GdkVisual         *visual);
27
28 gboolean _gtk_text_tag_affects_size               (GtkTextTag *tag);
29 gboolean _gtk_text_tag_affects_nonsize_appearance (GtkTextTag *tag);
30
31 #endif