2018-04-06 07:52:29 -07:00
|
|
|
struct Efl.Ui.Image_Progress
|
2016-02-04 12:08:14 -08:00
|
|
|
{
|
|
|
|
[[
|
|
|
|
Structure associated with smart callback 'download,progress'.
|
|
|
|
@since 1.8
|
|
|
|
]]
|
2016-10-27 07:45:19 -07:00
|
|
|
now: double; [[Current percentage]]
|
|
|
|
total: double; [[Total percentage]]
|
2016-02-04 12:08:14 -08:00
|
|
|
}
|
|
|
|
|
2018-04-06 07:52:29 -07:00
|
|
|
struct Efl.Ui.Image_Error
|
2016-02-04 12:08:14 -08:00
|
|
|
{
|
|
|
|
[[
|
|
|
|
Structure associated with smart callback 'download,progress'.
|
|
|
|
@since 1.8
|
|
|
|
]]
|
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
|
|
|
}
|
|
|
|
|
2018-01-07 20:55:35 -08:00
|
|
|
class Efl.Ui.Image (Efl.Ui.Widget, Efl.Ui.Clickable, Efl.Ui.Draggable,
|
2018-04-19 04:26:59 -07:00
|
|
|
Efl.File, Efl.Gfx.Image, Efl.Gfx.Image_Load_Controller, Efl.Player, Efl.Gfx.View,
|
2018-02-14 18:14:52 -08:00
|
|
|
Efl.Access.Component, Efl.Access.Widget.Action, Efl.Gfx.Color,
|
2018-01-18 00:18:48 -08:00
|
|
|
Efl.Orientation,
|
2017-12-04 22:29:07 -08:00
|
|
|
Efl.Ui.View, Efl.Ui.Model.Connect, Efl.Layout.Calc,
|
2017-12-04 23:00:08 -08:00
|
|
|
Efl.Layout.Group, Efl.Layout.Signal)
|
2014-03-23 04:05:20 -07:00
|
|
|
{
|
2016-11-17 03:52:44 -08:00
|
|
|
[[ Efl UI image class]]
|
2016-05-31 03:38:21 -07:00
|
|
|
event_prefix: efl_ui_image;
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
2016-04-28 19:50:59 -07:00
|
|
|
@property scalable {
|
|
|
|
[[Enable or disable scaling up or down the internal image.
|
2014-03-23 04:05:20 -07:00
|
|
|
|
2016-04-28 19:50:59 -07:00
|
|
|
@since 1.18]]
|
2014-03-23 04:05:20 -07:00
|
|
|
values {
|
2016-04-28 19:50:59 -07:00
|
|
|
scale_up: bool; [[If $true, the internal image might be scaled up
|
|
|
|
if necessary according to the scale type.
|
|
|
|
if $false, the internal image is not scaled up
|
|
|
|
no matter what the scale type is.]]
|
|
|
|
scale_down: bool; [[If $true, the internal image might be scaled down
|
|
|
|
if necessary according to the scale type.
|
|
|
|
if $false, the internal image is not scaled down
|
|
|
|
no matter what the scale type is.]]
|
2016-04-27 06:35:23 -07:00
|
|
|
}
|
2016-05-27 04:58:25 -07:00
|
|
|
}
|
|
|
|
@property align {
|
2018-01-04 04:16:23 -08:00
|
|
|
[[Controls how the internal image is positioned inside an image object.
|
2016-05-27 04:58:25 -07:00
|
|
|
|
|
|
|
@since 1.18]]
|
|
|
|
values {
|
|
|
|
align_x: double; [[Alignment in the horizontal axis (0 <= align_x <= 1).]]
|
|
|
|
align_y: double; [[Alignment in the vertical axis (0 <= align_y <= 1).]]
|
|
|
|
}
|
|
|
|
}
|
2016-04-27 06:35:23 -07:00
|
|
|
@property icon {
|
|
|
|
set {
|
|
|
|
[[Set the image by icon standards names.
|
|
|
|
|
|
|
|
For example, freedesktop.org defines standard icon names such
|
2018-01-04 04:16:23 -08:00
|
|
|
as "home" and "network". There can be different icon sets to
|
2016-04-27 06:35:23 -07:00
|
|
|
match those icon keys. The "name" given as parameter is one of
|
2018-01-04 04:16:23 -08:00
|
|
|
these "keys" and will be used to look in the freedesktop.org
|
2016-04-27 06:35:23 -07:00
|
|
|
paths and elementary theme.
|
|
|
|
|
2018-01-04 04:16:23 -08:00
|
|
|
If the name is not found in any of the expected locations and is
|
2016-04-27 06:35:23 -07:00
|
|
|
the absolute path of an image file, this image will be used.
|
2016-07-06 03:58:45 -07:00
|
|
|
Lookup order used by @.icon.set can be set using "icon_theme" in config.
|
2016-04-27 06:35:23 -07:00
|
|
|
|
|
|
|
Note: The image set by this function can be changed by
|
|
|
|
@Efl.File.file.set.
|
|
|
|
|
|
|
|
Note: This function does not accept relative icon path.
|
|
|
|
|
|
|
|
See also @.icon.get.
|
|
|
|
]]
|
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 {
|
|
|
|
[[Get the icon name of image set by icon standard names.
|
|
|
|
|
2016-07-04 23:48:32 -07:00
|
|
|
If the image was set using efl_file_set() instead of
|
2016-04-27 06:35:23 -07:00
|
|
|
@.icon.set, then this function will return null.
|
|
|
|
]]
|
|
|
|
}
|
|
|
|
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;
|
2016-12-27 10:15:41 -08:00
|
|
|
Efl.File.file { get; set; }
|
|
|
|
Efl.File.mmap { set; }
|
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; }
|
2018-04-19 04:26:59 -07:00
|
|
|
Efl.Gfx.Image.image_size { get; }
|
|
|
|
Efl.Gfx.Image_Load_Controller.load_size { get; set; }
|
|
|
|
Efl.Gfx.Image.smooth_scale { get; set; }
|
|
|
|
Efl.Gfx.Image.scale_type { get; set; }
|
2016-12-27 10:15:41 -08:00
|
|
|
Efl.Orientation.orientation { get; set; }
|
2018-01-18 00:18:48 -08:00
|
|
|
Efl.Orientation.flip { get; set; }
|
2016-12-27 10:15:41 -08:00
|
|
|
Efl.Player.playable { get; }
|
|
|
|
Efl.Player.play { get; set; }
|
2017-12-04 21:39:20 -08:00
|
|
|
Efl.Layout.Signal.signal_emit;
|
2017-12-04 23:00:08 -08:00
|
|
|
Efl.Layout.Group.group_size_min { get; }
|
|
|
|
Efl.Layout.Group.group_size_max { get; }
|
2017-08-03 01:50:01 -07:00
|
|
|
//Efl.Canvas.Layout_Group.group_data { get; }
|
2017-12-04 22:29:07 -08:00
|
|
|
Efl.Layout.Calc.calc_size_min;
|
|
|
|
Efl.Layout.Calc.calc_force;
|
2016-12-27 10:15:41 -08:00
|
|
|
Efl.Canvas.Object.clip { 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; }
|
2017-01-31 12:17:58 -08:00
|
|
|
Efl.Ui.Model.Connect.connect;
|
|
|
|
Efl.Ui.View.model { get; set; }
|
2018-01-07 20:55:35 -08:00
|
|
|
Efl.Ui.Widget.theme_apply;
|
|
|
|
Efl.Ui.Widget.widget_event;
|
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; }
|
2014-03-23 04:05:20 -07:00
|
|
|
}
|
|
|
|
events {
|
2016-11-17 03:52:44 -08:00
|
|
|
drop; [[Called when drop from drag and drop happened]] /* FIXME - Belongs to DnD interface */
|
2014-03-23 04:05:20 -07:00
|
|
|
}
|
|
|
|
}
|