forked from AuroraMiddleware/gtk
aac55c4664
2001-01-01 Havoc Pennington <hp@redhat.com> * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here. * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for GtkTextAttributes * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug #40246 (gtk_text_attributes_copy_values): rename from gtk_text_attributes_copy (gtk_text_attributes_copy): a more standard GTK copy function, which returns a new object
30 lines
1.3 KiB
C
30 lines
1.3 KiB
C
#ifndef GTK_TEXT_TAG_PRIVATE_H
|
|
#define GTK_TEXT_TAG_PRIVATE_H
|
|
|
|
#include <gtk/gtktexttag.h>
|
|
|
|
/* values should already have desired defaults; this function will override
|
|
* the defaults with settings in the given tags, which should be sorted in
|
|
* ascending order of priority
|
|
*/
|
|
void _gtk_text_attributes_fill_from_tags (GtkTextAttributes *values,
|
|
GtkTextTag **tags,
|
|
guint n_tags);
|
|
void _gtk_text_tag_array_sort (GtkTextTag **tag_array_p,
|
|
guint len);
|
|
|
|
/* ensure colors are allocated, etc. for drawing */
|
|
void _gtk_text_attributes_realize (GtkTextAttributes *values,
|
|
GdkColormap *cmap,
|
|
GdkVisual *visual);
|
|
|
|
/* free the stuff again */
|
|
void _gtk_text_attributes_unrealize (GtkTextAttributes *values,
|
|
GdkColormap *cmap,
|
|
GdkVisual *visual);
|
|
|
|
gboolean _gtk_text_tag_affects_size (GtkTextTag *tag);
|
|
gboolean _gtk_text_tag_affects_nonsize_appearance (GtkTextTag *tag);
|
|
|
|
#endif
|