2019-03-08 06:55:43 -08:00
|
|
|
struct @beta Efl.Ui.Image_Progress
|
2016-02-04 12:08:14 -08:00
|
|
|
{
|
|
|
|
[[
|
|
|
|
Structure associated with smart callback 'download,progress'.
|
|
|
|
]]
|
2016-10-27 07:45:19 -07:00
|
|
|
now: double; [[Current percentage]]
|
|
|
|
total: double; [[Total percentage]]
|
2016-02-04 12:08:14 -08:00
|
|
|
}
|
|
|
|
|
2019-03-08 06:55:43 -08:00
|
|
|
struct @beta Efl.Ui.Image_Error
|
2016-02-04 12:08:14 -08:00
|
|
|
{
|
|
|
|
[[
|
|
|
|
Structure associated with smart callback 'download,progress'.
|
|
|
|
]]
|
2016-10-27 07:45:19 -07:00
|
|
|
status: int; [[Error status of the download]]
|
|
|
|
open_error: bool; [[$true if the error happened when opening the file, $false otherwise]]
|
2016-02-04 12:08:14 -08:00
|
|
|
}
|
|
|
|
|
declare first round of classes stable
this stabelizes the "stableized" column of the efl: api workboard.
fixes T8208,
fixes T8158,
fixes T8156,
fixes T8025,
fixes T8024,
fixes T7976,
fixes T7946,
fixes T7928,
fixes T7923,
fixes T7905,
fixes T7902,
fixes T7901,
fixes T7900,
fixes T7898,
fixes T7897,
fixes T7895,
fixes T7894,
fixes T7893,
fixes T7891,
fixes T7880,
fixes T7873,
fixes T7869,
fixes T7867,
fixes T7865,
fixes T7862,
fixes T7854,
fixes T7847,
fixes T7881,
fixes T7870,
fixes T9086
Differential Revision: https://phab.enlightenment.org/D10008
2019-09-09 02:23:04 -07:00
|
|
|
class Efl.Ui.Image extends Efl.Ui.Widget implements Efl.Input.Clickable, Efl.Ui.Draggable,
|
2019-09-24 06:39:21 -07:00
|
|
|
Efl.File, Efl.Gfx.Image, Efl.Gfx.Image_Load_Controller, Efl.Player, Efl.Playable, Efl.Gfx.View,
|
2018-02-14 18:14:52 -08:00
|
|
|
Efl.Access.Component, Efl.Access.Widget.Action, Efl.Gfx.Color,
|
2019-05-22 11:16:16 -07:00
|
|
|
Efl.Gfx.Image_Orientable,
|
2019-08-21 09:59:30 -07:00
|
|
|
Efl.Layout.Calc, Efl.Layout.Group, Efl.Layout.Signal,
|
|
|
|
Efl.Gfx.Arrangement
|
2014-03-23 04:05:20 -07:00
|
|
|
{
|
2019-04-02 05:57:19 -07:00
|
|
|
[[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.
|
2019-10-14 00:55:52 -07:00
|
|
|
|
|
|
|
@since 1.23
|
2019-04-02 05:57:19 -07:00
|
|
|
]]
|
2019-09-26 07:39:56 -07:00
|
|
|
event_c_prefix: efl_ui_image;
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
2016-04-27 06:35:23 -07:00
|
|
|
@property icon {
|
2019-09-13 03:25:49 -07:00
|
|
|
[[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.
|
2016-04-27 06:35:23 -07:00
|
|
|
|
2019-09-13 03:25:49 -07:00
|
|
|
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.
|
2016-04-27 06:35:23 -07:00
|
|
|
|
2019-09-13 03:25:49 -07:00
|
|
|
If the image was set using @Efl.File.file instead of
|
|
|
|
@.icon.set, then reading this property will return null.
|
2016-04-27 06:35:23 -07:00
|
|
|
|
2019-09-13 03:25:49 -07:00
|
|
|
Note: The image set by this function is changed when
|
|
|
|
@Efl.File.load is called.
|
2016-04-27 06:35:23 -07:00
|
|
|
|
2019-09-13 03:25:49 -07:00
|
|
|
Note: This function does not accept relative icon paths.
|
|
|
|
]]
|
|
|
|
set {
|
2016-11-17 03:52:44 -08:00
|
|
|
return: bool; [[$true on success, $false on error]]
|
2016-04-27 06:35:23 -07:00
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2016-05-31 08:02:26 -07:00
|
|
|
name: string; [[The icon name]]
|
2014-03-23 04:05:20 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
2016-08-10 07:23:04 -07:00
|
|
|
Efl.Object.constructor;
|
2019-07-10 17:56:20 -07:00
|
|
|
Efl.Object.invalidate;
|
2019-02-27 10:17:09 -08:00
|
|
|
Efl.File.load;
|
|
|
|
Efl.File.unload;
|
2017-12-19 23:34:01 -08:00
|
|
|
Efl.Gfx.Color.color { set; }
|
2018-04-05 01:47:26 -07:00
|
|
|
Efl.Gfx.Entity.visible { set; }
|
|
|
|
Efl.Gfx.Entity.position { set; }
|
|
|
|
Efl.Gfx.Entity.size { set; }
|
2016-12-27 10:15:41 -08:00
|
|
|
Efl.Gfx.View.view_size { get; }
|
2019-08-22 05:35:44 -07:00
|
|
|
Efl.Gfx.Image.can_upscale { get; set; }
|
|
|
|
Efl.Gfx.Image.can_downscale { get; set; }
|
2018-04-19 04:26:59 -07:00
|
|
|
Efl.Gfx.Image.image_size { get; }
|
2019-09-21 08:37:07 -07:00
|
|
|
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; }
|
2018-04-19 04:26:59 -07:00
|
|
|
Efl.Gfx.Image_Load_Controller.load_size { get; set; }
|
2019-09-21 08:37:07 -07:00
|
|
|
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; }
|
2018-04-19 04:26:59 -07:00
|
|
|
Efl.Gfx.Image.smooth_scale { get; set; }
|
2019-09-16 02:06:02 -07:00
|
|
|
Efl.Gfx.Image.scale_method { get; set; }
|
2019-07-12 01:22:16 -07:00
|
|
|
Efl.Gfx.Image_Orientable.image_orientation { get; set; }
|
2019-09-21 08:37:07 -07:00
|
|
|
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; }
|
2019-09-24 06:39:21 -07:00
|
|
|
Efl.Playable.playable { get; }
|
2019-09-24 08:18:57 -07:00
|
|
|
Efl.Player.playing { get; set; }
|
|
|
|
Efl.Player.paused { get; set; }
|
2019-09-24 12:27:24 -07:00
|
|
|
Efl.Player.playback_position { get; set; }
|
2019-12-31 06:53:10 -08:00
|
|
|
Efl.Player.playback_progress { get; set; }
|
2019-09-24 12:43:00 -07:00
|
|
|
Efl.Player.playback_speed { get; set; }
|
2020-02-10 08:05:35 -08:00
|
|
|
Efl.Player.autoplay { set; get; }
|
2020-02-10 09:11:03 -08:00
|
|
|
Efl.Player.playback_loop { set; get; }
|
2017-12-04 21:39:20 -08:00
|
|
|
Efl.Layout.Signal.signal_emit;
|
2019-09-17 05:16:14 -07:00
|
|
|
Efl.Layout.Signal.message_send;
|
|
|
|
Efl.Layout.Signal.signal_callback_add;
|
|
|
|
Efl.Layout.Signal.signal_callback_del;
|
|
|
|
Efl.Layout.Signal.signal_process;
|
2017-12-04 23:00:08 -08:00
|
|
|
Efl.Layout.Group.group_size_min { get; }
|
|
|
|
Efl.Layout.Group.group_size_max { get; }
|
2019-01-23 11:55:51 -08:00
|
|
|
Efl.Layout.Group.group_data { get; }
|
|
|
|
Efl.Layout.Group.part_exist { get; }
|
2019-01-23 12:39:43 -08:00
|
|
|
Efl.Layout.Calc.calc_freeze;
|
|
|
|
Efl.Layout.Calc.calc_thaw;
|
|
|
|
Efl.Layout.Calc.calc_auto_update_hints { get; set; }
|
2017-12-04 22:29:07 -08:00
|
|
|
Efl.Layout.Calc.calc_size_min;
|
2019-01-23 12:39:43 -08:00
|
|
|
Efl.Layout.Calc.calc_parts_extends;
|
2017-12-04 22:29:07 -08:00
|
|
|
Efl.Layout.Calc.calc_force;
|
2019-02-27 10:17:37 -08:00
|
|
|
Efl.Canvas.Object.clipper { set; }
|
2016-06-17 01:26:08 -07:00
|
|
|
Efl.Canvas.Group.group_member_add;
|
2016-12-27 10:15:41 -08:00
|
|
|
Efl.Ui.Draggable.drag_target { get; set; }
|
2019-01-31 03:59:19 -08:00
|
|
|
Efl.Ui.Property_Bind.property_bind;
|
2018-01-07 20:55:35 -08:00
|
|
|
Efl.Ui.Widget.theme_apply;
|
2019-03-04 10:37:18 -08:00
|
|
|
Efl.Ui.Widget.widget_input_event_handler;
|
2018-02-14 18:14:52 -08:00
|
|
|
Efl.Access.Component.extents { get; }
|
2017-11-15 18:31:26 -08:00
|
|
|
Efl.Access.Widget.Action.elm_actions { get; }
|
2019-08-21 09:59:30 -07:00
|
|
|
Efl.Gfx.Arrangement.content_align { get; set; }
|
2014-03-23 04:05:20 -07:00
|
|
|
}
|
|
|
|
events {
|
2019-08-22 05:37:14 -07:00
|
|
|
drop @beta: string; [[Called when drop from drag and drop happened]] /* FIXME - Belongs to DnD interface */
|
2014-03-23 04:05:20 -07:00
|
|
|
}
|
|
|
|
}
|