Texture
Object Hierarchy:
Clutter.Texture
Clutter.Texture
Clutter.Texture
Clutter.Actor
Clutter.Actor
Clutter.Actor->Clutter.Texture
GLib.InitiallyUnowned
GLib.InitiallyUnowned
GLib.InitiallyUnowned->Clutter.Actor
GLib.Object
GLib.Object
GLib.Object->GLib.InitiallyUnowned
Atk.Implementor
Atk.Implementor
Atk.Implementor->Clutter.Texture
Atk.Implementor->Clutter.Actor
Clutter.Animatable
Clutter.Animatable
Clutter.Animatable->Clutter.Texture
Clutter.Animatable->Clutter.Actor
Clutter.Container
Clutter.Container
Clutter.Container->Clutter.Texture
Clutter.Container->Clutter.Actor
Clutter.Scriptable
Clutter.Scriptable
Clutter.Scriptable->Clutter.Texture
Clutter.Scriptable->Clutter.Actor
Description:
[
CCode ( type_id =
"clutter_texture_get_type ()" ) ]
[
Version ( since =
"0.2" ) ]
public class Texture :
Actor ,
Implementor ,
Animatable ,
Container ,
Scriptable
The Texture structure contains only private data and should be accessed using the provided API
Content:
Properties:
Creation methods:
public Texture ()
Creates a new empty Texture object.
public Texture.from_actor (Actor actor)
Creates a new Texture object with its
source a prexisting actor (and associated children).
public Texture.from_file (string filename) throws TextureError
Creates a new ClutterTexture actor to display the image contained a
file.
Methods:
public void get_base_size (out int width, out int height)
Gets the size in pixels of the untransformed underlying image
public unowned Handle get_cogl_material ()
Returns a handle to the underlying COGL material used for drawing the
actor.
public unowned Handle get_cogl_texture ()
Retrieves the handle to the underlying COGL texture used for drawing
the actor.
public TextureQuality get_filter_quality ()
Gets the filter quality used when scaling a texture.
public bool get_keep_aspect_ratio ()
public bool get_load_async ()
public bool get_load_data_async ()
public int get_max_tile_waste ()
Gets the maximum waste that will be used when creating a texture or -1
if slicing is disabled.
public bool get_pick_with_alpha ()
public PixelFormat get_pixel_format ()
Retrieves the pixel format used by this
.
public void get_repeat (out bool repeat_x, out bool repeat_y)
Retrieves the horizontal and vertical repeat values set using
set_repeat
public bool get_sync_size ()
public bool set_area_from_rgb_data (uint8 [] data, bool has_alpha, int x, int y, int width, int height, int rowstride, int bpp, TextureFlags flags) throws Error
Updates a sub-region of the pixel data in a
Texture .
public void set_cogl_material (Handle cogl_material)
Replaces the underlying Cogl material drawn by this actor with
cogl_material
.
public void set_cogl_texture (Handle cogl_tex)
Replaces the underlying COGL texture drawn by this actor with
cogl_tex
.
public void set_filter_quality (TextureQuality filter_quality)
Sets the filter quality when scaling a texture.
public bool set_from_file (string filename) throws Error
Sets the Texture image data from an image
file.
public bool set_from_rgb_data (uint8 [] data, bool has_alpha, int width, int height, int rowstride, int bpp, TextureFlags flags) throws Error
Sets Texture image data.
public bool set_from_yuv_data (uint8 [] data, int width, int height, TextureFlags flags) throws Error
Sets a Texture from YUV image data.
public void set_keep_aspect_ratio (bool keep_aspect)
Sets whether this should have a
preferred size maintaining the aspect ratio of the underlying image
public void set_load_async (bool load_async)
Sets whether this should use a
worker thread to load the data from disk asynchronously.
public void set_load_data_async (bool load_async)
Sets whether this should use a
worker thread to load the data from disk asynchronously.
public void set_pick_with_alpha (bool pick_with_alpha)
Sets whether this should have it's
shape defined by the alpha channel when picking.
public void set_repeat (bool repeat_x, bool repeat_y)
Sets whether the this should repeat
horizontally or vertically when the actor size is bigger than the image size
public void set_sync_size (bool sync_size)
Sets whether this should have the
same preferred size as the underlying image data.
Signals:
public virtual signal void load_finished (Error error)
The load_finished signal is emitted when a
texture load has completed.
public virtual signal void pixbuf_change ()
The pixbuf_change signal is emitted each
time the pixbuf used by texture
changes.
public virtual signal void size_change (int width, int height)
The size_change signal is emitted each
time the size of the pixbuf used by texture
changes.
Inherited Members:
All known members inherited from class Clutter.Actor
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref
All known members inherited from interface Atk.Implementor
All known members inherited from interface Clutter.Animatable
All known members inherited from interface Clutter.Container
All known members inherited from interface Clutter.Scriptable