137 lines
5.3 KiB
Plaintext
137 lines
5.3 KiB
Plaintext
struct @beta Efl.Ui.Image_Progress
|
|
{
|
|
[[
|
|
Structure associated with smart callback 'download,progress'.
|
|
]]
|
|
now: double; [[Current percentage]]
|
|
total: double; [[Total percentage]]
|
|
}
|
|
|
|
struct @beta Efl.Ui.Image_Error
|
|
{
|
|
[[
|
|
Structure associated with smart callback 'download,progress'.
|
|
]]
|
|
status: int; [[Error status of the download]]
|
|
open_error: bool; [[$true if the error happened when opening the file, $false otherwise]]
|
|
}
|
|
|
|
class Efl.Ui.Image extends Efl.Ui.Widget implements Efl.Input.Clickable, Efl.Ui.Draggable,
|
|
Efl.File, Efl.Gfx.Image, Efl.Gfx.Image_Load_Controller, Efl.Player, Efl.Playable, Efl.Gfx.View,
|
|
Efl.Access.Component, Efl.Access.Widget.Action, Efl.Gfx.Color,
|
|
Efl.Gfx.Image_Orientable,
|
|
Efl.Layout.Calc, Efl.Layout.Group, Efl.Layout.Signal,
|
|
Efl.Gfx.Arrangement
|
|
{
|
|
[[Efl UI image class
|
|
|
|
When loading images from a file, the @Efl.File.key property can be used to access different
|
|
streams. For example, when accessing Evas image caches.
|
|
|
|
@since 1.23
|
|
]]
|
|
event_c_prefix: efl_ui_image;
|
|
methods {
|
|
@property icon {
|
|
[[The image name, using icon standards names.
|
|
|
|
For example, freedesktop.org defines standard icon names such
|
|
as "home" and "network". There can be different icon sets to
|
|
match those icon keys. The "name" given as parameter is one of
|
|
these "keys" and will be used to look in the freedesktop.org
|
|
paths and elementary theme.
|
|
|
|
If the name is not found in any of the expected locations and is
|
|
the absolute path of an image file, this image will be used.
|
|
Lookup order used by @.icon.set can be set using "icon_theme" in config.
|
|
|
|
If the image was set using @Efl.File.file instead of
|
|
@.icon.set, then reading this property will return null.
|
|
|
|
Note: The image set by this function is changed when
|
|
@Efl.File.load is called.
|
|
|
|
Note: This function does not accept relative icon paths.
|
|
]]
|
|
set {
|
|
return: bool; [[$true on success, $false on error]]
|
|
}
|
|
get {
|
|
}
|
|
values {
|
|
name: string; [[The icon name]]
|
|
}
|
|
}
|
|
}
|
|
implements {
|
|
Efl.Object.constructor;
|
|
Efl.Object.invalidate;
|
|
Efl.File.load;
|
|
Efl.File.unload;
|
|
Efl.Gfx.Color.color { set; }
|
|
Efl.Gfx.Entity.visible { set; }
|
|
Efl.Gfx.Entity.position { set; }
|
|
Efl.Gfx.Entity.size { set; }
|
|
Efl.Gfx.View.view_size { get; }
|
|
Efl.Gfx.Image.can_upscale { get; set; }
|
|
Efl.Gfx.Image.can_downscale { get; set; }
|
|
Efl.Gfx.Image.image_size { get; }
|
|
Efl.Gfx.Image_Load_Controller.load_async_start;
|
|
Efl.Gfx.Image_Load_Controller.load_async_cancel;
|
|
Efl.Gfx.Image_Load_Controller.load_dpi { get; set; }
|
|
Efl.Gfx.Image_Load_Controller.load_size { get; set; }
|
|
Efl.Gfx.Image_Load_Controller.load_orientation { get; set; }
|
|
Efl.Gfx.Image_Load_Controller.load_scale_down { get; set; }
|
|
Efl.Gfx.Image_Load_Controller.load_skip_header { get; set; }
|
|
Efl.Gfx.Image_Load_Controller.load_region { get; set; }
|
|
Efl.Gfx.Image_Load_Controller.load_region_support { get; }
|
|
Efl.Gfx.Image.smooth_scale { get; set; }
|
|
Efl.Gfx.Image.scale_method { get; set; }
|
|
Efl.Gfx.Image_Orientable.image_orientation { get; set; }
|
|
Efl.Gfx.Image.ratio { get; }
|
|
Efl.Gfx.Image.content_region { get; }
|
|
Efl.Gfx.Image.border_insets { get; set; }
|
|
Efl.Gfx.Image.border_insets_scale { get; set; }
|
|
Efl.Gfx.Image.center_fill_mode { get; set; }
|
|
Efl.Gfx.Image.stretch_region { get; set; }
|
|
Efl.Gfx.Image.scale_hint { get; set; }
|
|
Efl.Gfx.Image.content_hint { get; set; }
|
|
Efl.Gfx.Image.image_load_error { get; }
|
|
Efl.Playable.playable { get; }
|
|
Efl.Player.playing { get; set; }
|
|
Efl.Player.paused { get; set; }
|
|
Efl.Player.playback_position { get; set; }
|
|
Efl.Player.playback_progress { get; set; }
|
|
Efl.Player.playback_speed { get; set; }
|
|
Efl.Player.autoplay { set; get; }
|
|
Efl.Player.playback_loop { set; get; }
|
|
Efl.Layout.Signal.signal_emit;
|
|
Efl.Layout.Signal.message_send;
|
|
Efl.Layout.Signal.signal_callback_add;
|
|
Efl.Layout.Signal.signal_callback_del;
|
|
Efl.Layout.Signal.signal_process;
|
|
Efl.Layout.Group.group_size_min { get; }
|
|
Efl.Layout.Group.group_size_max { get; }
|
|
Efl.Layout.Group.group_data { get; }
|
|
Efl.Layout.Group.part_exist { get; }
|
|
Efl.Layout.Calc.calc_freeze;
|
|
Efl.Layout.Calc.calc_thaw;
|
|
Efl.Layout.Calc.calc_auto_update_hints { get; set; }
|
|
Efl.Layout.Calc.calc_size_min;
|
|
Efl.Layout.Calc.calc_parts_extends;
|
|
Efl.Layout.Calc.calc_force;
|
|
Efl.Canvas.Object.clipper { set; }
|
|
Efl.Canvas.Group.group_member_add;
|
|
Efl.Ui.Draggable.drag_target { get; set; }
|
|
Efl.Ui.Property_Bind.property_bind;
|
|
Efl.Ui.Widget.theme_apply;
|
|
Efl.Ui.Widget.widget_input_event_handler;
|
|
Efl.Access.Component.extents { get; }
|
|
Efl.Access.Widget.Action.elm_actions { get; }
|
|
Efl.Gfx.Arrangement.content_align { get; set; }
|
|
}
|
|
events {
|
|
drop @beta: string; [[Called when drop from drag and drop happened]] /* FIXME - Belongs to DnD interface */
|
|
}
|
|
}
|