search for: iter_line

Displaying 10 results from an estimated 10 matches for "iter_line".

2007 Oct 14
0
10 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c
...to (cr, SWFDEC_GRAPHIC (text)->extents.x0, y); + cairo_move_to (cr, x, y); for (iter = layouts; iter != NULL && y < limit.y1; iter = iter->next) { @@ -307,18 +308,20 @@ swfdec_text_field_render (SwfdecTextField *text, cairo_t *cr, pango_layout_iter_get_line_extents (iter_line, NULL, &rect); pango_extents_to_pixels (NULL, &rect); - if (y + rect.y + rect.height < limit.y0) - continue; - if (y + rect.y > limit.y1 || y + rect.y + rect.height > SWFDEC_GRAPHIC (text)->extents.y1) break; - cairo_rel_move_to (cr, layout->...
2007 Oct 17
0
libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie.c
...irst = TRUE; - linenum = 0; - x = SWFDEC_GRAPHIC (text)->extents.x0; - y = SWFDEC_GRAPHIC (text)->extents.y0 + 1; - cairo_move_to (cr, x, y); - - for (i = 0; layouts[i].layout != NULL && y < limit.y1; i++) - { - SwfdecLayout *layout = &layouts[i]; - PangoLayoutIter *iter_line; - PangoLayoutLine *line; - PangoRectangle rect; - int skipped; - - iter_line = pango_layout_get_iter (layout->layout); - - skipped = 0; - do { - if (++linenum < text->scroll) - continue; - - pango_layout_iter_get_line_extents (iter_line, NULL, &rect); -...
2007 Oct 14
0
5 commits - libswfdec/swfdec_html_parser.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml.h
...rt of TextField diff --git a/libswfdec/swfdec_text_field.c b/libswfdec/swfdec_text_field.c index 867b30d..b6a97a3 100644 --- a/libswfdec/swfdec_text_field.c +++ b/libswfdec/swfdec_text_field.c @@ -295,19 +295,21 @@ swfdec_text_field_render (SwfdecTextField *text, cairo_t *cr, PangoLayoutIter *iter_line; PangoLayoutLine *line; PangoRectangle rect; + int skipped; iter_line = pango_layout_get_iter (layout->layout); + skipped = 0; do { - /*if (++linenum < text->text->scroll) { - cairo_rel_move_to (cr, 0, -rect.height); - y -= rect.height; + if (++li...
2007 Nov 04
0
7 commits - libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h libswfdec/swfdec_text_field_movie_html.c
...c index b130da2..36b3596 100644 --- a/libswfdec/swfdec_text_field_movie.c +++ b/libswfdec/swfdec_text_field_movie.c @@ -789,6 +789,8 @@ swfdec_text_field_movie_render (SwfdecMovie *movie, cairo_t *cr, y += layout->height - skipped; skipped = 0; } + + pango_layout_iter_free (iter_line); } swfdec_text_field_movie_free_layouts (layouts); commit 5f3abe827c99cca6b067b90c0ee88eddfb8c9242 Author: Pekka Lampila <pekka.lampila at iki.fi> Date: Sat Nov 3 19:09:54 2007 +0200 More work to make paragraph's ending newline character size matter diff --git a/libswfdec...
2007 Dec 05
0
4 commits - libswfdec/swfdec_as_object.c libswfdec/swfdec_movie.c libswfdec/swfdec_policy_loader.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_format.c
...MIN (text_movie->scroll, text_movie->scroll_max)) @@ -833,21 +831,18 @@ swfdec_text_field_movie_render (SwfdecMovie *movie, cairo_t *cr, x + layout->offset_x + rect.x + rect.width < limit.x0) continue; + cairo_move_to (cr, x, y); + if (pango_layout_iter_at_last_line (iter_line)) cairo_rel_move_to (cr, 0, layout->last_line_offset_y); cairo_rel_move_to (cr, layout->offset_x + rect.x, pango_layout_iter_get_baseline (iter_line) / PANGO_SCALE - skipped); + line = pango_layout_iter_get_line_readonly (iter_line); pango_cairo_show_layout_line (cr...
2007 Nov 07
0
2 commits - libswfdec/swfdec_resource.c libswfdec/swfdec_text_field_movie.c
...EXTRA_MARGIN + + MIN (text_movie->hscroll, text_movie->hscroll_max); y = movie->original_extents.y0 + EXTRA_MARGIN; for (i = 0; layouts[i].layout != NULL && y < limit.y1; i++) @@ -761,7 +767,8 @@ swfdec_text_field_movie_render (SwfdecMovie *movie, cairo_t *cr, iter_line = pango_layout_get_iter (layout->layout); - if (layout->bullet && linenum + 1 >= text_movie->scroll) { + if (layout->bullet && linenum + 1 >= + MIN (text_movie->scroll, text_movie->scroll_max)) { PangoColor color_p; PangoAttribute *attr;...
2007 Oct 15
0
6 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_codec_audio.c libswfdec/swfdec_codec_video.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c
..., y); - for (iter = layouts; iter != NULL && y < limit.y1; iter = iter->next) + for (i = 0; layouts[i].layout != NULL && y < limit.y1; i++) { - SwfdecLayout *layout = (SwfdecLayout *)iter->data; + SwfdecLayout *layout = &layouts[i]; PangoLayoutIter *iter_line; PangoLayoutLine *line; PangoRectangle rect; @@ -323,13 +325,13 @@ swfdec_text_field_render (SwfdecTextField *text, cairo_t *cr, skipped = 0; do { - if (++linenum < text->scroll + 1) + if (++linenum < text->scroll) continue; pango_layout_iter_g...
2007 Oct 18
0
11 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h test/trace
..._extents.x1; height = SWFDEC_MOVIE (text)->original_extents.y1 - SWFDEC_MOVIE (text)->original_extents.y0; + + width_max = width; y = 0; all = 0; visible = 0; @@ -700,6 +705,9 @@ swfdec_text_field_movie_set_scroll (SwfdecTextFieldMovie *text, int value) PangoLayoutIter *iter_line; PangoRectangle rect; + if (layouts[i].width > width_max) + width_max = layouts[i].width; + y += layout->height; iter_line = pango_layout_get_iter (layout->layout); @@ -713,15 +721,37 @@ swfdec_text_field_movie_set_scroll (SwfdecTextFieldMovie *text, int value)...
2007 Nov 07
0
14 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_interpret.h libswfdec/swfdec_net_stream.c libswfdec/swfdec_script.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_text_field_movie.c
...x0 + EXTRA_MARGIN + text_movie->hscroll; y = movie->original_extents.y0 + EXTRA_MARGIN; - cairo_move_to (cr, x, y); for (i = 0; layouts[i].layout != NULL && y < limit.y1; i++) { @@ -760,6 +761,37 @@ swfdec_text_field_movie_render (SwfdecMovie *movie, cairo_t *cr, iter_line = pango_layout_get_iter (layout->layout); + if (layout->bullet && linenum + 1 >= text_movie->scroll) { + PangoColor color_p; + PangoAttribute *attr; + PangoAttrIterator *attr_iter; + + pango_layout_iter_get_line_extents (iter_line, NULL, &rect); +...
2007 Oct 29
0
20 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h
...x0) + x + layout->offset_x + rect.x > limit.x1 || + x + layout->offset_x + rect.x + rect.width < limit.x0) continue; - cairo_rel_move_to (cr, layout->render_offset_x + rect.x, + cairo_rel_move_to (cr, layout->offset_x + rect.x, pango_layout_iter_get_baseline (iter_line) / PANGO_SCALE - skipped); line = pango_layout_iter_get_line_readonly (iter_line); pango_cairo_show_layout_line (cr, line); - cairo_rel_move_to (cr, -(layout->render_offset_x + rect.x), + cairo_rel_move_to (cr, -(layout->offset_x + rect.x), -(pango_layout_iter_get_...