Displaying 6 results from an estimated 6 matches for "swfdec_as_str_color".
2007 Oct 14
0
3 commits - doc/Makefile.am libswfdec/swfdec_text_field_movie_as.c
...text->text->embed_fonts = value;
}
static void
@@ -619,8 +619,7 @@ swfdec_text_field_movie_get_textColor (SwfdecAsContext *cx,
SWFDEC_AS_CHECK (SWFDEC_TYPE_TEXT_FIELD_MOVIE, &text, "");
- swfdec_as_object_get_variable (SWFDEC_AS_OBJECT (text->format_new),
- SWFDEC_AS_STR_color, ret);
+ SWFDEC_AS_VALUE_SET_NUMBER (ret, text->format_new->color);
}
// This doesn't work the same way as TextFormat's color setting
@@ -631,18 +630,16 @@ swfdec_text_field_movie_set_textColor (SwfdecAsContext *cx,
{
SwfdecTextFieldMovie *text;
int value;
- SwfdecAsValue...
2007 Oct 13
0
5 commits - libswfdec/swfdec_html_parser.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_xml.c test/trace
...EC_AS_VALUE_SET_NUMBER (&val_number, 0);
+ } else {
+ int number;
+ char *tail;
+
+ number = g_ascii_strtoll (value + 1, &tail, 16);
+ if (tail != value + 7)
+ number = 0;
+ SWFDEC_AS_VALUE_SET_NUMBER (&val_number, number);
+ }
+
+ swfdec_as_object_set_variable (object, SWFDEC_AS_STR_color, &val_number);
+ }
else if (name_length == 13 && !g_strncasecmp (name, "letterspacing", 13))
{
swfdec_as_object_set_variable (object, SWFDEC_AS_STR_letterSpacing,
diff-tree ec52d0b16b2c5001bf9e1503e49b504853cc288c (from 069300ee8c33a1fede5e2f07624328fbacd2f...
2007 May 23
0
Branch 'as' - 7 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_strings.c
...l, obj);
+}
+
+void
+swfdec_movie_color_init_context (SwfdecAsContext *context, guint version)
+{
+ SwfdecAsObject *color, *proto;
+ SwfdecAsValue val;
+
+ g_return_if_fail (SWFDEC_IS_AS_CONTEXT (context));
+
+ color = SWFDEC_AS_OBJECT (swfdec_as_object_add_function (context->global,
+ SWFDEC_AS_STR_Color, SWFDEC_TYPE_MOVIE_COLOR, swfdec_movie_color_construct, 0));
+ if (!color)
+ return;
+ if (!swfdec_as_context_use_mem (context, sizeof (SwfdecMovieColor)))
+ return;
+ proto = g_object_new (SWFDEC_TYPE_MOVIE_COLOR, NULL);
+ swfdec_as_object_add (proto, context, sizeof (SwfdecMovieColor));...
2007 Oct 23
0
11 commits - libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_object.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_style_sheet.c libswfdec/swfdec_style_sheet.h
...do_get_bold, swfdec_text_format_do_set_bold);
- swfdec_text_format_add_variable (proto, SWFDEC_AS_STR_bullet,
+ swfdec_as_object_add_native_variable (proto, SWFDEC_AS_STR_bullet,
swfdec_text_format_do_get_bullet, swfdec_text_format_do_set_bullet);
- swfdec_text_format_add_variable (proto, SWFDEC_AS_STR_color,
+ swfdec_as_object_add_native_variable (proto, SWFDEC_AS_STR_color,
swfdec_text_format_do_get_color, swfdec_text_format_do_set_color);
- swfdec_text_format_add_variable (proto, SWFDEC_AS_STR_display,
+ swfdec_as_object_add_native_variable (proto, SWFDEC_AS_STR_display,
swfdec_text...
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
...EC_AS_VALUE_SET_NUMBER (&val_number, 0);
- } else {
- int number;
- char *tail;
-
- number = g_ascii_strtoll (value + 1, &tail, 16);
- if (tail != value + 7)
- number = 0;
- SWFDEC_AS_VALUE_SET_NUMBER (&val_number, number);
- }
-
- swfdec_as_object_set_variable (object, SWFDEC_AS_STR_color, &val_number);
- }
- else if (name_length == 13 && !g_strncasecmp (name, "letterspacing", 13))
- {
- swfdec_as_object_set_variable (object, SWFDEC_AS_STR_letterSpacing,
- &val);
- }
- // special case: Don't parse kerning
- }
- else if (tag->n...
2007 Nov 30
0
36 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_date.c libswfdec/swfdec_as_initialize.as libswfdec/swfdec_as_initialize.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_flash_security.c
...at.c
+++ b/libswfdec/swfdec_text_format.c
@@ -1150,6 +1150,22 @@ void
swfdec_text_format_construct (SwfdecAsContext *cx, SwfdecAsObject *object,
guint argc, SwfdecAsValue *argv, SwfdecAsValue *ret)
{
+ static const char *arguments[] = {
+ SWFDEC_AS_STR_font,
+ SWFDEC_AS_STR_size,
+ SWFDEC_AS_STR_color,
+ SWFDEC_AS_STR_bold,
+ SWFDEC_AS_STR_italic,
+ SWFDEC_AS_STR_underline,
+ SWFDEC_AS_STR_url,
+ SWFDEC_AS_STR_target,
+ SWFDEC_AS_STR_align,
+ SWFDEC_AS_STR_leftMargin,
+ SWFDEC_AS_STR_rightMargin,
+ SWFDEC_AS_STR_indent,
+ SWFDEC_AS_STR_leading,
+ NULL
+ };
Sw...