declare first round of classes stable
this stabelizes the "stableized" column of the efl: api workboard.
fixes T8208,
fixes T8158,
fixes T8156,
fixes T8025,
fixes T8024,
fixes T7976,
fixes T7946,
fixes T7928,
fixes T7923,
fixes T7905,
fixes T7902,
fixes T7901,
fixes T7900,
fixes T7898,
fixes T7897,
fixes T7895,
fixes T7894,
fixes T7893,
fixes T7891,
fixes T7880,
fixes T7873,
fixes T7869,
fixes T7867,
fixes T7865,
fixes T7862,
fixes T7854,
fixes T7847,
fixes T7881,
fixes T7870,
fixes T9086
Differential Revision: https://phab.enlightenment.org/D10008
2019-09-09 02:23:04 -07:00
|
|
|
enum Efl.Ui.Alert_Popup_Button {
|
2019-10-14 00:55:52 -07:00
|
|
|
[[Defines the type of the alert button. @since 1.23]]
|
2019-09-10 08:14:33 -07:00
|
|
|
positive = 0, [[Button having positive meaning. E.g. "Yes".]]
|
|
|
|
negative, [[Button having negative meaning. E.g. "No".]]
|
|
|
|
user [[Button having user-defined meaning. E.g. "More information".]]
|
2017-08-22 23:50:18 -07:00
|
|
|
}
|
|
|
|
|
declare first round of classes stable
this stabelizes the "stableized" column of the efl: api workboard.
fixes T8208,
fixes T8158,
fixes T8156,
fixes T8025,
fixes T8024,
fixes T7976,
fixes T7946,
fixes T7928,
fixes T7923,
fixes T7905,
fixes T7902,
fixes T7901,
fixes T7900,
fixes T7898,
fixes T7897,
fixes T7895,
fixes T7894,
fixes T7893,
fixes T7891,
fixes T7880,
fixes T7873,
fixes T7869,
fixes T7867,
fixes T7865,
fixes T7862,
fixes T7854,
fixes T7847,
fixes T7881,
fixes T7870,
fixes T9086
Differential Revision: https://phab.enlightenment.org/D10008
2019-09-09 02:23:04 -07:00
|
|
|
struct Efl.Ui.Alert_Popup_Button_Clicked_Event {
|
2019-10-14 00:55:52 -07:00
|
|
|
[[Information for @[Efl.Ui.Alert_Popup.button,clicked] event. @since 1.23]]
|
2019-09-10 08:14:33 -07:00
|
|
|
button_type: Efl.Ui.Alert_Popup_Button; [[Clicked button type.]]
|
2017-10-24 06:30:49 -07:00
|
|
|
}
|
|
|
|
|
declare first round of classes stable
this stabelizes the "stableized" column of the efl: api workboard.
fixes T8208,
fixes T8158,
fixes T8156,
fixes T8025,
fixes T8024,
fixes T7976,
fixes T7946,
fixes T7928,
fixes T7923,
fixes T7905,
fixes T7902,
fixes T7901,
fixes T7900,
fixes T7898,
fixes T7897,
fixes T7895,
fixes T7894,
fixes T7893,
fixes T7891,
fixes T7880,
fixes T7873,
fixes T7869,
fixes T7867,
fixes T7865,
fixes T7862,
fixes T7854,
fixes T7847,
fixes T7881,
fixes T7870,
fixes T9086
Differential Revision: https://phab.enlightenment.org/D10008
2019-09-09 02:23:04 -07:00
|
|
|
class Efl.Ui.Alert_Popup extends Efl.Ui.Popup
|
2017-08-22 23:50:18 -07:00
|
|
|
{
|
2019-09-10 08:08:44 -07:00
|
|
|
[[A variant of @Efl.Ui.Popup which uses a layout containing a content object and
|
|
|
|
a variable number of buttons (up to 3 total).
|
|
|
|
|
|
|
|
An Alert_Popup is a popup which can be used when an application requires user interaction. It provides
|
|
|
|
functionality for easily creating button objects on the popup and passing information about
|
|
|
|
which button has been pressed to the button event callback.
|
2019-10-14 00:55:52 -07:00
|
|
|
|
|
|
|
@since 1.23
|
2019-09-10 08:08:44 -07:00
|
|
|
]]
|
2017-08-22 23:50:18 -07:00
|
|
|
methods {
|
|
|
|
@property button {
|
2019-09-10 08:08:44 -07:00
|
|
|
[[This property changes the text and icon for the specified button object.
|
|
|
|
|
|
|
|
When set, the Alert_Popup will create a button for the specified type if it does not yet
|
|
|
|
exist. The button's content and text will be set using the passed values.
|
|
|
|
|
|
|
|
Exactly one button may exist for each @Efl.Ui.Alert_Popup_Button type. Repeated calls to
|
|
|
|
set values for the same button type will overwrite previous values.
|
|
|
|
|
2019-09-10 08:14:33 -07:00
|
|
|
By default, no buttons are created. Once a button is added to the Popup using this property
|
|
|
|
it cannot be removed.
|
2019-09-10 08:08:44 -07:00
|
|
|
]]
|
2017-08-22 23:50:18 -07:00
|
|
|
set {
|
|
|
|
}
|
|
|
|
keys {
|
2019-09-10 08:14:33 -07:00
|
|
|
type: Efl.Ui.Alert_Popup_Button; [[Alert_Popup button type.]]
|
2017-08-22 23:50:18 -07:00
|
|
|
}
|
|
|
|
values {
|
2019-09-10 08:08:44 -07:00
|
|
|
text: string; [[Text of the specified button type.]]
|
|
|
|
icon: Efl.Canvas.Object; [[Visual to use as an icon for the specified button type.]]
|
2017-08-22 23:50:18 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-11-06 20:38:47 -08:00
|
|
|
parts {
|
2019-12-06 00:49:52 -08:00
|
|
|
title : Efl.Ui.Alert_Popup_Part_Title; [[The title text of Alert Popup.]]
|
2019-11-06 20:38:47 -08:00
|
|
|
}
|
2017-08-22 23:50:18 -07:00
|
|
|
implements {
|
2017-10-24 05:29:15 -07:00
|
|
|
Efl.Object.constructor;
|
|
|
|
Efl.Object.destructor;
|
2018-05-03 16:34:17 -07:00
|
|
|
Efl.Part.part_get;
|
2017-08-22 23:50:18 -07:00
|
|
|
}
|
|
|
|
events {
|
2019-09-10 08:08:44 -07:00
|
|
|
button,clicked: Efl.Ui.Alert_Popup_Button_Clicked_Event; [[Called when an Alert_Popup button was clicked.]]
|
2017-08-22 23:50:18 -07:00
|
|
|
}
|
|
|
|
}
|