Displaying 12 results from an estimated 12 matches for "swfdec_movie_set_depth".
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
...mouse_drag == movie)
player->mouse_drag = NULL;
swfdec_movie_invalidate (movie);
- movie->depth = -16385 - movie->depth; /* don't ask me why... */
- if (movie->parent)
- movie->parent->list = g_list_sort (movie->parent->list, swfdec_movie_compare_depths);
+ swfdec_movie_set_depth (movie, -16385 - movie->depth); /* don't ask me why... */
if (SWFDEC_IS_SPRITE_MOVIE (movie))
return !swfdec_movie_queue_script (movie, SWFDEC_EVENT_UNLOAD);
@@ -739,6 +742,38 @@ swfdec_movie_render (SwfdecMovie *movie,
}
static void
+swfdec_movie_get_property (GObject *object,...
2007 Aug 22
0
Branch 'vivi' - 2 commits - libswfdec/swfdec_movie.c test/trace
...ovie.c b/libswfdec/swfdec_movie.c
index 6a03bd1..0f3cb91 100644
--- a/libswfdec/swfdec_movie.c
+++ b/libswfdec/swfdec_movie.c
@@ -260,7 +260,7 @@ swfdec_movie_do_remove (SwfdecMovie *mov
if (player->mouse_drag == movie)
player->mouse_drag = NULL;
swfdec_movie_invalidate (movie);
- swfdec_movie_set_depth (movie, -16385 - movie->depth); /* don't ask me why... */
+ swfdec_movie_set_depth (movie, -32769 - movie->depth); /* don't ask me why... */
if (SWFDEC_IS_SPRITE_MOVIE (movie))
return !swfdec_movie_queue_script (movie, SWFDEC_EVENT_UNLOAD);
2007 Nov 28
0
7 commits - configure.ac libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c test/trace
...>data, destroy);
}
/* FIXME: all of this here or in destroy callback? */
if (player->mouse_grab == movie)
@@ -275,16 +275,17 @@ swfdec_movie_do_remove (SwfdecMovie *movie)
if (player->mouse_drag == movie)
player->mouse_drag = NULL;
swfdec_movie_invalidate (movie);
- swfdec_movie_set_depth (movie, -32769 - movie->depth); /* don't ask me why... */
+ movie->state = SWFDEC_MOVIE_STATE_REMOVED;
if ((movie->events &&
swfdec_event_list_has_conditions (movie->events, SWFDEC_AS_OBJECT (movie), SWFDEC_EVENT_UNLOAD, 0)) ||
swfdec_as_object_has_function (...
2008 Jan 02
0
4 commits - libswfdec/Makefile.am libswfdec/swfdec_movie.c libswfdec/swfdec_shape_parser.c test/dump.c test/trace
...FDEC_AS_VALUE_SET_STRING (val, swfdec_as_context_get_string (object->context,
- SWFDEC_PLAYER (object->context)->priv->system->version));
- *flags = 0;
- return TRUE;
- }
movie = swfdec_movie_get_by_name (movie, variable, FALSE);
if (movie) {
@@ -1489,6 +1483,22 @@ swfdec_movie_set_depth (SwfdecMovie *movie, int depth)
g_object_notify (G_OBJECT (movie), "depth");
}
+static void
+swfdec_movie_set_version (SwfdecMovie *movie)
+{
+ SwfdecAsObject *o;
+ SwfdecAsContext *cx;
+ SwfdecAsValue val;
+
+ if (movie->parent != NULL)
+ return;
+
+ o = SWFDEC_AS_OBJECT...
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
...(Swfd
void swfdec_movie_global_to_local (SwfdecMovie * movie,
double * x,
double * y);
+void swfdec_movie_rect_local_to_global (SwfdecMovie * movie,
+ SwfdecRect * rect);
+void swfdec_movie_rect_global_to_local (SwfdecMovie * movie,
+ SwfdecRect * rect);
void swfdec_movie_set_depth (SwfdecMovie * movie,
int depth);
void swfdec_movie_get_mouse (SwfdecMovie * movie,
@@ -199,6 +203,9 @@ void swfdec_movie_get_mouse (SwfdecMov
double * y);
void swfdec_movie_send_mouse_change (SwfdecMovie * movie,
gboolean release);
+gboolean swfdec_movie_mous...
2007 Dec 10
0
6 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_color_as.c libswfdec/swfdec_graphic_movie.c libswfdec/swfdec_image_decoder.c libswfdec/swfdec_morph_movie.c libswfdec/swfdec_movie_as_drawing.c
...lass->render = swfdec_movie_do_render;
+ movie_class->invalidate = swfdec_movie_do_invalidate;
movie_class->contains = swfdec_movie_do_contains;
movie_class->iterate_end = swfdec_movie_iterate_end;
movie_class->mouse_events = swfdec_movie_mouse_events;
@@ -1404,7 +1476,7 @@ swfdec_movie_set_depth (SwfdecMovie *movie, int depth)
if (movie->depth == depth)
return;
- swfdec_movie_invalidate (movie);
+ swfdec_movie_invalidate_last (movie);
movie->depth = depth;
if (movie->parent) {
movie->parent->list = g_list_sort (movie->parent->list, swfdec_movie_c...
2007 Oct 18
0
18 commits - doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_event.c libswfdec/swfdec_event.h libswfdec/swfdec_flash_security.c
...vie == NULL) {
movie = (SwfdecSpriteMovie *) swfdec_player_get_movie_from_string (
SWFDEC_PLAYER (cx), target);
diff --git a/libswfdec/swfdec_movie.c b/libswfdec/swfdec_movie.c
index 41a0007..4617169 100644
--- a/libswfdec/swfdec_movie.c
+++ b/libswfdec/swfdec_movie.c
@@ -1214,6 +1214,7 @@ swfdec_movie_set_depth (SwfdecMovie *movie, int depth)
* @player: a #SwfdecPlayer
* @depth: depth of movie
* @parent: the parent movie or %NULL to make this a root movie
+ * @resource: the resource that is responsible for this movie
* @graphic: the graphic that is displayed by this movie or %NULL to create an...
2007 Oct 25
0
6 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_event.c libswfdec/swfdec_event.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_resource.c
..._get_name (SwfdecEventType type);
diff --git a/libswfdec/swfdec_movie.c b/libswfdec/swfdec_movie.c
index f3b1ee9..1079fbf 100644
--- a/libswfdec/swfdec_movie.c
+++ b/libswfdec/swfdec_movie.c
@@ -269,10 +269,7 @@ swfdec_movie_do_remove (SwfdecMovie *movie)
swfdec_movie_invalidate (movie);
swfdec_movie_set_depth (movie, -32769 - movie->depth); /* don't ask me why... */
- if (SWFDEC_IS_SPRITE_MOVIE (movie))
- return !swfdec_movie_queue_script (movie, SWFDEC_EVENT_UNLOAD);
- else
- return TRUE;
+ return !swfdec_movie_queue_script (movie, SWFDEC_EVENT_UNLOAD);
}
/**
@@ -327,8 +324,6 @@ s...
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
...C_PLAYER (SWFDEC_AS_OBJECT (movie)->context);
- if (player->mouse_below == movie)
+ if (player->priv->mouse_below == movie)
swfdec_movie_queue_script (movie, SWFDEC_EVENT_RELEASE);
else
swfdec_movie_queue_script (movie, SWFDEC_EVENT_RELEASE_OUTSIDE);
@@ -1481,7 +1483,7 @@ swfdec_movie_set_depth (SwfdecMovie *movie, int depth)
if (movie->parent) {
movie->parent->list = g_list_sort (movie->parent->list, swfdec_movie_compare_depths);
} else {
- SwfdecPlayer *player = SWFDEC_PLAYER (SWFDEC_AS_OBJECT (movie)->context);
+ SwfdecPlayerPrivate *player = SWFDEC_P...
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
...e y,
gboolean events);
/* mouse handling */
+ gboolean (* mouse_events) (SwfdecMovie * movie);
void (* mouse_in) (SwfdecMovie * movie);
void (* mouse_out) (SwfdecMovie * movie);
void (* mouse_press) (SwfdecMovie * movie,
@@ -269,6 +268,7 @@ void swfdec_movie_set_depth (SwfdecMovie * movie,
void swfdec_movie_get_mouse (SwfdecMovie * movie,
double * x,
double * y);
+gboolean swfdec_movie_get_mouse_events (SwfdecMovie * movie);
#define swfdec_movie_contains(movie, x, y) \
(swfdec_movie_get_movie_at ((movie), (x), (y), FALSE) != NULL)
S...
2007 Nov 12
0
20 commits - libswfdec/swfdec_as_function.c libswfdec/swfdec_as_string.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_load_object_as.c libswfdec/swfdec_movie_as_drawing.c libswfdec/swfdec_player_as.c
...0]);
- other = swfdec_movie_find (movie->parent, depth);
+ if (movie->parent) {
+ other = swfdec_movie_find (movie->parent, depth);
+ } else {
+ // special case: if root movie: we won't swap just, but just set depth
+ other = NULL;
+ }
}
if (other)
swfdec_movie_set_depth (other, movie->depth);
commit a018763f712ce4d83ee2d63cc7654ec62ad9bc9b
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date: Mon Nov 12 23:43:26 2007 +0200
Fix a crash in swfdec_sprite_movie_lineStyle when called with no arguments
diff --git a/libswfdec/swfdec_movie_as_drawing.c b/...
2007 Aug 22
0
163 commits - autogen.sh configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec-gtk/swfdec_gtk_widget.c libswfdec-gtk/swfdec_source.c libswfdec/Makefile.am libswfdec/swfdec_as_array.c
...ovie.c b/libswfdec/swfdec_movie.c
index 6a03bd1..0f3cb91 100644
--- a/libswfdec/swfdec_movie.c
+++ b/libswfdec/swfdec_movie.c
@@ -260,7 +260,7 @@ swfdec_movie_do_remove (SwfdecMovie *mov
if (player->mouse_drag == movie)
player->mouse_drag = NULL;
swfdec_movie_invalidate (movie);
- swfdec_movie_set_depth (movie, -16385 - movie->depth); /* don't ask me why... */
+ swfdec_movie_set_depth (movie, -32769 - movie->depth); /* don't ask me why... */
if (SWFDEC_IS_SPRITE_MOVIE (movie))
return !swfdec_movie_queue_script (movie, SWFDEC_EVENT_UNLOAD);
diff-tree cd4771d4b96dc96212d6981...