diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2006-12-05 23:57:09 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2006-12-05 23:57:09 +0000 |
commit | 4645a8b2f9328fb3a93de277ae39069120f16535 (patch) | |
tree | 91081591e0ef4012002d9bcc3a22358255df27b3 /pango/pango-layout.h | |
parent | 7e0e0a79d54e6bcd80ef3794eaf10de8bf579c56 (diff) | |
download | pango-4645a8b2f9328fb3a93de277ae39069120f16535.tar.gz |
Add new functions: pango_layout_iter_get_line_readonly()
2006-12-05 Behdad Esfahbod <behdad@gnome.org>
* docs/pango-sections.txt:
* docs/tmpl/layout.sgml:
* pango/pango-layout.c (pango_layout_get_lines_readonly),
(pango_layout_get_line_readonly),
(pango_layout_iter_get_run_readonly),
(_pango_layout_iter_get_line), (pango_layout_iter_get_line),
(pango_layout_iter_get_line_readonly):
* pango/pango-layout.h:
* pango/pango-renderer.c (pango_renderer_draw_layout):
* pango/pango.def:
Add new functions:
pango_layout_iter_get_line_readonly()
pango_layout_get_lines_readonly()
pango_layout_iter_get_line_readonly()
pango_layout_iter_get_run_readonly()
These should be used when you do not intend to modify the run/line,
which is more than most of the time. So, update your app, benefit
from more optimizations (in this case, line extents caching)!
Diffstat (limited to 'pango/pango-layout.h')
-rw-r--r-- | pango/pango-layout.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pango/pango-layout.h b/pango/pango-layout.h index 563c6839..df1851c9 100644 --- a/pango/pango-layout.h +++ b/pango/pango-layout.h @@ -200,7 +200,10 @@ void pango_layout_get_pixel_size (PangoLayout *layout, int pango_layout_get_line_count (PangoLayout *layout); PangoLayoutLine *pango_layout_get_line (PangoLayout *layout, int line); +PangoLayoutLine *pango_layout_get_line_readonly (PangoLayout *layout, + int line); GSList * pango_layout_get_lines (PangoLayout *layout); +GSList * pango_layout_get_lines_readonly (PangoLayout *layout); #define PANGO_TYPE_LAYOUT_LINE (pango_layout_line_get_type ()) @@ -240,7 +243,9 @@ void pango_layout_iter_free (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_readonly (PangoLayoutIter *iter); gboolean pango_layout_iter_at_last_line (PangoLayoutIter *iter); gboolean pango_layout_iter_next_char (PangoLayoutIter *iter); |