Commit 24b36e5d authored by Behdad Esfahbod's avatar Behdad Esfahbod Committed by Behdad Esfahbod
Browse files

Bug 471571 – Add pango_layout_iter_get_layout()

2007-10-22  Behdad Esfahbod  <behdad@gnome.org>

        Bug 471571 – Add pango_layout_iter_get_layout()

        * docs/pango-sections.txt:
        * docs/tmpl/layout.sgml:
        * pango/pango-layout.c (pango_layout_iter_get_layout):
        * pango/pango-layout.h:
        * pango/pango.def:
        Add trivial yet missing pango_layout_iter_get_layout().


svn path=/trunk/; revision=2456
parent 6ebad4f9
2007-10-22 Behdad Esfahbod <behdad@gnome.org>
Bug 471571 – Add pango_layout_iter_get_layout()
* docs/pango-sections.txt:
* docs/tmpl/layout.sgml:
* pango/pango-layout.c (pango_layout_iter_get_layout):
* pango/pango-layout.h:
* pango/pango.def:
Add trivial yet missing pango_layout_iter_get_layout().
2007-10-22 Behdad Esfahbod <behdad@gnome.org>
* docs/tmpl/layout.sgml: Remove obsolete comment. PangoLayoutRun
......
......@@ -503,6 +503,7 @@ pango_layout_iter_get_run
pango_layout_iter_get_run_readonly
pango_layout_iter_get_line
pango_layout_iter_get_line_readonly
pango_layout_iter_get_layout
pango_layout_iter_get_char_extents
pango_layout_iter_get_cluster_extents
pango_layout_iter_get_run_extents
......
......@@ -706,6 +706,15 @@ The #GObject type for #PangoAlignment.
@Returns:
<!-- ##### FUNCTION pango_layout_iter_get_layout ##### -->
<para>
</para>
@iter:
@Returns:
<!-- ##### FUNCTION pango_layout_iter_get_char_extents ##### -->
<para>
......
......@@ -5427,6 +5427,27 @@ pango_layout_iter_at_last_line (PangoLayoutIter *iter)
return iter->line_extents_link->next == NULL;
}
/**
* pango_layout_iter_get_layout:
* @iter: a #PangoLayoutIter
*
* Gets the layout associated with a #PangoLayoutIter.
*
* Return value: the layout associated with @iter.
*
* Since: 1.20
**/
PangoLayout*
pango_layout_iter_get_layout (PangoLayoutIter *iter)
{
/* check is redundant as it simply checks that iter->layout is not NULL */
if (ITER_IS_INVALID (iter))
return NULL;
return iter->layout;
}
static gboolean
line_is_terminated (PangoLayoutIter *iter)
{
......
......@@ -245,12 +245,13 @@ GType pango_layout_iter_get_type (void) G_GNUC_CONST;
PangoLayoutIter *pango_layout_get_iter (PangoLayout *layout);
void pango_layout_iter_free (PangoLayoutIter *iter);
int pango_layout_iter_get_index (PangoLayoutIter *iter);
PangoLayoutRun *pango_layout_iter_get_run (PangoLayoutIter *iter);
int pango_layout_iter_get_index (PangoLayoutIter *iter);
PangoLayoutRun *pango_layout_iter_get_run (PangoLayoutIter *iter);
PangoLayoutRun *pango_layout_iter_get_run_readonly (PangoLayoutIter *iter);
PangoLayoutLine *pango_layout_iter_get_line (PangoLayoutIter *iter);
PangoLayoutLine *pango_layout_iter_get_line (PangoLayoutIter *iter);
PangoLayoutLine *pango_layout_iter_get_line_readonly (PangoLayoutIter *iter);
gboolean pango_layout_iter_at_last_line (PangoLayoutIter *iter);
PangoLayout *pango_layout_iter_get_layout (PangoLayoutIter *iter);
gboolean pango_layout_iter_next_char (PangoLayoutIter *iter);
gboolean pango_layout_iter_next_cluster (PangoLayoutIter *iter);
......
......@@ -249,6 +249,7 @@ EXPORTS
pango_layout_iter_get_cluster_extents
pango_layout_iter_get_index
pango_layout_iter_get_layout_extents
pango_layout_iter_get_layout
pango_layout_iter_get_line
pango_layout_iter_get_line_extents
pango_layout_iter_get_line_readonly
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment