132 lines
5.0 KiB
Plaintext
132 lines
5.0 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 @beta Efl.Ui.Image extends Efl.Ui.Widget implements Efl.Ui.Clickable, Efl.Ui.Draggable,
|
|
Efl.File, Efl.Gfx.Image, Efl.Gfx.Image_Load_Controller, Efl.Player, Efl.Gfx.View,
|
|
Efl.Access.Component, Efl.Access.Widget.Action, Efl.Gfx.Color,
|
|
Efl.Orientation,
|
|
Efl.Layout.Calc,
|
|
Efl.Layout.Group, Efl.Layout.Signal
|
|
{
|
|
[[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.
|
|
]]
|
|
event_prefix: efl_ui_image;
|
|
methods {
|
|
@property scalable {
|
|
[[Enable or disable scaling up or down the internal image.
|
|
]]
|
|
values {
|
|
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.]]
|
|
}
|
|
}
|
|
@property align {
|
|
[[Controls how the internal image is positioned inside an image object.
|
|
]]
|
|
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).]]
|
|
}
|
|
}
|
|
@property icon {
|
|
set {
|
|
[[Set the image by 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.
|
|
|
|
Note: The image set by this function is changed when
|
|
@Efl.File.load is called.
|
|
|
|
Note: This function does not accept relative icon path.
|
|
|
|
See also @.icon.get.
|
|
]]
|
|
return: bool; [[$true on success, $false on error]]
|
|
}
|
|
get {
|
|
[[Get the icon name of image set by icon standard names.
|
|
|
|
If the image was set using efl_file_set() instead of
|
|
@.icon.set, then this function will return null.
|
|
]]
|
|
}
|
|
values {
|
|
name: string; [[The icon name]]
|
|
}
|
|
}
|
|
}
|
|
implements {
|
|
Efl.Object.constructor;
|
|
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.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; }
|
|
Efl.Orientation.orientation { get; set; }
|
|
Efl.Orientation.flip { get; set; }
|
|
Efl.Player.playable { get; }
|
|
Efl.Player.play { get; set; }
|
|
Efl.Layout.Signal.signal_emit;
|
|
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.View.model { set; }
|
|
Efl.Ui.Widget.theme_apply;
|
|
Efl.Ui.Widget.widget_input_event_handler;
|
|
Efl.Access.Component.extents { get; }
|
|
Efl.Access.Widget.Action.elm_actions { get; }
|
|
}
|
|
events {
|
|
drop: string; [[Called when drop from drag and drop happened]] /* FIXME - Belongs to DnD interface */
|
|
}
|
|
}
|