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-renderer.c | |
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-renderer.c')
-rw-r--r-- | pango/pango-renderer.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pango/pango-renderer.c b/pango/pango-renderer.c index 4169c3b5..337917b0 100644 --- a/pango/pango-renderer.c +++ b/pango/pango-renderer.c @@ -23,7 +23,6 @@ #include <stdlib.h> #include "pango-renderer.h" -#include "pango-layout-private.h" #define N_RENDER_PARTS 4 @@ -177,7 +176,7 @@ pango_renderer_draw_layout (PangoRenderer *renderer, PangoLayoutLine *line; int baseline; - line = _pango_layout_iter_get_line_readonly (iter); + line = pango_layout_iter_get_line_readonly (iter); pango_layout_iter_get_line_extents (iter, NULL, &logical_rect); baseline = pango_layout_iter_get_baseline (iter); |