Tizen Native API  5.5
Hover

hover_inheritance_tree.png
preview-00.png

A Hover object will hover over its parent object at the target location. Anything in the background will be given a darker coloring to indicate that the hover object is on top (at the default theme). When the hover is clicked it is dismissed(hidden), if the contents of the hover are clicked that doesn't cause the hover to be dismissed.

A Hover object has two parents. One parent that owns it during creation and the other parent being the one over which the hover object spans.

Note:
The hover object will take up the entire space of target object.

Elementary has the following styles for the hover widget:

This widget inherits from the Layout one, so that all the functions acting on it also work for hover objects.

This widget emits the following signals, besides the ones sent from Layout:

Default content parts of the hover widget that you can use for are:

Note:
These content parts indicates the direction that the content will be displayed

All directions may have contents at the same time, except for "smart". This is a special placement hint and its use case depends of the calculations coming from elm_hover_best_content_location_get(). Its use is for cases when one desires only one hover content, but with a dynamic special placement within the hover area. The content's geometry, whenever it changes, will be used to decide on a best location, not extrapolating the hover's parent object view to show it in (still being the hover's target determinant of its medium part -- move and resize it to simulate finger sizes, for example). If one of the directions other than "smart" are used, a previously content set using it will be deleted, and vice-versa.

Supported elm_object common APIs.

See Hover example for more information.

Functions

Evas_Objectelm_hover_add (Evas_Object *parent)
 Adds a hover object to parent.
void elm_hover_parent_set (Evas_Object *obj, Evas_Object *parent)
 Sets the parent object for the hover.
Evas_Objectelm_hover_parent_get (const Evas_Object *obj)
 Get the parent object for the hover.

Function Documentation

Adds a hover object to parent.

Parameters:
parentThe parent object
Returns:
The hover object or NULL if one could not be created
Examples:
hover_example_01.c, and inwin_example.c.

Get the parent object for the hover.

Parameters:
objThe hover object
Returns:
The parent object to locate the hover over.
See also:
elm_hover_parent_set()
void elm_hover_parent_set ( Evas_Object obj,
Evas_Object parent 
)

Sets the parent object for the hover.

Parameters:
objThe hover object
parentThe object to locate the hover over.

This function will cause the hover to take up the entire space that the parent object fills.

Examples:
hover_example_01.c.