cookbook: Fix up the textures section

This commit is contained in:
Emmanuele Bassi 2010-07-01 16:05:41 +01:00
parent da06f650df
commit c019ff241d

View File

@ -258,16 +258,16 @@ clutter_texture_get_base_size (CLUTTER_TEXTURE (texture), &width, &height);
</programlisting> </programlisting>
</informalexample> </informalexample>
<para>Note that if you explicitly set the size (both width and height) <note><para>If you explicitly set the size (both width and height)
of a texture with clutter_actor_set_size() (or of a texture with clutter_actor_set_size() (or
with clutter_actor_set_width() and clutter_actor_set_height()), any with clutter_actor_set_width() and clutter_actor_set_height()), any
image loaded into the texture is automatically stretched/shrunk to image loaded into the texture is automatically stretched/shrunk to
fit the texture. This is the case regardless of any other settings fit the texture. This is the case regardless of any other settings
(like whether to keep aspect ratio).</para> (like whether to keep aspect ratio).</para></note>
<note><para>Since a texture can scale down its contents, its minimum
preferred size is 0.</para></note>
<para>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.</para>
</section> </section>
</section> </section>
@ -469,9 +469,9 @@ main (int argc, char *argv[])
and gtk_clutter_texture_set_from_pixbuf() respectively.</para> and gtk_clutter_texture_set_from_pixbuf() respectively.</para>
</listitem> </listitem>
<listitem> <listitem>
<para>If you have raw RGB or YUV pixel data, ClutterTexture has <para>If you have raw RGB pixel data, ClutterTexture also has
clutter_texture_set_from_rgb_data() and the clutter_texture_set_from_rgb_data() method for loading
clutter_texture_set_from_yuv_data() methods for loading it.</para> it.</para>
</listitem> </listitem>
</itemizedlist> </itemizedlist>