search for: swfdectextfield

Displaying 11 results from an estimated 11 matches for "swfdectextfield".

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
...0 Don't render lines that are not horizontally inside invalid area diff --git a/libswfdec/swfdec_text_field.c b/libswfdec/swfdec_text_field.c index 6adbe8a..867b30d 100644 --- a/libswfdec/swfdec_text_field.c +++ b/libswfdec/swfdec_text_field.c @@ -254,7 +254,7 @@ swfdec_text_field_render (SwfdecTextField *text, cairo_t *cr, GList *layouts, *iter; SwfdecRect limit; SwfdecColor color; - int y, linenum; + int y, x, linenum; g_return_if_fail (SWFDEC_IS_TEXT_FIELD (text)); g_return_if_fail (cr != NULL); @@ -285,8 +285,9 @@ swfdec_text_field_render (SwfdecTextField *text, cairo_t *cr,...
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
...e any styles that become equal diff --git a/libswfdec/swfdec_text_field_movie.c b/libswfdec/swfdec_text_field_movie.c index d6e89e9..e40001f 100644 --- a/libswfdec/swfdec_text_field_movie.c +++ b/libswfdec/swfdec_text_field_movie.c @@ -686,7 +686,7 @@ void swfdec_text_field_movie_set_text_format (SwfdecTextFieldMovie *text, SwfdecTextFormat *format, guint start_index, guint end_index) { - SwfdecFormatIndex *findex, *findex_new; + SwfdecFormatIndex *findex, *findex_new, *findex_prev; guint findex_end_index; GSList *iter, *next; @@ -698,10 +698,13 @@ swfdec_text_field_movie_set_text_format (S...
2007 Oct 14
1
libswfdec/swfdec_text_field.c
...Implement aligning TextField lines even when wordWrap is off diff --git a/libswfdec/swfdec_text_field.c b/libswfdec/swfdec_text_field.c index 2f38d85..96284a8 100644 --- a/libswfdec/swfdec_text_field.c +++ b/libswfdec/swfdec_text_field.c @@ -150,6 +150,8 @@ swfdec_text_field_generate_layouts (SwfdecTextField *text, cairo_t *cr, if (text->word_wrap) { pango_layout_set_wrap (playout, PANGO_WRAP_WORD_CHAR); pango_layout_set_width (playout, width * PANGO_SCALE); + pango_layout_set_alignment (playout, block->align); + pango_layout_set_justify (playout, block->justify); } else {...
2007 Oct 17
0
libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie.c
.....eef12ab 100644 --- a/libswfdec/swfdec_text_field.c +++ b/libswfdec/swfdec_text_field.c @@ -22,7 +22,6 @@ #include "config.h" #endif -#include <pango/pangocairo.h> #include <string.h> #include "swfdec_text_field.h" @@ -91,293 +90,6 @@ swfdec_text_field_init (SwfdecTextField * text) text->scroll = 1; } -SwfdecLayout * -swfdec_text_field_generate_layouts (SwfdecTextField *text, cairo_t *cr, - const SwfdecParagraph *paragraphs, const SwfdecColorTransform *trans, - const SwfdecRect *inval, int *num) -{ - GArray *layouts; - guint i; - - g_return_val_if_fa...
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
...me); } else { SWFDEC_ERROR ("id %u does not specify a font", id); } diff --git a/libswfdec/swfdec_text_field.h b/libswfdec/swfdec_text_field.h index c565b2a..938dbfd 100644 --- a/libswfdec/swfdec_text_field.h +++ b/libswfdec/swfdec_text_field.h @@ -101,9 +101,9 @@ struct _SwfdecTextField gboolean background; /* only to be passed to the movie object */ - SwfdecFont * font; char * text_input; char * variable; + char * font; guint size; SwfdecColor color; SwfdecTextAlign align; diff --git a/libswfdec/swfdec_text_field_movie.c b/libswfdec/swfdec_text_fi...
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
...eld_movie.c b/libswfdec/swfdec_text_field_movie.c index 4a91792..5cfc7dd 100644 --- a/libswfdec/swfdec_text_field_movie.c +++ b/libswfdec/swfdec_text_field_movie.c @@ -679,7 +679,8 @@ swfdec_text_field_movie_render (SwfdecMovie *movie, cairo_t *cr, } void -swfdec_text_field_movie_update_scroll (SwfdecTextFieldMovie *text) +swfdec_text_field_movie_update_scroll (SwfdecTextFieldMovie *text, + gboolean check_limits) { SwfdecLayout *layouts; int i, num, y, visible, all, height; @@ -729,11 +730,16 @@ swfdec_text_field_movie_update_scroll (SwfdecTextFieldMovie *text) layouts = NULL; text->...
2007 Oct 17
0
6 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c
...t_field_movie_set_text (text, str, text->text->html); + if (text->text->variable != NULL) { + swfdec_text_field_movie_set_listen_variable (text, + swfdec_as_context_get_string (cx, text->text->variable)); } } @@ -721,39 +716,92 @@ swfdec_text_field_movie_set_text_format (SwfdecTextFieldMovie *text, swfdec_text_field_movie_format_changed (text); } +static void +swfdec_text_field_movie_parse_listen_variable (SwfdecTextFieldMovie *text, + const char *variable, SwfdecAsObject **object, const char **name) +{ + g_return_if_fail (SWFDEC_IS_TEXT_FIELD_MOVIE (text)); + g_return_...
2007 Nov 02
0
5 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_array.h libswfdec/swfdec_as_date.c libswfdec/swfdec_as_date.h libswfdec/swfdec_as_initialize.as libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_filter.c
...movie.c b/libswfdec/swfdec_text_field_movie.c index f679cdf..16e58db 100644 --- a/libswfdec/swfdec_text_field_movie.c +++ b/libswfdec/swfdec_text_field_movie.c @@ -48,6 +48,24 @@ swfdec_text_field_movie_update_extents (SwfdecMovie *movie, } static void +swfdec_text_field_movie_ensure_asterisks (SwfdecTextFieldMovie *text, + guint length) +{ + g_return_if_fail (SWFDEC_IS_TEXT_FIELD_MOVIE (text)); + + if (text->asterisks_length >= length) + return; + + if (text->asterisks != NULL) + g_free (text->asterisks); + + text->asterisks = g_malloc (length + 1); + memset (text->asteri...
2007 Oct 22
0
12 commits - libswfdec/swfdec_as_strings.c 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_text_field_movie.h test/trace
...html property is false diff --git a/libswfdec/swfdec_text_field_movie.c b/libswfdec/swfdec_text_field_movie.c index 78fd2b3..0bc39e1 100644 --- a/libswfdec/swfdec_text_field_movie.c +++ b/libswfdec/swfdec_text_field_movie.c @@ -1477,6 +1477,30 @@ swfdec_text_field_movie_html_text_append_paragraph (SwfdecTextFieldMovie *text, } const char * +swfdec_text_field_movie_get_text (SwfdecTextFieldMovie *text) +{ + char *str, *p; + + str = g_strdup (text->input->str); + + // if input was orginally html, remove all \r + if (text->input_html) { + p = str; + while ((p = strchr (p, '\r'))...
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
...+0200 Some small fixes to TextField's size handling diff --git a/libswfdec/swfdec_text_field_movie.c b/libswfdec/swfdec_text_field_movie.c index 881327c..f10f529 100644 --- a/libswfdec/swfdec_text_field_movie.c +++ b/libswfdec/swfdec_text_field_movie.c @@ -37,6 +37,8 @@ G_DEFINE_TYPE (SwfdecTextFieldMovie, swfdec_text_field_movie, SWFDEC_TYPE_MOVIE) +#define EXTRA_MARGIN 2 + static void swfdec_text_field_movie_update_extents (SwfdecMovie *movie, SwfdecRect *extents) @@ -611,8 +613,8 @@ swfdec_text_field_movie_render (SwfdecMovie *movie, cairo_t *cr, first = TRUE; linenum = 0; -...
2008 Jan 07
0
12 commits - configure.ac doc/swfdec.types Makefile.am test/crashfinder.c test/dump.c test/Makefile.am test/swfdec-extract.c test/swfdec_out.c test/swfdec_out.h test/swfedit.c test/swfedit_file.c test/swfedit_file.h test/swfedit_list.c test/swfedit_list.h
...- g_print ("line (width %u, color #%08X)\n", line->start_width, line->start_color); - } else { - g_print ("not filled\n"); - } - if (verbose) { - dump_path (&SWFDEC_DRAW (walk->data)->path); - } - } -} - -static void -dump_text_field (SwfdecTextField *text) -{ - g_print (" %s\n", text->input ? text->input : ""); - if (verbose) { - if (text->variable) - g_print (" variable %s\n", text->variable); - else - g_print (" no variable\n"); - } -} - -static void -dump_text (Swfdec...