Displaying 7 results from an estimated 7 matches for "swfdecstylesheet".
2007 Oct 23
0
9 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_style_sheet.c libswfdec/swfdec_style_sheet.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h
...dec_text_format.h"
#include "swfdec_debug.h"
#include "swfdec_internal.h"
#include "swfdec_as_internal.h"
@@ -297,10 +298,25 @@ swfdec_style_sheet_construct (SwfdecAsContext *cx, SwfdecAsObject *object,
static SwfdecTextFormat *
swfdec_style_sheet_get_format (SwfdecStyleSheet *style, const char *name)
{
+ SwfdecAsObject *styles;
+ SwfdecAsValue val;
+
g_return_val_if_fail (SWFDEC_IS_STYLESHEET (style), NULL);
g_return_val_if_fail (name != NULL, NULL);
- return NULL;
+ swfdec_as_object_get_variable (SWFDEC_AS_OBJECT (style),
+ SWFDEC_AS_STR__styles, &am...
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
...6 +242,25 @@ swfdec_style_sheet_parse (SwfdecAsContext *cx, const char *css)
return object;
}
+SWFDEC_AS_NATIVE (113, 100, swfdec_style_sheet_update)
+void
+swfdec_style_sheet_update (SwfdecAsContext *cx, SwfdecAsObject *object,
+ guint argc, SwfdecAsValue *argv, SwfdecAsValue *rval)
+{
+ SwfdecStyleSheet *style;
+ SwfdecTextFieldMovie *text;
+ GSList *iter;
+
+ SWFDEC_AS_CHECK (SWFDEC_TYPE_STYLESHEET, &style, "");
+
+ for (iter = style->listeners; iter != NULL; iter = iter->next) {
+ g_assert (SWFDEC_IS_TEXT_FIELD_MOVIE (iter->data));
+ text = iter->data;
+ 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
...dec_text_field_movie_update_scroll (text);
}
diff --git a/libswfdec/swfdec_text_field_movie.h b/libswfdec/swfdec_text_field_movie.h
index f862c0b..56c81cb 100644
--- a/libswfdec/swfdec_text_field_movie.h
+++ b/libswfdec/swfdec_text_field_movie.h
@@ -93,7 +93,10 @@ struct _SwfdecTextFieldMovie {
SwfdecStyleSheet * style_sheet;
int scroll;
+ int scroll_max;
+ int scroll_bottom;
int hscroll;
+ int hscroll_max;
gboolean mouse_wheel_enabled;
const char * restrict_;
@@ -116,20 +119,12 @@ GType swfdec_text_field_movie_get_type (void);
void swfdec_text_field_movie_set_text (Swf...
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
...Format * format_new;
GSList * formats;
- SwfdecAntiAliasType anti_alias_type;
gboolean condense_white;
gboolean embed_fonts;
- SwfdecGridFitType grid_fit_type;
- guint hscroll;
- gboolean mouse_wheel_enabled;
- const char * restrict_;
- guint scroll;
- int sharpness;
SwfdecStyleSheet * style_sheet;
- int thickness;
SwfdecColor border_color;
SwfdecColor background_color;
@@ -100,6 +81,8 @@ void swfdec_text_field_movie_set_text_format (SwfdecTextFieldMovie * text,
SwfdecTextFormat * format,
guint start_index,
guint end_index);
+void s...
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
...eld_movie_render;
}
diff --git a/libswfdec/swfdec_text_field_movie.h b/libswfdec/swfdec_text_field_movie.h
index 058d915..70ddb4f 100644
--- a/libswfdec/swfdec_text_field_movie.h
+++ b/libswfdec/swfdec_text_field_movie.h
@@ -92,6 +92,7 @@ struct _SwfdecTextFieldMovie {
gboolean embed_fonts;
SwfdecStyleSheet * style_sheet;
+ gboolean scroll_changed; /* if any of the scroll attributes have changed and we haven't fired the event yet */
int scroll;
int scroll_max;
int scroll_bottom;
diff --git a/libswfdec/swfdec_text_field_movie_as.c b/libswfdec/swfdec_text_field_movie_as.c
index 42...
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_xml.h"
-#include "swfdec_debug.h"
-
-typedef struct {
- const char * name;
- int name_length;
- guint index;
- guint end_index;
- SwfdecTextFormat *format;
-} ParserTag;
-
-typedef struct {
- SwfdecAsContext *cx;
- gboolean multiline;
- gboolean condense_white;
- SwfdecStyleSheet *style_sheet;
- GString * text;
- GSList * tags_open;
- GSList * tags_closed;
-} ParserData;
-
-static void
-swfdec_text_field_movie_html_parse_close_tag (ParserData *data, ParserTag *tag)
-{
- if (data->multiline &&
- ((tag->name_length == 1 && !g_strncasecmp (tag...
2007 Oct 17
0
6 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h test/trace
...d = TRUE;
}
void
diff --git a/libswfdec/swfdec_text_field_movie.h b/libswfdec/swfdec_text_field_movie.h
index 02b7b73..a181cb7 100644
--- a/libswfdec/swfdec_text_field_movie.h
+++ b/libswfdec/swfdec_text_field_movie.h
@@ -60,6 +60,9 @@ struct _SwfdecTextFieldMovie {
gboolean embed_fonts;
SwfdecStyleSheet * style_sheet;
+ gboolean mouse_wheel_enabled;
+ const char * restrict_;
+
SwfdecColor border_color;
SwfdecColor background_color;
diff --git a/libswfdec/swfdec_text_field_movie_as.c b/libswfdec/swfdec_text_field_movie_as.c
index 635009c..2930c66 100644
--- a/libswfdec/swfdec_text_f...