search for: swfdecstrok

Displaying 6 results from an estimated 6 matches for "swfdecstrok".

Did you mean: swfdecstroke
2007 Apr 16
0
7 commits - libswfdec/swfdec_codec_gst.c libswfdec/swfdec_font.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_morph_movie.c libswfdec/swfdec_pattern.c libswfdec/swfdec_pattern.h libswfdec/swfdec_shape.c libswfdec/swfdec_shape.h libswfdec/swfdec_sprite.c
...tern SwfdecGradientPattern *gradient = SWFDEC_GRADIENT_PATTERN (pattern); return g_strdup_printf ("%s gradient (%u colors)", gradient->radial ? "radial" : "linear", gradient->gradient->n_gradients); - } else if (SWFDEC_IS_STROKE (pattern)) { - SwfdecStroke *line = SWFDEC_STROKE (pattern); - return g_strdup_printf ("line (width %u, color #%08X)", line->start_width, line->start_color); } else { return g_strdup_printf ("%s", G_OBJECT_TYPE_NAME (pattern)); } diff --git a/libswfdec/swfdec_pattern.h b/libswfdec/swfd...
2007 Apr 13
0
5 commits - libswfdec/Makefile.am libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_font.c libswfdec/swfdec_loadertarget.c libswfdec/swfdec_movie.h libswfdec/swfdec_pattern.c libswfdec/swfdec_pattern.h libswfdec/swfdec_player.c
...ratio + end->y0 * ratio) / 65535; -} +#include "swfdec_stroke.h" /*** PATTERN ***/ @@ -71,131 +47,6 @@ swfdec_pattern_init (SwfdecPattern *patt cairo_matrix_init_identity (&pattern->end_transform); } -/*** STROKE PATTERN ***/ - -#define MAX_ALIGN 10 - -typedef struct _SwfdecStrokePattern SwfdecStrokePattern; -typedef struct _SwfdecStrokePatternClass SwfdecStrokePatternClass; - -#define SWFDEC_TYPE_STROKE_PATTERN (swfdec_stroke_pattern_get_type()) -#define SWFDEC_IS_STROKE_PATTERN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SWFDEC_TYPE_STROKE_...
2007 Jul 01
1
implementing MovieClip drawing API
Hi, I would like to implement MovieClip.{moveTo,lineTo,lineStyle}. I initially thought I could place an SwfdecShape inside an SwfdecSpriteMovie created by createEmptyMovieClip then call swfdec_shape_ counterparts when MovieClip.{moveTo,lineTo,lineStyle} were called. It wasn't as easy as I had thought. All the functions are highly tied to swf bitstream, even adding an SwfdecShapeMovie to
2007 Oct 11
0
10 commits - configure.ac doc/Makefile.am doc/swfdec-sections.txt libswfdec/swfdec_buffer.c libswfdec/swfdec_movie_as_drawing.c test/image test/sound
...fdec_movie_as_drawing.c +++ b/libswfdec/swfdec_movie_as_drawing.c @@ -32,12 +32,50 @@ /* FIXME: This whole code assumes it works for MovieClip, Button and TextField * objects. If it only works for MovieClip objects, fix this. */ +static SwfdecDraw * +swfdec_stroke_copy (SwfdecDraw *draw) +{ + SwfdecStroke *sstroke = SWFDEC_STROKE (draw); + SwfdecStroke *dstroke = g_object_new (SWFDEC_TYPE_STROKE, NULL); + + dstroke->start_width = sstroke->start_width; + dstroke->start_color = sstroke->start_color; + if (sstroke->pattern) + dstroke->pattern = g_object_ref (sstroke->patter...
2007 Apr 16
0
4 commits - libswfdec/swfdec_shape.c libswfdec/swfdec_stroke.c test/dump.c
...t; Date: Mon Apr 16 10:36:55 2007 +0200 end print with a \n diff --git a/test/dump.c b/test/dump.c index 96f9328..01e6289 100644 --- a/test/dump.c +++ b/test/dump.c @@ -201,7 +201,7 @@ dump_shape (SwfdecShape *shape) } } else if (SWFDEC_IS_STROKE (shapevec->pattern)) { SwfdecStroke *line = SWFDEC_STROKE (shapevec->pattern); - g_print ("line (width %u, color #%08X)", line->start_width, line->start_color); + g_print ("line (width %u, color #%08X)\n", line->start_width, line->start_color); } else { g_print ("not fill...
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 %g %g\n", - pattern->start_transform.xx, pattern->start_transform.xy, - pattern->start_transform.yx, pattern->start_transform.yy, - pattern->start_transform.x0, pattern->start_transform.y0); - } - } else if (SWFDEC_IS_STROKE (walk->data)) { - SwfdecStroke *line = walk->data; - 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...