Displaying 3 results from an estimated 3 matches for "attr_iter".
Did you mean:
attr_item
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
...ter);
+
+ baseline = pango_layout_iter_get_baseline (iter) / PANGO_SCALE;
+
+ pango_layout_iter_free (iter);
+
+ return baseline;
+}
+
+static void
+swfdec_text_field_movie_attr_list_get_ascent_descent (PangoAttrList *attr_list,
+ guint pos, int *ascent, int *descent)
+{
+ PangoAttrIterator *attr_iter;
+ PangoFontDescription *desc;
+ PangoFontMap *fontmap;
+ PangoFont *font;
+ PangoFontMetrics *metrics;
+ PangoContext *pcontext;
+ int end;
+
+ if (ascent != NULL)
+ *ascent = 0;
+ if (descent != NULL)
+ *descent = 0;
+
+ g_return_if_fail (attr_list != NULL);
+
+ attr_iter = pango_...
2007 Nov 07
0
2 commits - libswfdec/swfdec_resource.c libswfdec/swfdec_text_field_movie.c
...ayout->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;
PangoAttrIterator *attr_iter;
@@ -794,13 +801,13 @@ swfdec_text_field_movie_render (SwfdecMovie *movie, cairo_t *cr,
skipped = 0;
do {
- if (++linenum < text_movie->scroll)
+ if (++linenum < MIN (text_movie->scroll, text_movie->scroll_max))
continue;
pango_layout_iter_get_line_ex...
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
...1,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);
+ pango_extents_to_pixels (NULL, &rect);
+
+ cairo_new_sub_path (cr);
+
+ // get current color
+ attr_iter = pango_attr_list_get_iterator (
+ pango_layout_get_attributes (layout->layout));
+...