2019-01-18 05:22:23 -08:00
|
|
|
class Elm.Notify extends Efl.Ui.Widget implements Efl.Ui.Focus.Layer, Efl.Content, Efl.Ui.Legacy
|
2014-03-24 23:25:02 -07:00
|
|
|
{
|
2016-11-24 05:51:47 -08:00
|
|
|
[[Elementary notification class]]
|
2016-05-12 09:06:04 -07:00
|
|
|
legacy_prefix: elm_notify;
|
2014-03-24 23:25:02 -07:00
|
|
|
eo_prefix: elm_obj_notify;
|
2016-05-17 09:14:47 -07:00
|
|
|
event_prefix: elm_notify;
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
|
|
|
@property align {
|
2014-03-24 23:25:02 -07:00
|
|
|
set {
|
2015-07-02 06:47:56 -07:00
|
|
|
[[Set the alignment of the notify object
|
2014-03-24 23:25:02 -07:00
|
|
|
|
2015-07-02 06:47:56 -07:00
|
|
|
Sets the alignment in which the notify will appear in its parent.
|
2014-03-24 23:25:02 -07:00
|
|
|
|
2015-07-02 06:47:56 -07:00
|
|
|
Note: To fill the notify box in the parent area, please pass the
|
|
|
|
ELM_NOTIFY_ALIGN_FILL to horizontal and vertical.
|
2014-03-24 23:25:02 -07:00
|
|
|
|
2015-07-02 06:47:56 -07:00
|
|
|
@since 1.8
|
|
|
|
]]
|
2014-03-24 23:25:02 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-07-02 06:47:56 -07:00
|
|
|
[[Get the alignment of the notify object
|
2014-03-24 23:25:02 -07:00
|
|
|
|
2015-07-02 06:47:56 -07:00
|
|
|
@since 1.8
|
|
|
|
]]
|
2014-03-24 23:25:02 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-07-02 06:47:56 -07:00
|
|
|
horizontal: double; [[The horizontal alignment of the notification]]
|
|
|
|
vertical: double; [[The vertical alignment of the notification]]
|
2014-03-24 23:25:02 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property allow_events {
|
2014-03-24 23:25:02 -07:00
|
|
|
set {
|
2015-07-02 06:47:56 -07:00
|
|
|
[[Sets whether events should be passed to by a click outside
|
|
|
|
its area.
|
2014-03-24 23:25:02 -07:00
|
|
|
|
2015-07-02 06:47:56 -07:00
|
|
|
When true if the user clicks outside the window the events will
|
|
|
|
be caught by the others widgets, else the events are blocked.
|
2014-03-24 23:25:02 -07:00
|
|
|
|
2015-07-02 06:47:56 -07:00
|
|
|
Note: The default value is true.
|
|
|
|
]]
|
2014-03-24 23:25:02 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-07-02 06:47:56 -07:00
|
|
|
[[Return true if events are allowed below the notify object.]]
|
2014-03-24 23:25:02 -07:00
|
|
|
}
|
|
|
|
values {
|
2016-11-24 05:51:47 -08:00
|
|
|
allow: bool; [[$true if events are allowed, $false otherwise]]
|
2014-03-24 23:25:02 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property timeout {
|
2014-03-24 23:25:02 -07:00
|
|
|
set {
|
2015-07-02 06:47:56 -07:00
|
|
|
[[Set the time interval after which the notify window is going to
|
|
|
|
be hidden.
|
2014-03-24 23:25:02 -07:00
|
|
|
|
2015-07-02 06:47:56 -07:00
|
|
|
This function sets a timeout and starts the timer controlling
|
|
|
|
when the notify is hidden. Since calling evas_object_show() on
|
|
|
|
a notify restarts the timer controlling when the notify is
|
|
|
|
hidden, setting this before the notify is shown will in effect
|
|
|
|
mean starting the timer when the notify is shown.
|
2014-03-24 23:25:02 -07:00
|
|
|
|
2015-07-02 06:47:56 -07:00
|
|
|
Note: Set a value <= 0.0 to disable a running timer.
|
2014-03-24 23:25:02 -07:00
|
|
|
|
2015-07-02 06:47:56 -07:00
|
|
|
Note: If the value > 0.0 and the notify is previously visible,
|
|
|
|
the timer will be started with this value, canceling any running
|
|
|
|
timer.
|
|
|
|
]]
|
2014-03-24 23:25:02 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-07-02 06:47:56 -07:00
|
|
|
[[Return the timeout value (in seconds)]]
|
2014-03-24 23:25:02 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-07-02 06:47:56 -07:00
|
|
|
timeout: double; [[The timeout in seconds]]
|
2014-03-24 23:25:02 -07:00
|
|
|
}
|
|
|
|
}
|
2015-12-30 20:08:28 -08:00
|
|
|
dismiss {
|
2016-01-06 09:39:48 -08:00
|
|
|
[[Dismiss a notify object.
|
|
|
|
@since 1.17
|
|
|
|
]]
|
2015-12-30 20:08:28 -08:00
|
|
|
}
|
2014-03-24 23:25:02 -07:00
|
|
|
}
|
|
|
|
implements {
|
2014-06-20 02:47:39 -07:00
|
|
|
class.constructor;
|
2016-08-10 07:23:04 -07:00
|
|
|
Efl.Object.constructor;
|
2018-04-05 01:47:26 -07:00
|
|
|
Efl.Gfx.Entity.visible { set; }
|
|
|
|
Efl.Gfx.Entity.position { set; }
|
|
|
|
Efl.Gfx.Entity.size { set; }
|
2018-01-07 20:55:35 -08:00
|
|
|
Efl.Ui.Widget.widget_parent { get; set; }
|
|
|
|
Efl.Ui.Widget.theme_apply;
|
|
|
|
Efl.Ui.Widget.widget_sub_object_del;
|
2017-11-19 22:41:07 -08:00
|
|
|
Efl.Content.content { get; set; }
|
|
|
|
Efl.Content.content_unset;
|
2018-05-03 16:34:17 -07:00
|
|
|
Efl.Part.part_get;
|
2014-03-24 23:25:02 -07:00
|
|
|
}
|
|
|
|
events {
|
efl: Add missing event types
Summary:
All events must have a type now, otherwise bindings don't know how to handle
the event_info field.
Most of the missing event types were actually "void" (no event_info present).
Some struct definitions had to be moved to eo instead of h files, so they
are available to bindings. Some have not, and are marked with FIXME.
Some namespaces have been fixed (like Efl_Event_Cb -> Efl.Event_Cb).
In general, there are hundreds of changed files, but mostly to add a type which
was not present before, so there's no harm done.
Also, A lot of FIXMEs have been added which should be, like, fixed.
For example, some events can send different types of event_info, which is
very inconvenient (and error prone).
Test Plan: make with c# bindings works, make check and make examples work too.
Reviewers: cedric, q66, lauromoura
Subscribers: zmike
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D6169
2018-05-11 08:20:40 -07:00
|
|
|
block,clicked: void; [[Called when block was clicked]]
|
|
|
|
timeout: void; [[Called when notify timed out]]
|
|
|
|
dismissed: void; [[Called when notify was dismissed]]
|
2014-03-24 23:25:02 -07:00
|
|
|
}
|
|
|
|
}
|