[cluttermm] * Regenerate all defs



commit 4f40b63b2abe6561526082dee528ea8ff3e6eb0d
Author: Siavash Safi <siavash siavashs org>
Date:   Thu Jun 4 18:10:42 2009 +0430

    * Regenerate all defs
    * Wrap new methods and properties for Clutter::Texture
---
 ChangeLog                        |    8 +
 clutter/src/clutter_docs.xml     |  450 +++++++++++++++++++++++++++++---------
 clutter/src/clutter_enums.defs   |    1 +
 clutter/src/clutter_methods.defs |   87 ++++++++
 clutter/src/clutter_signals.defs |   40 ++--
 clutter/src/texture.hg           |   22 ++
 6 files changed, 488 insertions(+), 120 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 27b0e16..d8125f3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-06-04  Siavash Safi  <siavash siavashs org>
+
+	* clutter/src/clutter_docs.xml:
+	* clutter/src/clutter_enums.defs:
+	* clutter/src/clutter_methods.defs:
+	* clutter/src/clutter_signals.defs: Regenerate all defs.
+	* clutter/src/texture.hg: Wrap new methods and properties.
+
 0.9.3:
 
 2009-05-15  Murray Cumming  <murrayc murrayc com>
diff --git a/clutter/src/clutter_docs.xml b/clutter/src/clutter_docs.xml
index 3655959..047c0b1 100644
--- a/clutter/src/clutter_docs.xml
+++ b/clutter/src/clutter_docs.xml
@@ -808,6 +808,25 @@ Since: 1.0
 <return></return>
 </function>
 
+<function name="clutter_texture_get_load_async">
+<description>
+Retrieves the value set using clutter_texture_get_load_async()
+
+
+</description>
+<parameters>
+<parameter name="texture">
+<parameter_description> a #ClutterTexture
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if the #ClutterTexture should load the data from
+disk asynchronously
+
+Since: 1.0
+</return>
+</function>
+
 <function name="clutter_behaviour_ellipse_get_height">
 <description>
 Gets the height of the elliptical path.
@@ -1278,6 +1297,27 @@ Since: 0.6
 <return></return>
 </function>
 
+<function name="clutter_texture_set_keep_aspect_ratio">
+<description>
+Sets whether @texture should have a preferred size maintaining
+the aspect ratio of the underlying image
+
+Since: 1.0
+
+</description>
+<parameters>
+<parameter name="texture">
+<parameter_description> a #ClutterTexture
+</parameter_description>
+</parameter>
+<parameter name="keep_aspect">
+<parameter_description> %TRUE to maintain aspect ratio
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
 <function name="clutter_animation_bind_interval">
 <description>
 Binds @interval to the @property_name of the #GObject
@@ -1746,6 +1786,30 @@ Since: 1.0
 <return></return>
 </function>
 
+<function name="clutter_script_lookup_filename">
+<description>
+Looks up @filename inside the search paths of @script. If @filename
+is found, its full path will be returned .
+
+
+</description>
+<parameters>
+<parameter name="script">
+<parameter_description> a #ClutterScript
+</parameter_description>
+</parameter>
+<parameter name="filename">
+<parameter_description> the name of the file to lookup
+</parameter_description>
+</parameter>
+</parameters>
+<return> the full path of @filename or %NULL if no path was
+found.
+
+Since: 0.8
+</return>
+</function>
+
 <function name="clutter_actor_get_anchor_pointu">
 <description>
 Gets the current anchor point of the @actor in #ClutterUnit&lt;!-- --&gt;s.
@@ -1890,17 +1954,16 @@ Since: 1.0
 </return>
 </function>
 
-<function name="ClutterAnimation">
+<function name="clutter_score_pause">
 <description>
-The ::started signal is emitted once the animation has been
-started
+Pauses a playing score @score.
 
-Since: 1.0
+Since: 0.6
 
 </description>
 <parameters>
-<parameter name="animation">
-<parameter_description> the animation that emitted the signal
+<parameter name="score">
+<parameter_description> a #ClutterScore
 </parameter_description>
 </parameter>
 </parameters>
@@ -2138,26 +2201,30 @@ Since: 0.6
 <return></return>
 </function>
 
-<function name="clutter_x11_set_stage_foreign">
+<function name="clutter_texture_set_load_async">
 <description>
-Target the #ClutterStage to use an existing external X Window
+Sets whether @texture should use a worker thread to load the data
+from disk asynchronously. Setting @load_async to %TRUE will make
+clutter_texture_set_from_file() return immediately.
+
+See the #ClutterTexture:load-async property documentation, and
+clutter_texture_set_load_data_async().
 
+Since: 1.0
 
 </description>
 <parameters>
-<parameter name="stage">
-<parameter_description> a #ClutterStage
+<parameter name="texture">
+<parameter_description> a #ClutterTexture
 </parameter_description>
 </parameter>
-<parameter name="xwindow">
-<parameter_description> an existing X Window id
+<parameter name="load_sync">
+<parameter_description> %TRUE if the texture should asynchronously load data
+from a filename
 </parameter_description>
 </parameter>
 </parameters>
-<return> %TRUE if foreign window is valid
-
-Since: 0.4
-</return>
+<return></return>
 </function>
 
 <function name="clutter_get_default_backend">
@@ -2201,20 +2268,16 @@ Since: 0.6
 </return>
 </function>
 
-<function name="clutter_score_pause">
+<function name="json_array_new">
 <description>
-Pauses a playing score @score.
+Creates a new #JsonArray.
 
-Since: 0.6
 
 </description>
 <parameters>
-<parameter name="score">
-<parameter_description> a #ClutterScore
-</parameter_description>
-</parameter>
 </parameters>
-<return></return>
+<return> the newly created #JsonArray
+</return>
 </function>
 
 <function name="clutter_actor_set_position">
@@ -2333,6 +2396,28 @@ Since: 1.0
 </return>
 </function>
 
+<function name="clutter_texture_set_sync_size">
+<description>
+Sets whether @texture should have the same preferred size as the
+underlying image data.
+
+Since: 1.0
+
+</description>
+<parameters>
+<parameter name="texture">
+<parameter_description> a #ClutterTexture
+</parameter_description>
+</parameter>
+<parameter name="sync_size">
+<parameter_description> %TRUE if the texture should have the same size of the
+underlying image data
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
 <function name="clutter_stage_set_fog">
 <description>
 Sets the fog (also known as &quot;depth cueing&quot;) settings for the @stage.
@@ -5358,6 +5443,25 @@ Since: 0.6
 <return></return>
 </function>
 
+<function name="clutter_texture_get_sync_size">
+<description>
+Retrieves the value set with clutter_texture_get_sync_size()
+
+
+</description>
+<parameters>
+<parameter name="texture">
+<parameter_description> a #ClutterTexture
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if the #ClutterTexture should have the same
+preferred size of the underlying image data
+
+Since: 1.0
+</return>
+</function>
+
 <function name="clutter_value_get_shader_matrix">
 <description>
 Retrieves a matrix of floating point values stored inside
@@ -6020,6 +6124,33 @@ Since: 1.0
 </return>
 </function>
 
+<function name="clutter_texture_set_load_data_async">
+<description>
+Sets whether @texture should use a worker thread to load the data
+from disk asynchronously. Setting @load_async to %TRUE will make
+clutter_texture_set_from_file() block until the #ClutterTexture has
+determined the width and height of the image data.
+
+See the #ClutterTexture:load-async property documentation, and
+clutter_texture_set_load_async().
+
+Since: 1.0
+
+</description>
+<parameters>
+<parameter name="texture">
+<parameter_description> a #ClutterTexture
+</parameter_description>
+</parameter>
+<parameter name="load_async">
+<parameter_description> %TRUE if the texture should asynchronously load data
+from a filename
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
 <function name="clutter_win32_get_stage_window">
 <description>
 Gets the stage's window handle
@@ -6588,26 +6719,6 @@ Since: 1.0
 </return>
 </function>
 
-<function name="clutter_animation_set_duration">
-<description>
-Sets the duration of @animation in milliseconds.
-
-Since: 1.0
-
-</description>
-<parameters>
-<parameter name="animation">
-<parameter_description> a #ClutterAnimation
-</parameter_description>
-</parameter>
-<parameter name="msecs">
-<parameter_description> the duration in milliseconds
-</parameter_description>
-</parameter>
-</parameters>
-<return></return>
-</function>
-
 <function name="clutter_media_get_progress">
 <description>
 Retrieves the playback progress of @media.
@@ -6914,15 +7025,18 @@ Since: 0.4
 <return></return>
 </function>
 
-<function name="json_array_new">
+<function name="json_parser_new">
 <description>
-Creates a new #JsonArray.
+Creates a new #JsonParser instance. You can use the #JsonParser to
+load a JSON stream from either a file or a buffer and then walk the
+hierarchy using the data types API.
 
 
 </description>
 <parameters>
 </parameters>
-<return> the newly created #JsonArray
+<return> the newly created #JsonParser. Use g_object_unref()
+to release all the memory it allocates.
 </return>
 </function>
 
@@ -7881,6 +7995,25 @@ Since: 0.8
 </return>
 </function>
 
+<function name="clutter_texture_get_keep_aspect_ratio">
+<description>
+Retrieves the value set using clutter_texture_get_keep_aspect_ratio()
+
+
+</description>
+<parameters>
+<parameter name="texture">
+<parameter_description> a #ClutterTexture
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if the #ClutterTexture should maintain the
+aspect ratio of the underlying image
+
+Since: 1.0
+</return>
+</function>
+
 <function name="clutter_alpha_set_func">
 <description>
 Sets the #ClutterAlphaFunc function used to compute
@@ -8905,21 +9038,6 @@ Since: 1.0
 </return>
 </function>
 
-<function name="json_parser_new">
-<description>
-Creates a new #JsonParser instance. You can use the #JsonParser to
-load a JSON stream from either a file or a buffer and then walk the
-hierarchy using the data types API.
-
-
-</description>
-<parameters>
-</parameters>
-<return> the newly created #JsonParser. Use g_object_unref()
-to release all the memory it allocates.
-</return>
-</function>
-
 <function name="json_node_set_int">
 <description>
 Sets @value as the integer content of the @node, replacing any existing
@@ -9224,21 +9342,20 @@ Since: 1.0
 
 <function name="clutter_texture_get_base_size">
 <description>
-Gets the size in pixels of the untransformed underlying texture pixbuf data.
-
+Gets the size in pixels of the untransformed underlying image
 
 </description>
 <parameters>
 <parameter name="texture">
-<parameter_description> A #ClutterTexture
+<parameter_description> a #ClutterTexture
 </parameter_description>
 </parameter>
 <parameter name="width">
-<parameter_description>   Pointer to gint to be populated with width value if non NULL.
+<parameter_description> (out): return location for the width, or %NULL
 </parameter_description>
 </parameter>
 <parameter name="height">
-<parameter_description>  Pointer to gint to be populated with height value if non NULL.
+<parameter_description> (out): return location for the height, or %NULL
 </parameter_description>
 </parameter>
 </parameters>
@@ -9307,27 +9424,22 @@ Appends @node inside @array. The array will take ownership of the
 <return></return>
 </function>
 
-<function name="clutter_script_lookup_filename">
+<function name="clutter_model_iter_is_last">
 <description>
-Looks up @filename inside the search paths of @script. If @filename
-is found, its full path will be returned .
+Gets whether the iterator is at the end of the model to which it
+belongs.
 
 
 </description>
 <parameters>
-<parameter name="script">
-<parameter_description> a #ClutterScript
-</parameter_description>
-</parameter>
-<parameter name="filename">
-<parameter_description> the name of the file to lookup
+<parameter name="iter">
+<parameter_description> a #ClutterModelIter
 </parameter_description>
 </parameter>
 </parameters>
-<return> the full path of @filename or %NULL if no path was
-found.
+<return> #TRUE if @iter is the last iter in the filtered model.
 
-Since: 0.8
+Since: 0.6
 </return>
 </function>
 
@@ -11131,6 +11243,32 @@ Since: 1.0
 <return></return>
 </function>
 
