summaryrefslogtreecommitdiff
path: root/gtk/gtktextdisplay.h
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtktextdisplay.h')
-rw-r--r--gtk/gtktextdisplay.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/gtk/gtktextdisplay.h b/gtk/gtktextdisplay.h
new file mode 100644
index 0000000000..8f43b6da03
--- /dev/null
+++ b/gtk/gtktextdisplay.h
@@ -0,0 +1,39 @@
+#ifndef GTK_TEXT_DISPLAY_H
+#define GTK_TEXT_DISPLAY_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+/*
+ A semi-public header intended for use by code that also
+ uses GtkTextLayout
+*/
+
+#include <gtk/gtktextlayout.h>
+
+/* The drawable should be pre-initialized to your preferred
+ background. */
+void gtk_text_layout_draw (GtkTextLayout *layout,
+ /* Widget to grab some style info from */
+ GtkWidget *widget,
+ /* Drawable to render to */
+ GdkDrawable *drawable,
+ /* Position of the drawable
+ in layout coordinates */
+ gint x_offset,
+ gint y_offset,
+ /* Region of the layout to
+ render. x,y must be inside
+ the drawable. */
+ gint x,
+ gint y,
+ gint width,
+ gint height);
+
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif