182 lines
5.7 KiB
Plaintext
182 lines
5.7 KiB
Plaintext
enum Efl.Ui.Image.Scale_Type
|
|
{
|
|
[[Enumeration that defines scale types for the object's internal image.
|
|
|
|
@since 1.18
|
|
]]
|
|
fill, [[Scale the internal image so that it matches
|
|
the object's area exactly.
|
|
The image's aspect ratio might be changed.]]
|
|
fit_inside, [[Scale the internal image
|
|
so that it fits inside the object's area
|
|
while maintaining the aspect ratio.
|
|
At least one of the dimensions of the image
|
|
should be equal to the corresponding dimension
|
|
of the object.]]
|
|
fit_outside, [[Scale the internal image
|
|
so that it covers the entire object area
|
|
while maintaining the aspect ratio.
|
|
At least one of the dimensions of the image
|
|
should be equal to the corresponding
|
|
dimension of the object.]]
|
|
none [[Not scale the internal image]]
|
|
}
|
|
|
|
struct Efl.Ui.Image.Progress
|
|
{
|
|
[[
|
|
Structure associated with smart callback 'download,progress'.
|
|
@since 1.8
|
|
]]
|
|
now: double;
|
|
total: double;
|
|
}
|
|
|
|
struct Efl.Ui.Image.Error
|
|
{
|
|
[[
|
|
Structure associated with smart callback 'download,progress'.
|
|
@since 1.8
|
|
]]
|
|
status: int;
|
|
open_error: bool;
|
|
}
|
|
|
|
class Efl.Ui.Image (Elm.Widget, Efl.Ui.Clickable, Efl.Ui.Draggable,
|
|
Efl.File, Efl.Image, Efl.Image.Load, Efl.Player, Efl.Gfx.View,
|
|
Elm.Interface.Atspi_Image, Elm.Interface.Atspi_Widget_Action,
|
|
Edje.Object, Efl.Orientation, Efl.Flipable)
|
|
{
|
|
event_prefix: efl_ui_image;
|
|
methods {
|
|
@property scale_type {
|
|
[[Control how the internal image is scaled.
|
|
|
|
@since 1.18]]
|
|
set {
|
|
}
|
|
get {
|
|
}
|
|
values {
|
|
scale_type: Efl.Ui.Image.Scale_Type;
|
|
}
|
|
}
|
|
@property scalable {
|
|
[[Enable or disable scaling up or down the internal image.
|
|
|
|
@since 1.18]]
|
|
set {
|
|
}
|
|
get {
|
|
}
|
|
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 {
|
|
[[Control how the internal image is positioned inside an image object.
|
|
|
|
@since 1.18]]
|
|
set {
|
|
}
|
|
get {
|
|
}
|
|
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", "network", etc. 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 name is not found in any of the expected locations and it is
|
|
the absolute path of an image file, this image will be used.
|
|
|
|
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 elm_image_file_set() instead of
|
|
@.icon.set, then this function will return null.
|
|
]]
|
|
}
|
|
values {
|
|
name: string; [[The icon name]]
|
|
}
|
|
}
|
|
}
|
|
implements {
|
|
class.constructor;
|
|
Eo.Base.constructor;
|
|
Efl.File.file.set;
|
|
Efl.File.file.get;
|
|
Efl.File.mmap.set;
|
|
Efl.File.async.set;
|
|
Efl.File.async.get;
|
|
Efl.File.async_wait;
|
|
Efl.Gfx.View.view_size.get;
|
|
Efl.Image.Load.load_size.set;
|
|
Efl.Image.Load.load_size.get;
|
|
Efl.Image.smooth_scale.set;
|
|
Efl.Image.smooth_scale.get;
|
|
Efl.Orientation.orientation.set;
|
|
Efl.Orientation.orientation.get;
|
|
Efl.Flipable.flip.set;
|
|
Efl.Flipable.flip.get;
|
|
Efl.Player.playable.get;
|
|
Efl.Player.play.set;
|
|
Efl.Player.play.get;
|
|
Edje.Object.signal_emit;
|
|
Edje.Object.size_min.get;
|
|
Edje.Object.size_max.get;
|
|
Edje.Object.size_min_calc;
|
|
Edje.Object.calc_force;
|
|
Efl.Canvas.Group.group_hide;
|
|
Efl.Canvas.Group.group_clip.set;
|
|
Efl.Canvas.Group.group_clip_unset;
|
|
Efl.Canvas.Group.group_show;
|
|
Efl.Canvas.Group.group_color.set;
|
|
Efl.Canvas.Group.group_move;
|
|
Efl.Canvas.Group.group_add;
|
|
Efl.Canvas.Group.group_del;
|
|
Efl.Canvas.Group.group_member_add;
|
|
Efl.Canvas.Group.group_resize;
|
|
Efl.Ui.Draggable.drag_target.set;
|
|
Efl.Ui.Draggable.drag_target.get;
|
|
Elm.Widget.theme_apply;
|
|
Elm.Widget.event;
|
|
Elm.Interface.Atspi_Image.extents.get;
|
|
Elm.Interface.Atspi_Widget_Action.elm_actions.get;
|
|
}
|
|
events {
|
|
drop;
|
|
download,start;
|
|
download,progress;
|
|
download,done;
|
|
download,error;
|
|
}
|
|
|
|
}
|