+<function name="clutter_texture_get_pixel_format">
+<description>
+Retrieves the pixel format used by @texture. This is
+equivalent to:
+
+|[
+handle = clutter_texture_get_pixel_format (texture);
+
+if (handle != COGL_INVALID_HANDLE)
+format = cogl_texture_get_format (handle);
+]|
+
+
+</description>
+<parameters>
+<parameter name="texture">
+<parameter_description> a #ClutterTexture
+</parameter_description>
+</parameter>
+</parameters>
+<return> a #CoglPixelFormat value
+
+Since: 1.0
+</return>
+</function>
+
 <function name="clutter_list_model_newv">
 <description>
 Non-vararg version of clutter_list_model_new(). This function is
@@ -14045,6 +14183,9 @@ automatically by modification functions.
 This function will not do anything if @self is not visible, or
 if the actor is inside an invisible part of the scenegraph.
 
+Also be aware that painting is a NOP for actors with an opacity of
+0
+
 </description>
 <parameters>
 <parameter name="self">
@@ -15156,25 +15297,20 @@ Since: 0.8
 </return>
 </function>
 
-<function name="clutter_model_iter_set_value">
+<function name="clutter_animation_set_duration">
 <description>
-Sets the data in the cell specified by @iter and @column. The type of
- value must be convertable to the type of the column.
+Sets the duration of @animation in milliseconds.
 
-Since: 0.6
+Since: 1.0
 
 </description>
 <parameters>
-<parameter name="iter">
-<parameter_description> a #ClutterModelIter
-</parameter_description>
-</parameter>
-<parameter name="column">
-<parameter_description> column number to retrieve the value from
+<parameter name="animation">
+<parameter_description> a #ClutterAnimation
 </parameter_description>
 </parameter>
-<parameter name="value">
-<parameter_description> new value for the cell
+<parameter name="msecs">
+<parameter_description> the duration in milliseconds
 </parameter_description>
 </parameter>
 </parameters>
@@ -15408,6 +15544,53 @@ Return value: Number of microseconds since clutter_init() was called.
 </return>
 </function>
 
+<function name="clutter_model_iter_set_value">
+<description>
+Sets the data in the cell specified by @iter and @column. The type of
+ value must be convertable to the type of the column.
+
+Since: 0.6
+
+</description>
+<parameters>
+<parameter name="iter">
+<parameter_description> a #ClutterModelIter
+</parameter_description>
+</parameter>
+<parameter name="column">
+<parameter_description> column number to retrieve the value from
+</parameter_description>
+</parameter>
+<parameter name="value">
+<parameter_description> new value for the cell
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="clutter_x11_set_stage_foreign">
+<description>
+Target the #ClutterStage to use an existing external X Window
+
+
+</description>
+<parameters>
+<parameter name="stage">
+<parameter_description> a #ClutterStage
+</parameter_description>
+</parameter>
+<parameter name="xwindow">
+<parameter_description> an existing X Window id
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if foreign window is valid
+
+Since: 0.4
+</return>
+</function>
+
 <function name="clutter_actor_get_allocation_coords">
 <description>
 Gets the layout box an actor has been assigned.  The allocation can
@@ -15665,6 +15848,25 @@ Sets whether @timeline should loop.
 <return></return>
 </function>
 
+<function name="clutter_texture_get_load_data_async">
+<description>
+Retrieves the value set by clutter_texture_set_load_data_async()
+
+
+</description>
+<parameters>
+<parameter name="texture">
+<parameter_description> a #ClutterTexture
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if the #ClutterTexture should load the image
+data from a file asynchronously
+
+Since: 1.0
+</return>
+</function>
+
 <function name="clutter_get_option_group_without_init">
 <description>
 Return value: (transfer full): a #GOptionGroup for the commandline arguments
@@ -16745,6 +16947,31 @@ Since: 0.4
 <return></return>
 </function>
 
+<function name="clutter_texture_set_repeat">
+<description>
+Sets whether the @texture should repeat horizontally or
+vertically when the actor size is bigger than the image size
+
+Since: 1.0
+
+</description>
+<parameters>
+<parameter name="texture">
+<parameter_description> a #ClutterTexture
+</parameter_description>
+</parameter>
+<parameter name="repeat_x">
+<parameter_description> %TRUE if the texture should repeat horizontally
+</parameter_description>
+</parameter>
+<parameter name="repeat_y">
+<parameter_description> %TRUE if the texture should repeat vertically
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
 <function name="clutter_stage_ensure_viewport">
 <description>
 Ensures that the GL viewport is updated with the current
@@ -17327,23 +17554,21 @@ Retrieves the #JsonArray stored inside a #JsonNode
 </return>
 </function>
 
-<function name="clutter_model_iter_is_last">
+<function name="ClutterAnimation">
 <description>
-Gets whether the iterator is at the end of the model to which it
-belongs.
+The ::started signal is emitted once the animation has been
+started
 
+Since: 1.0
 
 </description>
 <parameters>
-<parameter name="iter">
-<parameter_description> a #ClutterModelIter
+<parameter name="animation">
+<parameter_description> the animation that emitted the signal
 </parameter_description>
 </parameter>
 </parameters>
-<return> #TRUE if @iter is the last iter in the filtered model.
-
-Since: 0.6
-</return>
+<return></return>
 </function>
 
 <function name="ClutterAniamtion">
@@ -17604,6 +17829,31 @@ content.
 <return></return>
 </function>
 
+<function name="clutter_texture_get_repeat">
+<description>
+Retrieves the horizontal and vertical repeat values set
+using clutter_texture_set_repeat()
+
+Since: 1.0
+
+</description>
+<parameters>
+<parameter name="texture">
+<parameter_description> a #ClutterTexture
+</parameter_description>
+</parameter>
+<parameter name="repeat_x">
+<parameter_description> (out): return location for the horizontal repeat
+</parameter_description>
+</parameter>
+<parameter name="repeat_y">
+<parameter_description> (out): return location for the vertical repeat
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
 <function name="clutter_main">
 <description>
 Starts the Clutter mainloop.
diff --git a/clutter/src/clutter_enums.defs b/clutter/src/clutter_enums.defs
index 5b07aae..873dc86 100644
--- a/clutter/src/clutter_enums.defs
+++ b/clutter/src/clutter_enums.defs
@@ -175,6 +175,7 @@
   (in-module "Clutter")
   (c-name "ClutterTextureFlags")
   (values
+    '("none" "CLUTTER_TEXTURE_NONE" "0")
     '("rgb-flag-bgr" "CLUTTER_TEXTURE_RGB_FLAG_BGR" "1 << 1")
     '("rgb-flag-premult" "CLUTTER_TEXTURE_RGB_FLAG_PREMULT" "1 << 2")
     '("yuv-flag-yuv2" "CLUTTER_TEXTURE_YUV_FLAG_YUV2" "1 << 3")
diff --git a/clutter/src/clutter_methods.defs b/clutter/src/clutter_methods.defs
index 73bae97..a77aa27 100644
--- a/clutter/src/clutter_methods.defs
+++ b/clutter/src/clutter_methods.defs
@@ -396,6 +396,7 @@
   (c-name "ClutterTextureFlags")
   (gtype-id "CLUTTER_TYPE_TEXTURE_FLAGS")
   (values
+    '("none" "CLUTTER_TEXTURE_NONE")
     '("rgb-flag-bgr" "CLUTTER_TEXTURE_RGB_FLAG_BGR")
     '("rgb-flag-premult" "CLUTTER_TEXTURE_RGB_FLAG_PREMULT")
     '("yuv-flag-yuv2" "CLUTTER_TEXTURE_YUV_FLAG_YUV2")
@@ -6374,6 +6375,92 @@
   )
 )
 
+(define-method set_sync_size
+  (of-object "ClutterTexture")
+  (c-name "clutter_texture_set_sync_size")
+  (return-type "none")
+  (parameters
+    '("gboolean" "sync_size")
+  )
+)
+
+(define-method get_sync_size
+  (of-object "ClutterTexture")
+  (c-name "clutter_texture_get_sync_size")
+  (return-type "gboolean")
+)
+
+(define-method set_repeat
+  (of-object "ClutterTexture")
+  (c-name "clutter_texture_set_repeat")
+  (return-type "none")
+  (parameters
+    '("gboolean" "repeat_x")
+    '("gboolean" "repeat_y")
+  )
+)
+
+(define-method get_repeat
+  (of-object "ClutterTexture")
+  (c-name "clutter_texture_get_repeat")
+  (return-type "none")
+  (parameters
+    '("gboolean*" "repeat_x")
+    '("gboolean*" "repeat_y")
+  )
+)
+
+(define-method get_pixel_format
+  (of-object "ClutterTexture")
+  (c-name "clutter_texture_get_pixel_format")
+  (return-type "CoglPixelFormat")
+)
+
+(define-method set_keep_aspect_ratio
+  (of-object "ClutterTexture")
+  (c-name "clutter_texture_set_keep_aspect_ratio")
+  (return-type "none")
+  (parameters
+    '("gboolean" "keep_aspect")
+  )
+)
+
+(define-method get_keep_aspect_ratio
+  (of-object "ClutterTexture")
+  (c-name "clutter_texture_get_keep_aspect_ratio")
+  (return-type "gboolean")
+)
+
+(define-method set_load_async
+  (of-object "ClutterTexture")
+  (c-name "clutter_texture_set_load_async")
+  (return-type "none")
+  (parameters
+    '("gboolean" "load_async")
+  )
+)
+
+(define-method get_load_async
+  (of-object "ClutterTexture")
+  (c-name "clutter_texture_get_load_async")
+  (return-type "gboolean")
+)
+
+(define-method set_load_data_async
+  (of-object "ClutterTexture")
+  (c-name "clutter_texture_set_load_data_async")
+  (return-type "none")
+  (parameters
+    '("gboolean" "load_async")
+  )
+)
+
+(define-method get_load_data_async
+  (of-object "ClutterTexture")
+  (c-name "clutter_texture_get_load_data_async")
+  (return-type "gboolean")
+)
+
 
 
 ;; From clutter-timeline.h
