]> Pileus Git - ~andy/gtk/blob - gtk/gtktexttagprivate.h
d8ec06fe8a1d032183821dde006d45a0f91d640f
[~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 /* values should already have desired defaults; this function will override
7  * the defaults with settings in the given tags, which should be sorted in
8  * ascending order of priority
9 */
10 void gtk_text_style_values_fill_from_tags (GtkTextStyleValues  *values,
11                                            GtkTextTag         **tags,
12                                            guint                n_tags);
13 void gtk_text_tag_array_sort              (GtkTextTag         **tag_array_p,
14                                            guint                len);
15
16 /* ensure colors are allocated, etc. for drawing */
17 void                gtk_text_style_values_realize   (GtkTextStyleValues *values,
18                                                      GdkColormap        *cmap,
19                                                      GdkVisual          *visual);
20
21 /* free the stuff again */
22 void                gtk_text_style_values_unrealize (GtkTextStyleValues *values,
23                                                      GdkColormap        *cmap,
24                                                      GdkVisual          *visual);
25
26 #endif