Displaying 2 results from an estimated 2 matches for "get_align".
Did you mean:
set_align
2007 Jul 26
0
6 commits - libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_stage_as.c test/trace
...ndif
+#include <string.h>
#include "swfdec_as_strings.h"
#include "swfdec_debug.h"
#include "swfdec_player_internal.h"
@@ -77,3 +78,51 @@ set_scaleMode (SwfdecAsContext *cx, Swfd
swfdec_player_set_scale_mode (player, mode);
}
+SWFDEC_AS_NATIVE (666, 3, get_align)
+void
+get_align (SwfdecAsContext *cx, SwfdecAsObject *object,
+ guint argc, SwfdecAsValue *argv, SwfdecAsValue *ret)
+{
+ SwfdecPlayer *player = SWFDEC_PLAYER (cx);
+ char s[5];
+ guint i = 0;
+
+ if (player->align_flags & SWFDEC_ALIGN_FLAG_LEFT)
+ s[i++] = 'L';
+ if (pl...
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
...(priv->scale_mode != mode) {
+ priv->scale_mode = mode;
swfdec_player_update_scale (player);
g_object_notify (G_OBJECT (player), "scale-mode");
swfdec_player_add_external_action (player, player, swfdec_player_update_size, NULL);
@@ -2672,7 +2750,7 @@ swfdec_player_get_alignment (SwfdecPlayer *player)
{
g_return_val_if_fail (SWFDEC_IS_PLAYER (player), SWFDEC_ALIGNMENT_CENTER);
- return swfdec_player_alignment_from_flags (player->align_flags);
+ return swfdec_player_alignment_from_flags (player->priv->align_flags);
}
/**
@@ -2697,10 +2775,13 @@ swfd...