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'.
|
|
|
|
@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
|
|
|
}
|
|
|
|
|
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'.
|
|
|
|
@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
|
|
|
}
|
|
|
|
|
2019-02-14 08:37:02 -08:00
|
|
|
class @beta Efl.Ui.Image extends Efl.Ui.Widget implements 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,
|
2019-02-12 10:52:43 -08:00
|
|
|
Efl.Layout.Calc,
|
2019-01-18 05:22:23 -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
|
|
|
|
2019-02-27 10:17:09 -08:00
|
|
|
Note: The image set by this function is changed when
|
|
|
|
@Efl.File.load is called.
|
2016-04-27 06:35:23 -07:00
|
|
|
|
|
|
|
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;
|
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; }
|
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; }
|
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;
|
2019-02-12 10:52:43 -08:00
|
|
|
Efl.Ui.View.model { set; }
|
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; }
|
2014-03-23 04:05:20 -07:00
|
|
|
}
|
|
|
|
events {
|
efl: Add missing event types
Summary:
All events must have a type now, otherwise bindings don't know how to handle
the event_info field.
Most of the missing event types were actually "void" (no event_info present).
Some struct definitions had to be moved to eo instead of h files, so they
are available to bindings. Some have not, and are marked with FIXME.
Some namespaces have been fixed (like Efl_Event_Cb -> Efl.Event_Cb).
In general, there are hundreds of changed files, but mostly to add a type which
was not present before, so there's no harm done.
Also, A lot of FIXMEs have been added which should be, like, fixed.
For example, some events can send different types of event_info, which is
very inconvenient (and error prone).
Test Plan: make with c# bindings works, make check and make examples work too.
Reviewers: cedric, q66, lauromoura
Subscribers: zmike
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D6169
2018-05-11 08:20:40 -07:00
|
|
|
drop: string; [[Called when drop from drag and drop happened]] /* FIXME - Belongs to DnD interface */
|
2014-03-23 04:05:20 -07:00
|
|
|
}
|
|
|
|
}
|