search for: swfdec_movie_global_to_loc

Displaying 9 results from an estimated 9 matches for "swfdec_movie_global_to_loc".

2007 Aug 22
0
8 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_sprite_movie_as.c vivified/core
...CTOR; + shape = (argc >= 3 && swfdec_as_value_to_boolean (cx, &argv[2])); - if (argc >= 3) { - if (swfdec_as_value_to_boolean (cx, &argv[2])) { - SWFDEC_FIXME ("hitTest's shapeFlag parameter not supported"); - // just continue... - } - } + swfdec_movie_global_to_local (movie, &x, &y); - swfdec_movie_update (movie); - movie_rect = movie->original_extents; - while (movie->parent) { - swfdec_rect_transform (&movie_rect, &movie_rect, &movie->matrix); - movie = movie->parent; + if (shape && FALSE) { +...
2007 Nov 20
0
4 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_resource.c test/image test/trace
...sk and masked movie don't match diff --git a/libswfdec/swfdec_movie.c b/libswfdec/swfdec_movie.c index 2325138..a3772c8 100644 --- a/libswfdec/swfdec_movie.c +++ b/libswfdec/swfdec_movie.c @@ -564,6 +564,32 @@ swfdec_movie_rect_local_to_global (SwfdecMovie *movie, SwfdecRect *rect) } void +swfdec_movie_global_to_local_matrix (SwfdecMovie *movie, cairo_matrix_t *matrix) +{ + g_return_if_fail (SWFDEC_IS_MOVIE (movie)); + g_return_if_fail (matrix != NULL); + + cairo_matrix_init_identity (matrix); + while (movie) { + cairo_matrix_multiply (matrix, &movie->inverse_matrix, matrix); + movie = movie-&...
2007 Jun 21
0
Branch 'as' - 5 commits - libswfdec/Makefile.am libswfdec/swfdec_as_strings.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_movie.c libswfdec/swfdec_net_connection.c libswfdec/swfdec_net_stream_as.c libswfdec/swfdec_net_stream.c
...double mouse_x, mouse_y; double x, y; SwfdecMovie *movie; @@ -446,23 +445,23 @@ swfdec_player_update_drag_movie (SwfdecP movie = player->mouse_drag; g_assert (movie->cache_state == SWFDEC_MOVIE_UP_TO_DATE); - mouse_x = player->mouse_x; - mouse_y = player->mouse_y; - swfdec_movie_global_to_local (movie->parent, &mouse_x, &mouse_y); - mouse_x = CLAMP (mouse_x, player->mouse_drag_rect.x0, player->mouse_drag_rect.x1); - mouse_y = CLAMP (mouse_y, player->mouse_drag_rect.y0, player->mouse_drag_rect.y1); - SWFDEC_LOG ("mouse is at %g %g, orighinally (%g %g)"...
2007 Dec 13
0
libswfdec-gtk/swfdec_gtk_player.c libswfdec/swfdec_as_date.c libswfdec/swfdec_audio.c libswfdec/swfdec_audio_event.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_interval.c libswfdec/swfdec_key_as.c libswfdec/swfdec_mouse_as.c libswfdec/swfdec_movie.c
...e *x, double *y) g_return_if_fail (y != NULL); player = SWFDEC_PLAYER (SWFDEC_AS_OBJECT (movie)->context); - *x = player->mouse_x; - *y = player->mouse_y; + *x = player->priv->mouse_x; + *y = player->priv->mouse_y; swfdec_player_stage_to_global (player, x, y); swfdec_movie_global_to_local (movie, x, y); } @@ -1076,7 +1078,7 @@ swfdec_movie_get_by_name (SwfdecMovie *movie, const char *name, gboolean unnamed if (errno != 0 || *end != 0 || l > G_MAXINT) return NULL; i = l - 16384; - for (walk = player->roots; walk; walk = walk->next) { + for (walk = p...
2007 Aug 07
0
5 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_keys.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie_as.c player/swfdebug.c player/swfdec_debug_movies.c player/swfdec_debug_movies.h test/trace
...rent; if (parent) { movie->swf = g_object_ref (parent->swf); diff --git a/libswfdec/swfdec_movie.h b/libswfdec/swfdec_movie.h index 47d46ab..1e83f6b 100644 --- a/libswfdec/swfdec_movie.h +++ b/libswfdec/swfdec_movie.h @@ -192,6 +192,8 @@ void swfdec_movie_local_to_global (Swfd void swfdec_movie_global_to_local (SwfdecMovie * movie, double * x, double * y); +void swfdec_movie_set_depth (SwfdecMovie * movie, + int depth); void swfdec_movie_get_mouse (SwfdecMovie * movie, double * x, double * y); diff --git a/libswfdec/swfdec_sprite_movie_as.c b/libswfde...
2007 Jun 05
0
Branch 'as' - 8 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_number.c libswfdec/swfdec_as_scope.h
...8,7 @@ swfdec_movie_get_mouse (SwfdecMovie *mov g_return_if_fail (x != NULL); g_return_if_fail (y != NULL); - player = SWFDEC_ROOT_MOVIE (movie->root)->player; + player = SWFDEC_PLAYER (SWFDEC_AS_OBJECT (movie)->context); *x = player->mouse_x; *y = player->mouse_y; swfdec_movie_global_to_local (movie, x, y); @@ -577,7 +578,7 @@ swfdec_movie_send_mouse_change (SwfdecMo button = 0; } else { mouse_in = swfdec_movie_mouse_in (movie, x, y); - button = SWFDEC_ROOT_MOVIE (movie->root)->player->mouse_button; + button = SWFDEC_PLAYER (SWFDEC_AS_OBJECT (movie)->con...
2007 Feb 19
0
22 commits - libswfdec/js libswfdec/swfdec_debugger.c libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_script.c
...Author: Benjamin Otte <otte@gnome.org> Date: Sat Feb 17 19:39:16 2007 +0100 document swfdec_movie_get_mouse diff --git a/libswfdec/swfdec_movie.c b/libswfdec/swfdec_movie.c index 3ab9c88..cbb787c 100644 --- a/libswfdec/swfdec_movie.c +++ b/libswfdec/swfdec_movie.c @@ -401,6 +401,14 @@ swfdec_movie_global_to_local (SwfdecMovi cairo_matrix_transform_point (&movie->inverse_matrix, x, y); } +/** + * swfdec_movie_get_mouse: + * @movie: a #SwfdecMovie + * @x: pointer to hold result of X coordinate + * @y: pointer to hold result of y coordinate + * + * Gets the mouse coordinates in the coordinate sp...
2007 Nov 28
0
59 commits - libswfdec-gtk/swfdec_gtk_widget.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_button.c libswfdec/swfdec_button.h libswfdec/swfdec_button_movie.c libswfdec/swfdec_button_movie.h libswfdec/swfdec_event.c
...x, &tmp_x, &tmp_y); - if (swfdec_movie_mouse_in (cur, tmp_x, tmp_y)) - return TRUE; - } - return FALSE; -} - void swfdec_movie_local_to_global (SwfdecMovie *movie, double *x, double *y) { @@ -641,97 +617,80 @@ swfdec_movie_get_mouse (SwfdecMovie *movie, double *x, double *y) swfdec_movie_global_to_local (movie, x, y); } -void -swfdec_movie_send_mouse_change (SwfdecMovie *movie, gboolean release) -{ - double x, y; - gboolean mouse_in; - int button; - SwfdecMovieClass *klass; - - swfdec_movie_get_mouse (movie, &x, &y); - if (release) { - mouse_in = FALSE; - button = 0; - }...
2008 Jan 01
0
4 commits - libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_object.c libswfdec/swfdec_as_types.c libswfdec/swfdec_as_types.h libswfdec/swfdec_sprite_movie_as.c test/trace
..._AS_STR_y); + if (yv == NULL || !SWFDEC_AS_VALUE_IS_NUMBER (yv)) + return; + + x = SWFDEC_AS_VALUE_GET_NUMBER (xv); + y = SWFDEC_AS_VALUE_GET_NUMBER (yv); + x = swfdec_as_double_to_integer (x * SWFDEC_TWIPS_SCALE_FACTOR); + y = swfdec_as_double_to_integer (y * SWFDEC_TWIPS_SCALE_FACTOR); + swfdec_movie_global_to_local (movie, &x, &y); + SWFDEC_AS_VALUE_SET_NUMBER (xv, SWFDEC_TWIPS_TO_DOUBLE ((SwfdecTwips) x)); + SWFDEC_AS_VALUE_SET_NUMBER (yv, SWFDEC_TWIPS_TO_DOUBLE ((SwfdecTwips) y)); } SWFDEC_AS_NATIVE (900, 8, swfdec_sprite_movie_attachAudio) commit fe9a746b1809b6d2ef00be537703e5dc5c3826d5 Aut...