Displaying 4 results from an estimated 4 matches for "swfdec_text_field_movie_set_scrol".
Did you mean:
swfdec_text_field_movie_set_scroll
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
...oll_last = text->hscroll + SWFDEC_TWIPS_TO_DOUBLE (width);
- if (hscroll_max)
- *hscroll_max = SWFDEC_TWIPS_TO_DOUBLE (width_max - width);
+ text->hscroll_max = SWFDEC_TWIPS_TO_DOUBLE (width_max - width);
+ text->hscroll = CLAMP(text->hscroll, 0, text->hscroll_max);
}
-void
-swfdec_text_field_movie_set_scroll (SwfdecTextFieldMovie *text, int value)
-{
- g_return_if_fail (SWFDEC_IS_TEXT_FIELD_MOVIE (text));
-
- if (value <= 1) {
- value = 1;
- } else {
- int max;
-
- swfdec_text_field_movie_get_scroll_info (text, NULL, &max, NULL, NULL);
- if (value > max)
- value = max;
-...
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
...outs != NULL);
+
+ for (i = 0; layouts[i].layout != NULL; i++) {
+ g_object_unref (layouts[i].layout);
+ }
+
+ g_free (layouts);
+
+ g_assert (cr != NULL);
+ g_assert (surface != NULL);
+
+ cairo_destroy (cr);
+ cr = NULL;
+ cairo_surface_destroy (surface);
+ surface = NULL;
+}
+
+void
+swfdec_text_field_movie_set_scroll (SwfdecTextFieldMovie *text, int value)
+{
+ SwfdecLayout *layouts;
+ int i, num, y, visible, all, height;
+
+ g_return_if_fail (SWFDEC_IS_TEXT_FIELD_MOVIE (text));
+
+ layouts = swfdec_text_field_movie_get_layouts (text, &num);
+
+ height = SWFDEC_GRAPHIC (text->text)->extents.y1 -...
2007 Oct 17
0
6 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c
...t_field_movie.h b/libswfdec/swfdec_text_field_movie.h
index a19fcb9..02b7b73 100644
--- a/libswfdec/swfdec_text_field_movie.h
+++ b/libswfdec/swfdec_text_field_movie.h
@@ -88,10 +88,11 @@ void swfdec_text_field_movie_set_text_format (SwfdecTextFieldMovie * text,
guint end_index);
void swfdec_text_field_movie_set_scroll (SwfdecTextFieldMovie * text,
int value);
-const char * swfdec_text_field_movie_get_variable_text (SwfdecTextFieldMovie * text);
-void swfdec_text_field_movie_set_variable_text (SwfdecTextFieldMovie *text,
- const char * value);
const char * swfdec_text_field_movie_get_html_...
2007 Oct 14
0
3 commits - doc/Makefile.am libswfdec/swfdec_text_field_movie_as.c
...ec_text_field_movie_add_variable (proto, SWFDEC_AS_STR_mouseWheelEnabled,
+ swfdec_text_field_movie_get_mouseWheelEnabled,
+ swfdec_text_field_movie_set_mouseWheelEnabled);*/
+ /*swfdec_text_field_movie_add_variable (proto, SWFDEC_AS_STR_scroll,
+ swfdec_text_field_movie_get_scroll, swfdec_text_field_movie_set_scroll);*/
+
+ // display
swfdec_text_field_movie_add_variable (proto, SWFDEC_AS_STR_autoSize,
swfdec_text_field_movie_get_autoSize,
swfdec_text_field_movie_set_autoSize);
+ /*swfdec_text_field_movie_add_variable (proto, SWFDEC_AS_STR_password,
+ swfdec_text_field_movie_get_passwo...