Image
Object Hierarchy:
Description:
[
CCode ( type_id =
"mx_image_get_type ()" ) ]
public class Image :
Widget,
Implementor,
Animatable,
Container,
Scriptable,
Stylable
The contents of this structure are private and should only be accessed through the public API.
Content:
Properties:
Creation methods:
Methods:
- public void animate_scale_mode (ulong mode, uint duration, ImageScaleMode scale_mode)
Sets the value of
scale_mode to scale_mode
and animates the scale factor of the image between the previous value and the new value.
- public void clear ()
Clear the current image and set a blank, transparent image.
- public bool get_allow_upscale ()
Determines whether image up-scaling is allowed.
- public float get_image_rotation ()
Get the value of the MxImage:image-rotation property.
- public bool get_load_async ()
Determines whether asynchronous image loading is in use.
- public uint get_scale_height_threshold ()
Retrieves the height scaling threshold.
- public ImageScaleMode get_scale_mode ()
Get the current scale mode of MxImage
.
- public uint get_scale_width_threshold ()
Retrieves the width scaling threshold.
- public uint get_transition_duration ()
Get the value of the MxImage:transition-duration property.
- public void set_allow_upscale (bool allow)
Sets whether up-scaling of images is allowed.
- public bool set_from_buffer (owned uint8[] buffer, DestroyNotify? buffer_free_func) throws Error
Set the image data from unencoded image data, stored in memory.
- public bool set_from_buffer_at_size (owned uint8[] buffer, DestroyNotify? buffer_free_func, int width, int height) throws Error
Set the image data from unencoded image data, stored in memory, and
scales it while loading.
- public bool set_from_cogl_texture (Handle texture)
Sets the contents of the image from the given Cogl texture.
- public bool set_from_data (uint8[] data, PixelFormat pixel_format, int width, int height, int rowstride) throws Error
Set the image data from a buffer.
- public bool set_from_file (string filename) throws Error
Set the image data from an image file.
- public bool set_from_file_at_size (string filename, int width, int height) throws Error
Set the image data from an image file, and scale the image during
loading.
- public void set_image_rotation (float rotation)
Set the MxImage:image-rotation property.
- public void set_load_async (bool load_async)
Sets whether to load images asynchronously.
- public void set_scale_height_threshold (uint pixels)
Sets the threshold used to determine whether to scale the height of
the image.
- public void set_scale_mode (ImageScaleMode mode)
Set the scale mode on MxImage
- public void set_scale_width_threshold (uint pixels)
Sets the threshold used to determine whether to scale the width of the
image.
- public void set_transition_duration (uint duration)
Set the MxImage:transition-duration property.
Signals:
Inherited Members:
All known members inherited from class Mx.Widget
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
- animate_property
- find_property
- get_initial_state
- interpolate_value
All known members inherited from interface Clutter.Container
- @foreach
- actor_added
- actor_removed
- add
- add_actor
- add_valist
- child_get
- child_get_property
- child_notify
- child_set
- child_set_property
- class_find_child_property
- class_list_child_properties
- create_child_meta
- destroy_child_meta
- find_child_by_name
- find_child_property
- foreach_with_internals
- get_child_meta
- get_children
- list_child_properties
- lower_child
- raise_child
- remove
- remove_actor
- remove_valist
- sort_depth_order
All known members inherited from interface Clutter.Scriptable
All known members inherited from interface Mx.Stylable