From c019ff241d472edba3d54f8e698ea1f80c26a651 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 1 Jul 2010 16:05:41 +0100 Subject: [PATCH] cookbook: Fix up the textures section --- doc/cookbook/textures.xml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/cookbook/textures.xml b/doc/cookbook/textures.xml index e82bc80bc..57ed0a0d3 100644 --- a/doc/cookbook/textures.xml +++ b/doc/cookbook/textures.xml @@ -258,16 +258,16 @@ clutter_texture_get_base_size (CLUTTER_TEXTURE (texture), &width, &height); - Note that if you explicitly set the size (both width and height) + If you explicitly set the size (both width and height) of a texture with clutter_actor_set_size() (or with clutter_actor_set_width() and clutter_actor_set_height()), any image loaded into the texture is automatically stretched/shrunk to fit the texture. This is the case regardless of any other settings - (like whether to keep aspect ratio). + (like whether to keep aspect ratio). + + Since a texture can scale down its contents, its minimum + preferred size is 0. - Also note that a texture won't try to fit itself inside the bounds of - its parent container: so if it's bigger than its container, only part - of it may be visible. @@ -469,9 +469,9 @@ main (int argc, char *argv[]) and gtk_clutter_texture_set_from_pixbuf() respectively. - If you have raw RGB or YUV pixel data, ClutterTexture has - clutter_texture_set_from_rgb_data() and - clutter_texture_set_from_yuv_data() methods for loading it. + If you have raw RGB pixel data, ClutterTexture also has + the clutter_texture_set_from_rgb_data() method for loading + it.