Clutter::Texture(3pm)

NAME

Clutter::Texture - An actor for displaying and manipulating images

HIERARCHY

Glib::Object
+----Glib::InitiallyUnowned
+----Clutter::Actor
+----Clutter::Texture

INTERFACES

Glib::Object::_Unregistered::ClutterScriptable

METHODS

actor = Clutter::Texture->new ($filename=undef)
o $filename (string or undef)
actor = $class->new_from_actor ($actor)
o $actor (Clutter::Actor)
boolean = $texture->set_area_from_rgb_data ($data, $has_alpha, $x, $y,
$width, $height, $rowstride, $bpp, $flags) o $data (scalar)
o $has_alpha (boolean)
o $x (integer)
o $y (integer)
o $width (integer)
o $height (integer)
o $rowstride (integer)
o $bpp (integer)
o $flags (Clutter::TextureFlags)
May croak with a Glib::Error in $@ on failure.
(width, height) = $texture->get_base_size handle = $texture->get_cogl_texture $texture->set_cogl_texture ($tex)
o $tex (handle)
texturequality = $texture->get_filter_quality $texture->set_filter_quality ($filter_quality)
o $filter_quality (Clutter::TextureQuality)
boolean = $texture->set_from_file ($filename)
o $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) o $data (scalar)
o $has_alpha (boolean)
o $width (integer)
o $height (integer)
o $rowstride (integer)
o $bpp (integer)
o $flags (Clutter::TextureFlags)
May croak with a Glib::Error in $@ on failure.
boolean = $texture->set_from_yuv_data ($data, $width, $height, $flags)
o $data (scalar)
o $width (integer)
o $height (integer)
o $flags (Clutter::TextureFlags)
May croak with a Glib::Error in $@ on failure.
integer = $texture->get_max_tile_waste

PROPERTIES

'cogl-material' (handle : readable / writable)
The underlying COGL material handle used to draw this actor
'cogl-texture' (handle : 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
'load-async' (boolean : writable / private)
Load files inside a thread to avoid blocking when loading images.
'load-data-async' (boolean : writable / private)
Decode image data files inside a thread to reduce blocking when
loading images.
'pixel-format' (Clutter::Cogl::PixelFormat : readable / private)
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 / private)
Maximum waste area of a sliced texture

SIGNALS

size-change (Clutter::Texture, integer, integer) pixbuf-change (Clutter::Texture)
load-finished (Clutter::Texture, gpointer)

ENUMS AND FLAGS

enum Clutter::Cogl::PixelFormat
o 'any' / 'COGL_PIXEL_FORMAT_ANY'
o 'a-8' / 'COGL_PIXEL_FORMAT_A_8'
o 'rgb-565' / 'COGL_PIXEL_FORMAT_RGB_565'
o 'rgba-4444' / 'COGL_PIXEL_FORMAT_RGBA_4444'
o 'rgba-5551' / 'COGL_PIXEL_FORMAT_RGBA_5551'
o 'yuv' / 'COGL_PIXEL_FORMAT_YUV'
o 'g-8' / 'COGL_PIXEL_FORMAT_G_8'
o 'rgb-888' / 'COGL_PIXEL_FORMAT_RGB_888'
o 'bgr-888' / 'COGL_PIXEL_FORMAT_BGR_888'
o 'rgba-8888' / 'COGL_PIXEL_FORMAT_RGBA_8888'
o 'bgra-8888' / 'COGL_PIXEL_FORMAT_BGRA_8888'
o 'argb-8888' / 'COGL_PIXEL_FORMAT_ARGB_8888'
o 'abgr-8888' / 'COGL_PIXEL_FORMAT_ABGR_8888'
o 'rgba-8888-pre' / 'COGL_PIXEL_FORMAT_RGBA_8888_PRE'
o 'bgra-8888-pre' / 'COGL_PIXEL_FORMAT_BGRA_8888_PRE'
o 'argb-8888-pre' / 'COGL_PIXEL_FORMAT_ARGB_8888_PRE'
o 'abgr-8888-pre' / 'COGL_PIXEL_FORMAT_ABGR_8888_PRE'
o 'rgba-4444-pre' / 'COGL_PIXEL_FORMAT_RGBA_4444_PRE'
o 'rgba-5551-pre' / 'COGL_PIXEL_FORMAT_RGBA_5551_PRE'
flags Clutter::TextureFlags
o 'none' / 'CLUTTER_TEXTURE_NONE'
o 'rgb-flag-bgr' / 'CLUTTER_TEXTURE_RGB_FLAG_BGR'
o 'rgb-flag-premult' / 'CLUTTER_TEXTURE_RGB_FLAG_PREMULT'
o 'yuv-flag-yuv2' / 'CLUTTER_TEXTURE_YUV_FLAG_YUV2'
enum Clutter::TextureQuality
o 'low' / 'CLUTTER_TEXTURE_QUALITY_LOW'
o 'medium' / 'CLUTTER_TEXTURE_QUALITY_MEDIUM'
o 'high' / 'CLUTTER_TEXTURE_QUALITY_HIGH'

SEE ALSO

Clutter, Glib::Object, Glib::InitiallyUnowned, Clutter::Actor

COPYRIGHT

Copyright (C) 2006, 2007, 2008 OpenedHand Ltd

Copyright (C) 2009 Intel Corporation

This module is free software; you can redistribute it and/or modify it under the terms of either:

o the GNU Lesser General Public Library version 2.1; or

o the Artistic License, version 2.0.

See Clutter for the full copyright notice.
Copyright © 2010-2025 Platon Technologies, s.r.o.           Index | Man stránky | tLDP | Dokumenty | Utilitky | O projekte
Design by styleshout