summaryrefslogtreecommitdiff
path: root/pango/pango-layout.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2004-03-01 15:23:15 +0000
committerOwen Taylor <otaylor@src.gnome.org>2004-03-01 15:23:15 +0000
commit509868236b87e04a9367630bf9c441e5d1399698 (patch)
tree18a36e76e9942738fd16d278ba4e7cea1c26aad9 /pango/pango-layout.h
parentfa8ac6be9ea65de7f4f0c15ff68c0ff9ddb4b189 (diff)
downloadpango-509868236b87e04a9367630bf9c441e5d1399698.tar.gz
Patch from Dov Grobgeld to add auto-direction to PangoLayout (more of
Fri Feb 27 11:23:21 2004 Owen Taylor <otaylor@redhat.com> Patch from Dov Grobgeld to add auto-direction to PangoLayout (more of #70451) * examples/pangofttopgm.c: Add --no-auto-dir argument. * pango-layout.[ch]: Add pango_layout_set_auto_dir() defaulting to TRUE; resolve paragraph direction within a layout by propagating base direction downwards from paragraph to paragraph. * pango-context.[ch]: Add pango_itemize_with_base_dir() which overrides the base direction from the PangoContext. Mon Mar 1 10:01:58 2004 Owen Taylor <otaylor@redhat.com> * docs/tmpl/text-attributes.sgml: Document %PANGO_UNDERLINE_ERROR. * pango/pangofc-fontmap.c: Pango*Fc*FontmapPrivate. Make compile.
Diffstat (limited to 'pango/pango-layout.h')
-rw-r--r--pango/pango-layout.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/pango/pango-layout.h b/pango/pango-layout.h
index b490cedd..4d11cdf3 100644
--- a/pango/pango-layout.h
+++ b/pango/pango-layout.h
@@ -55,6 +55,7 @@ struct _PangoLayoutLine
gint length; /* length of line in bytes */
GSList *runs;
guint is_paragraph_start : 1; /* TRUE if this is the first line of the paragraph */
+ guint resolved_dir : 3; /* Resolved direction of line */
};
#define PANGO_TYPE_LAYOUT (pango_layout_get_type ())
@@ -111,6 +112,9 @@ int pango_layout_get_spacing (PangoLayout *la
void pango_layout_set_justify (PangoLayout *layout,
gboolean justify);
gboolean pango_layout_get_justify (PangoLayout *layout);
+void pango_layout_set_auto_dir (PangoLayout *layout,
+ gboolean auto_dir);
+gboolean pango_layout_get_auto_dir (PangoLayout *layout);
void pango_layout_set_alignment (PangoLayout *layout,
PangoAlignment alignment);
PangoAlignment pango_layout_get_alignment (PangoLayout *layout);