diff --git a/clutter/src/clutter_signals.defs b/clutter/src/clutter_signals.defs
index e754398..fc1a75d 100644
--- a/clutter/src/clutter_signals.defs
+++ b/clutter/src/clutter_signals.defs
@@ -1373,7 +1373,7 @@
 
 (define-property pixel-format
   (of-object "ClutterCairoTexture")
-  (prop-type "GParamInt")
+  (prop-type "GParamEnum")
   (docs "CoglPixelFormat to use.")
   (readable #t)
   (writable #f)
@@ -2321,10 +2321,10 @@
   )
 )
 
-(define-property progress
+(define-property playing
   (of-object "ClutterMedia")
-  (prop-type "GParamDouble")
-  (docs "Current progress of the playback")
+  (prop-type "GParamBoolean")
+  (docs "Wheter the actor is playing")
   (readable #t)
   (writable #t)
   (construct-only #f)
@@ -2339,19 +2339,28 @@
   (construct-only #f)
 )
 
-(define-property playing
+(define-property can-seek
   (of-object "ClutterMedia")
   (prop-type "GParamBoolean")
-  (docs "Wheter the actor is playing")
+  (docs "Whether the current stream is seekable")
+  (readable #t)
+  (writable #f)
+  (construct-only #f)
+)
+
+(define-property progress
+  (of-object "ClutterMedia")
+  (prop-type "GParamDouble")
+  (docs "Current progress of the playback")
   (readable #t)
   (writable #t)
   (construct-only #f)
 )
 
-(define-property buffer-fill
+(define-property duration
   (of-object "ClutterMedia")
   (prop-type "GParamDouble")
-  (docs "The fill level of the buffer")
+  (docs "The duration of the stream, in seconds")
   (readable #t)
   (writable #f)
   (construct-only #f)
@@ -2366,19 +2375,10 @@
   (construct-only #f)
 )
 
-(define-property duration
+(define-property buffer-fill
   (of-object "ClutterMedia")
   (prop-type "GParamDouble")
-  (docs "The duration of the stream, in seconds")
-  (readable #t)
-  (writable #f)
-  (construct-only #f)
-)
-
-(define-property can-seek
-  (of-object "ClutterMedia")
-  (prop-type "GParamBoolean")
-  (docs "Whether the current stream is seekable")
+  (docs "The fill level of the buffer")
   (readable #t)
   (writable #f)
   (construct-only #f)
@@ -4379,7 +4379,7 @@
 
 (define-property pixel-format
   (of-object "ClutterTexture")
-  (prop-type "GParamInt")
+  (prop-type "GParamEnum")
   (docs "CoglPixelFormat to use.")
   (readable #t)
   (writable #f)
diff --git a/clutter/src/texture.hg b/clutter/src/texture.hg
index d1bacb7..e4c8664 100644
--- a/clutter/src/texture.hg
+++ b/clutter/src/texture.hg
@@ -62,8 +62,11 @@ public:
   _WRAP_METHOD(bool set_area_from_rgb_data(const guchar* data, bool has_alpha, int x, int y, int width, int height, int rowstride, int bpp, TextureFlags flags), clutter_texture_set_area_from_rgb_data, errthrow)
   _WRAP_METHOD(void get_base_size(int& width, int& height) const, clutter_texture_get_base_size)
 
+  _WRAP_METHOD(CoglPixelFormat get_pixel_format() const, clutter_texture_get_pixel_format)
+
   _WRAP_METHOD(TextureQuality get_filter_quality() const, clutter_texture_get_filter_quality)
   _WRAP_METHOD(void set_filter_quality(TextureQuality filter_quality), clutter_texture_set_filter_quality)
+
   _WRAP_METHOD(int get_amx_tile_waste() const, clutter_texture_get_max_tile_waste)
   _WRAP_METHOD(void set_max_tile_waste(int max_tile_waste), clutter_texture_set_max_tile_waste)
 
@@ -73,6 +76,22 @@ public:
   _WRAP_METHOD(CoglHandle get_cogl_material() const, clutter_texture_get_cogl_material)
   _WRAP_METHOD(void set_cogl_material(CoglHandle handle), clutter_texture_set_cogl_material)
 
+  _WRAP_METHOD(bool get_sync_size() const, clutter_texture_get_sync_size)
+  _WRAP_METHOD(void set_sync_size(bool sync_size=true), clutter_texture_set_sync_size)
+
+#m4 _CONVERSION(`bool&',`gboolean*',`reinterpret_cast<gboolean*>(&$3)')
+  _WRAP_METHOD(void get_repeat(bool& repeat_x, bool& repeat_y) const, clutter_texture_get_repeat)
+  _WRAP_METHOD(void set_repeat(bool repeat_x=true, bool repeat_y=true), clutter_texture_set_repeat)
+
+  _WRAP_METHOD(bool get_keep_aspect_ratio() const, clutter_texture_get_keep_aspect_ratio)
+  _WRAP_METHOD(void set_keep_aspect_ratio(bool keep_aspect=true), clutter_texture_set_keep_aspect_ratio)
+
+  _WRAP_METHOD(bool get_load_async() const, clutter_texture_get_load_async)
+  _WRAP_METHOD(void set_load_async(bool load_async=true), clutter_texture_set_load_async)
+
+  _WRAP_METHOD(bool get_load_data_async() const, clutter_texture_get_load_data_async)
+  _WRAP_METHOD(void set_load_data_async(bool load_async=true), clutter_texture_set_load_data_async)
+
   // TODO: figure out what to do with this GError parameter
   //_WRAP_SIGNAL(void load_finished(GError* error), "load_finished")
   _WRAP_SIGNAL(void size_change(int width, int height), "size_change")
@@ -83,6 +102,9 @@ public:
   _WRAP_PROPERTY("disable-slicing", bool)
   _WRAP_PROPERTY("filename", std::string)
   _WRAP_PROPERTY("filter-quality", TextureQuality)
+  _WRAP_PROPERTY("keep-aspect-ratio", bool)
+  _WRAP_PROPERTY("load-async", bool)
+  _WRAP_PROPERTY("load-data-async", bool)
   _WRAP_PROPERTY("pixel-format", int)
   _WRAP_PROPERTY("repeat-x", bool)
   _WRAP_PROPERTY("repeat-y", bool)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]