Displaying 6 results from an estimated 6 matches for "auto_size".
Did you mean:
  attr_size
  
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
...CLAMP(text->scroll, 1, text->scroll_max) +
+      (visible > 0 ? visible - 1 : 0), text->scroll);
+  }
 }
 
 gboolean
@@ -1018,7 +1024,8 @@ swfdec_text_field_movie_set_text_format (SwfdecTextFieldMovie *text,
 
   swfdec_movie_invalidate (SWFDEC_MOVIE (text));
   swfdec_text_field_movie_auto_size (text);
-  swfdec_text_field_movie_update_scroll (text);
+  // special case: update the max values, not the current values
+  swfdec_text_field_movie_update_scroll (text, FALSE);
 }
 
 static void
@@ -1465,5 +1472,5 @@ swfdec_text_field_movie_set_text (SwfdecTextFieldMovie *text, const char *str,...
2007 Oct 14
0
5 commits - libswfdec/swfdec_html_parser.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_xml.c libswfdec/swfdec_xml.h
...s; iter != NULL; iter = iter->next)
diff --git a/libswfdec/swfdec_text_field.h b/libswfdec/swfdec_text_field.h
index dda2787..c565b2a 100644
--- a/libswfdec/swfdec_text_field.h
+++ b/libswfdec/swfdec_text_field.h
@@ -95,6 +95,8 @@ struct _SwfdecTextField
   gboolean		multiline;
   SwfdecAutoSize	auto_size;
 
+  int			scroll;
+
   gboolean		border;
   gboolean		background;
2007 Feb 12
0
[861] trunk/wxruby2/doc/textile/grid.txtl: Added missing methods listing section
...ss="cx"> 
</span><ins>+<div id="methods">
</ins><span class="cx"> 
</span><ins>+* "Grid.new":#Grid_new
+* "Grid#append_cols":#Grid_appendcols
+* "Grid#append_rows":#Grid_appendrows
+* "Grid#auto_size":#Grid_autosize
+* "Grid#auto_size_col_or_row":#Grid_autosizecolorrow
+* "Grid#auto_size_column":#Grid_autosizecolumn
+* "Grid#auto_size_columns":#Grid_autosizecolumns
+* "Grid#auto_size_row":#Grid_autosizerow
+* "Grid#auto_size_rows":#Grid_aut...
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
...e < 1) {
+    value = 1;
+  } else if (value > all - visible + 1) {
+    value = all - visible + 1;
+  }
+
+  if (text->text->scroll != value) {
+    text->text->scroll = value;
+    swfdec_movie_invalidate (SWFDEC_MOVIE (text));
+  }
+}
+
 static gboolean
 swfdec_text_field_movie_auto_size (SwfdecTextFieldMovie *text)
 {
-  cairo_surface_t *surface;
-  cairo_t *cr;
-  GList *layouts, *iter;
+  SwfdecLayout *layouts;
   guint height;
-  int width, diff;
+  int i, width, diff;
   gboolean changed;
 
   g_return_val_if_fail (SWFDEC_IS_TEXT_FIELD_MOVIE (text), FALSE);
@@ -379,30 +472,21...
2007 Oct 29
0
20 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h
...ze (SwfdecTextFieldMovie *text, int *width,
   if (width != NULL)
     *width = 0;
   if (height != NULL)
-    *height = 3;
+    *height = 0;
 
   g_return_if_fail (SWFDEC_IS_TEXT_FIELD_MOVIE (text));
   g_return_if_fail (width != NULL || height != NULL);
@@ -797,7 +799,9 @@ swfdec_text_field_movie_auto_size (SwfdecTextFieldMovie *text)
   if (text->text->auto_size == SWFDEC_AUTO_SIZE_NONE)
     return FALSE;
 
-  swfdec_text_field_get_size (text, &width, &height);
+  swfdec_text_field_movie_get_text_size (text, &width, &height);
+  width += 2 * EXTRA_MARGIN;
+  height += 2 * EXTR...
2007 Oct 18
0
14 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h libswfdec/swfdec_text_format.c
...((SwfdecFormatIndex *)iter->data)->index +=
+	strlen (str) - (end_index - start_index);
+    }
+  }
+
+  text->text_display =
+    swfdec_as_context_give_string (SWFDEC_AS_OBJECT (text)->context, text_new);
+
+  swfdec_movie_invalidate (SWFDEC_MOVIE (text));
+  swfdec_text_field_movie_auto_size (text);
+  swfdec_text_field_movie_update_scroll (text, TRUE);
+}
+
+void
 swfdec_text_field_movie_set_text (SwfdecTextFieldMovie *text, const char *str,
     gboolean html)
 {
diff --git a/libswfdec/swfdec_text_field_movie.h b/libswfdec/swfdec_text_field_movie.h
index c1eed50..058d915 100644
--- a...