2017-08-17 01:37:54 -07:00
|
|
|
enum Efl.Ui.Popup.Align {
|
|
|
|
none = 0,
|
|
|
|
center,
|
|
|
|
left,
|
|
|
|
right,
|
|
|
|
top,
|
|
|
|
bottom
|
|
|
|
}
|
|
|
|
|
2017-07-27 22:48:48 -07:00
|
|
|
class Efl.Ui.Popup(Efl.Ui.Layout)
|
|
|
|
{
|
|
|
|
methods {
|
|
|
|
@property parent_window @protected {
|
2017-08-09 23:48:36 -07:00
|
|
|
get {
|
|
|
|
[[Get the parent window of Popup.]]
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
window: Efl.Canvas.Object;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
bg_set {
|
|
|
|
params {
|
|
|
|
@in file: string; [[The image file path.]]
|
|
|
|
@in group: string; [[The image key in $file (if its an Eet one), or
|
|
|
|
$null, otherwise.]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@property bg_repeat_events {
|
|
|
|
set {
|
|
|
|
[[Sets whether events should be passed to by a click outside.
|
|
|
|
|
|
|
|
Note: The default value is $false.
|
|
|
|
]]
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
[[Returns value indicating whether bg repeat events is enabled or not.]]
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
repeat: bool; [[If $true, events are passed to lower objects.]]
|
|
|
|
}
|
|
|
|
}
|
2017-08-17 01:37:54 -07:00
|
|
|
@property align {
|
|
|
|
set {
|
|
|
|
[[ Set the popup alignment.]]
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
[[ Get the current popup alignment.]]
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
type: Efl.Ui.Popup.Align;
|
|
|
|
}
|
|
|
|
}
|
2017-07-27 22:48:48 -07:00
|
|
|
}
|
|
|
|
implements {
|
|
|
|
class.constructor;
|
|
|
|
Efl.Gfx.position { set; }
|
|
|
|
Elm.Widget.widget_parent { set; }
|
|
|
|
Efl.Container.content { get; set; }
|
|
|
|
Efl.Container.content_unset;
|
|
|
|
}
|
2017-08-09 23:48:36 -07:00
|
|
|
events {
|
|
|
|
bg,clicked; [[This is called whenever the user click background of popup.]]
|
|
|
|
}
|
2017-07-27 22:48:48 -07:00
|
|
|
}
|