Rechercher une page de manuel
Clutter::Texture.3pm
Langue: en
Version: 2008-07-23 (debian - 07/07/09)
Section: 3 (Bibliothèques de fonctions)
NAME
Clutter::TextureHIERARCHY
Glib::Object +----Glib::InitiallyUnowned +----Clutter::Actor +----Clutter::Texture
INTERFACES
Glib::Object::_Unregistered::ClutterScriptable
METHODS
actor = Clutter::Texture->new ($filename=undef)
-
- •
- $filename (string or undef)
actor = $class->new_from_actor ($actor)
actor = $class->new_from_actor ($actor)
-
- •
- $actor (Clutter::Actor)
boolean = $texture->set_area_from_rgb_data ($data, $has_alpha, $x, $y, $width, $height, $rowstride, $bpp, $flags)
boolean = $texture->set_area_from_rgb_data ($data, $has_alpha, $x, $y, $width, $height, $rowstride, $bpp, $flags)
-
- •
- $data (scalar)
- •
- $has_alpha (boolean)
- •
- $x (integer)
- •
- $y (integer)
- •
- $width (integer)
- •
- $height (integer)
- •
- $rowstride (integer)
- •
- $bpp (integer)
- •
- $flags (Clutter::TextureFlags)
May croak with a Glib::Error in $@ on failure.
(width, height) = $texture->get_base_size
(width, height) = $texture->get_base_size
handle = $texture->get_cogl_texture
handle = $texture->get_cogl_texture
$texture->set_cogl_texture ($tex)
$texture->set_cogl_texture ($tex)
-
- •
- $tex (handle)
texturequality = $texture->get_filter_quality
texturequality = $texture->get_filter_quality
$texture->set_filter_quality ($filter_quality)
$texture->set_filter_quality ($filter_quality)
-
- •
- $filter_quality (Clutter::TextureQuality)
boolean = $texture->set_from_file ($filename)
boolean = $texture->set_from_file ($filename)
-
- •
- $filename (string)
May croak with a Glib::Error in $@ on failure.
boolean = $texture->set_from_rgb_data ($data, $has_alpha, $width, $height, $rowstride, $bpp, $flags)
boolean = $texture->set_from_rgb_data ($data, $has_alpha, $width, $height, $rowstride, $bpp, $flags)
-
- •
- $data (scalar)
- •
- $has_alpha (boolean)
- •
- $width (integer)
- •
- $height (integer)
- •
- $rowstride (integer)
- •
- $bpp (integer)
- •
- $flags (Clutter::TextureFlags)
May croak with a Glib::Error in $@ on failure.
boolean = $texture->set_from_yuv_data ($data, $width, $height, $flags)
boolean = $texture->set_from_yuv_data ($data, $width, $height, $flags)
-
- •
- $data (scalar)
- •
- $width (integer)
- •
- $height (integer)
- •
- $flags (Clutter::TextureFlags)
May croak with a Glib::Error in $@ on failure.
integer = $texture->get_max_tile_waste
integer = $texture->get_max_tile_waste
$texture->set_max_tile_waste ($max_tile_waste)
$texture->set_max_tile_waste ($max_tile_waste)
-
- •
- $max_tile_waste (integer)
PROPERTIES
- 'cogl-texture' (ClutterTextureHandle : readable / writable)
- The underlying COGL texture handle used to draw this actor
- 'disable-slicing' (boolean : readable / writable / construct-only / private)
- Force the underlying texture to be singlularand not made of of smaller space saving inidivual textures.
- 'filename' (string : writable)
- The full path of the file containing the texture
- 'filter-quality' (Clutter::TextureQuality : readable / writable / construct / private)
- Rendering quality used when drawing the texture.
- 'keep-aspect-ratio' (boolean : readable / writable / private)
- Keep the aspect ratio of the texture when requesting the preferred width or height
- 'pixel-format' (integer : readable)
- CoglPixelFormat to use.
- 'repeat-x' (boolean : readable / writable / private)
- Repeat underlying pixbuf rather than scale in x direction.
- 'repeat-y' (boolean : readable / writable / private)
- Repeat underlying pixbuf rather than scale in y direction.
- 'sync-size' (boolean : readable / writable / private)
- Auto sync size of actor to underlying pixbuf dimensions
- 'tile-waste' (integer : readable / writable / construct-only / private)
- Max wastage dimension of a texture when using sliced textures or -1 to disable slicing. Bigger values use less textures, smaller values less texture memory.
SIGNALS
- size-change (Clutter::Texture, integer, integer)
- pixbuf-change (Clutter::Texture)
ENUMS AND FLAGS
flags Clutter::TextureFlags
- •
- 'rgb-flag-bgr' / 'CLUTTER_TEXTURE_RGB_FLAG_BGR'
- •
- 'rgb-flag-premult' / 'CLUTTER_TEXTURE_RGB_FLAG_PREMULT'
- •
- 'yuv-flag-yuv2' / 'CLUTTER_TEXTURE_YUV_FLAG_YUV2'
enum Clutter::TextureQuality
- •
- 'low' / 'CLUTTER_TEXTURE_QUALITY_LOW'
- •
- 'medium' / 'CLUTTER_TEXTURE_QUALITY_MEDIUM'
- •
- 'high' / 'CLUTTER_TEXTURE_QUALITY_HIGH'
SEE ALSO
Clutter, Glib::Object, Glib::InitiallyUnowned, Clutter::ActorCOPYRIGHT
Copyright (C) 2006 OpenedHand Ltd.This module is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public Library version 2.1, or under the terms of the Artistic License. See Clutter for the full copyright notice.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre