Tizen Native API
|
Functions | |
void | elm_notify_align_set (Elm_Notify *obj, double horizontal, double vertical) |
Set the alignment of the notify object. | |
void | elm_notify_align_get (const Elm_Notify *obj, double *horizontal, double *vertical) |
Get the alignment of the notify object. | |
void | elm_notify_allow_events_set (Elm_Notify *obj, Eina_Bool allow) |
Sets whether events should be passed to by a click outside its area. | |
Eina_Bool | elm_notify_allow_events_get (const Elm_Notify *obj) |
Return true if events are allowed below the notify object. | |
void | elm_notify_timeout_set (Elm_Notify *obj, double timeout) |
Set the time interval after which the notify window is going to be hidden. | |
double | elm_notify_timeout_get (const Elm_Notify *obj) |
Return the timeout value (in seconds) | |
void | elm_notify_dismiss (Elm_Notify *obj) |
Dismiss a notify object. | |
Evas_Object * | elm_notify_add (Evas_Object *parent) |
Add a new notify to the parent. | |
void | elm_notify_parent_set (Evas_Object *obj, Evas_Object *parent) |
Set the notify parent. | |
Evas_Object * | elm_notify_parent_get (const Evas_Object *obj) |
Get the notify parent. |
Display a container in a particular region of the parent(top, bottom, etc). A timeout can be set to automatically hide the notify. This is so that, after an evas_object_show() on a notify object, if a timeout was set on it, it will automatically get hidden after that time.
Signals that you can add callbacks for are:
- "timeout" - when timeout happens on notify and it's hidden
- "block,clicked" - when a click outside of the notify happens
This widget inherits from elm-container-class, so that the functions meant to act on it will wor work for mapbuf objects:
Default content parts of the notify widget that you can use are:
"default"
- The main content of the notify
Function Documentation
Evas_Object* elm_notify_add | ( | Evas_Object * | parent | ) |
Add a new notify to the parent.
- Since :
- 2.3
- Parameters:
-
[in] parent The parent object
- Returns:
- The new object or NULL if it cannot be created
void elm_notify_align_get | ( | const Elm_Notify * | obj, |
double * | horizontal, | ||
double * | vertical | ||
) |
Get the alignment of the notify object.
- Since :
- 2.3
- See also:
- elm_notify_align_set()
- Since (EFL) :
- 1.8
- Parameters:
-
[in] obj The elm notify object [out] horizontal The horizontal alignment of the notification [out] vertical The vertical alignment of the notification
void elm_notify_align_set | ( | Elm_Notify * | obj, |
double | horizontal, | ||
double | vertical | ||
) |
Set the alignment of the notify object.
- Since :
- 2.3
- Remarks:
- Sets the alignment in which the notify will appear in its parent.
-
To fill the notify box in the parent area, please pass the #ELM_NOTIFY_ALIGN_FILL to
horizontal
,vertical
.
- Since (EFL) :
- 1.8
- Parameters:
-
[in] obj The elm notify object [in] horizontal The horizontal alignment of the notification [in] vertical The vertical alignment of the notification
Eina_Bool elm_notify_allow_events_get | ( | const Elm_Notify * | obj | ) |
Return true if events are allowed below the notify object.
- Since :
- 2.3
- See also:
- elm_notify_allow_events_set()
- Parameters:
-
[in] obj The elm notify object
void elm_notify_allow_events_set | ( | Elm_Notify * | obj, |
Eina_Bool | allow | ||
) |
Sets whether events should be passed to by a click outside its area.
- Since :
- 2.3
- Remarks:
- When true if the user clicks outside the window the events will be caught by the others widgets, else the events are blocked.
- The default value is EINA_TRUE.
- Parameters:
-
[in] obj The elm notify object [in] allow EINA_TRUE If events are allowed, otherwise not
void elm_notify_dismiss | ( | Elm_Notify * | obj | ) |
Dismiss a notify object.
- Since :
- 2.3.1
- Parameters:
-
[in] obj The notify object
Use this function to dismiss the notify with hide effect. when the notify is dismissed, the "dismissed" signal will be emitted.
Evas_Object* elm_notify_parent_get | ( | const Evas_Object * | obj | ) |
Get the notify parent.
- Since :
- 2.3
- Parameters:
-
[in] obj The notify object
- Returns:
- The parent
- See also:
- elm_notify_parent_set()
void elm_notify_parent_set | ( | Evas_Object * | obj, |
Evas_Object * | parent | ||
) |
Set the notify parent.
- Since :
- 2.3
- Parameters:
-
[in] obj The notify object [in] parent The new parent
- Remarks:
- Once the parent object is set, a previously set one will be disconnected and replaced.
double elm_notify_timeout_get | ( | const Elm_Notify * | obj | ) |
Return the timeout value (in seconds)
- Since :
- 2.3
- See also:
- elm_notify_timeout_set()
- Parameters:
-
[in] obj The elm notify object
void elm_notify_timeout_set | ( | Elm_Notify * | obj, |
double | timeout | ||
) |
Set the time interval after which the notify window is going to be hidden.
- Since :
- 2.3
- Remarks:
- 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.
- Set a value <= 0.0 to disable a running timer.
- If the value > 0.0 and the notify is previously visible, the timer will be started with this value, canceling any running timer.
- Parameters:
-
[in] obj The elm notify object [in] timeout The timeout in seconds