* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/
-#ifndef GTK_TEXT_LAYOUT_H
-#define GTK_TEXT_LAYOUT_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
+#ifndef __GTK_TEXT_LAYOUT_H__
+#define __GTK_TEXT_LAYOUT_H__
/* This is a "semi-private" header; it is intended for
* use by the text widget, and the text canvas item,
#include <gtk/gtktextbuffer.h>
#include <gtk/gtktextiter.h>
+G_BEGIN_DECLS
+
/* forward declarations that have to be here to avoid including
* gtktextbtree.h
*/
*/
guint cursor_direction : 2;
+ /* The keyboard direction is used to default the alignment when
+ there are no strong characters.
+ */
+ guint keyboard_direction : 2;
+
/* The preedit string and attributes, if any */
gchar *preedit_string;
{
PangoLayout *layout;
GSList *cursors;
- GSList *shaped_objects;
+ GSList *shaped_objects; /* Only for backwards compatibility */
GtkTextDirection direction;
gboolean size_only;
GtkTextLine *line;
+
+ GdkColor *pg_bg_color;
};
extern PangoAttrType gtk_text_attr_appearance_type;
PangoContext *ltr_context,
PangoContext *rtl_context);
void gtk_text_layout_set_cursor_direction (GtkTextLayout *layout,
- GtkTextDirection direction);
+ GtkTextDirection direction);
+void gtk_text_layout_set_keyboard_direction (GtkTextLayout *layout,
+ GtkTextDirection keyboard_dir);
void gtk_text_layout_default_style_changed (GtkTextLayout *layout);
void gtk_text_layout_set_screen_width (GtkTextLayout *layout,
GtkTextIter *iter,
gint x,
gint y);
+void gtk_text_layout_get_iter_at_position (GtkTextLayout *layout,
+ GtkTextIter *iter,
+ gint *trailing,
+ gint x,
+ gint y);
void gtk_text_layout_invalidate (GtkTextLayout *layout,
const GtkTextIter *start,
const GtkTextIter *end);
void gtk_text_layout_spew (GtkTextLayout *layout);
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
+G_END_DECLS
-#endif /* GTK_TEXT_LAYOUT_H */
+#endif /* __GTK_TEXT_LAYOUT_H__ */