efl/src/lib/elementary/efl_ui_image.eo

127 lines
4.6 KiB
Plaintext

struct Efl.Ui.Image.Progress
{
[[
Structure associated with smart callback 'download,progress'.
@since 1.8
]]
now: double; [[Current percentage]]
total: double; [[Total percentage]]
}
struct Efl.Ui.Image.Error
{
[[
Structure associated with smart callback 'download,progress'.
@since 1.8
]]
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 (Efl.Ui.Widget, Efl.Ui.Clickable, Efl.Ui.Draggable,
Efl.File, Efl.Image, Efl.Image.Load, Efl.Player, Efl.Gfx.View,
Efl.Access.Component, Efl.Access.Widget.Action, Efl.Gfx.Color,
Efl.Orientation,
Efl.Ui.View, Efl.Ui.Model.Connect, Efl.Layout.Calc,
Efl.Layout.Group, Efl.Layout.Signal)
{
[[ Efl UI image class]]
event_prefix: efl_ui_image;
methods {
@property scalable {
[[Enable or disable scaling up or down the internal image.
@since 1.18]]
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.
@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).]]
}
}
@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 can be changed by
@Efl.File.file.set.
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.file { get; set; }
Efl.File.mmap { set; }
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.Image.image_size { get; }
Efl.Image.Load.load_size { get; set; }
Efl.Image.smooth_scale { get; set; }
Efl.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.Canvas.Layout_Group.group_data { get; }
Efl.Layout.Calc.calc_size_min;
Efl.Layout.Calc.calc_force;
Efl.Canvas.Object.clip { set; }
Efl.Canvas.Group.group_member_add;
Efl.Ui.Draggable.drag_target { get; set; }
Efl.Ui.Model.Connect.connect;
Efl.Ui.View.model { get; set; }
Efl.Ui.Widget.theme_apply;
Efl.Ui.Widget.widget_event;
Efl.Access.Component.extents { get; }
Efl.Access.Widget.Action.elm_actions { get; }
}
events {
drop; [[Called when drop from drag and drop happened]] /* FIXME - Belongs to DnD interface */
}
}