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 {
|
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-09-21 01:21:18 -07:00
|
|
|
@property timeout {
|
|
|
|
set {
|
|
|
|
[[ Set the timeout seconds.
|
|
|
|
After timeout seconds, popup will be deleted automatically.
|
|
|
|
]]
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
[[ Get the currently set timeout seconds.]]
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
time: double;
|
|
|
|
}
|
|
|
|
}
|
2017-07-27 22:48:48 -07:00
|
|
|
}
|
2017-11-10 00:56:34 -08:00
|
|
|
parts {
|
|
|
|
backwall: Efl.Ui.Popup.Part; [[A backwall behind the popup.]]
|
|
|
|
}
|
2017-07-27 22:48:48 -07:00
|
|
|
implements {
|
2017-10-24 05:29:15 -07:00
|
|
|
Efl.Object.constructor;
|
|
|
|
Efl.Object.destructor;
|
2017-07-27 22:48:48 -07:00
|
|
|
Efl.Gfx.position { set; }
|
2017-09-21 01:21:18 -07:00
|
|
|
Efl.Gfx.visible { set; }
|
2017-07-27 22:48:48 -07:00
|
|
|
Elm.Widget.widget_parent { set; }
|
|
|
|
Efl.Container.content { get; set; }
|
|
|
|
Efl.Container.content_unset;
|
2017-11-10 00:56:34 -08:00
|
|
|
Efl.Part.part;
|
2017-07-27 22:48:48 -07:00
|
|
|
}
|
2017-08-09 23:48:36 -07:00
|
|
|
events {
|
2017-10-30 04:34:42 -07:00
|
|
|
backwall,clicked; [[This is called whenever the user clicks back wall of popup.]]
|
2017-10-26 00:32:58 -07:00
|
|
|
timeout; [[This is called when popup times out.]]
|
2017-08-09 23:48:36 -07:00
|
|
|
}
|
2017-07-27 22:48:48 -07:00
|
|
|
}
|