- 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.