2015-07-08 02:31:12 -07:00
|
|
|
enum Elm.Hover.Axis
|
|
|
|
{
|
2015-07-08 07:49:38 -07:00
|
|
|
[[The orientation axis for the hover object]]
|
2015-07-08 02:31:12 -07:00
|
|
|
none, [[ELM_HOVER_AXIS_NONE -- no preferred orientation.]]
|
|
|
|
horizontal, [[ELM_HOVER_AXIS_HORIZONTAL -- horizontal.]]
|
|
|
|
vertical, [[ELM_HOVER_AXIS_VERTICAL -- vertical.]]
|
|
|
|
both [[ELM_HOVER_AXIS_BOTH -- both.]]
|
|
|
|
}
|
|
|
|
|
2015-04-22 04:43:05 -07:00
|
|
|
class Elm.Hover (Elm.Layout, Evas.Clickable_Interface)
|
2014-03-17 07:48:52 -07:00
|
|
|
{
|
|
|
|
eo_prefix: elm_obj_hover;
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
|
|
|
@property target {
|
2014-03-17 07:48:52 -07:00
|
|
|
set {
|
2015-08-05 03:31:06 -07:00
|
|
|
[[Sets the target object for the hover.
|
2014-03-17 07:48:52 -07:00
|
|
|
|
2015-08-05 03:31:06 -07:00
|
|
|
This function will cause the hover to be centered on the
|
|
|
|
target object.
|
|
|
|
]]
|
2014-03-17 07:48:52 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-05 03:31:06 -07:00
|
|
|
[[Get the target object for the hover.]]
|
2014-03-17 07:48:52 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-05 03:31:06 -07:00
|
|
|
target: Evas.Object *; [[The target object.]]
|
2014-03-17 07:48:52 -07:00
|
|
|
}
|
|
|
|
}
|
2014-07-22 09:13:52 -07:00
|
|
|
best_content_location_get @const {
|
2015-08-05 03:31:06 -07:00
|
|
|
[[Returns the best swallow location for content in the hover.
|
2014-03-17 07:48:52 -07:00
|
|
|
|
2015-08-05 03:31:06 -07:00
|
|
|
Best is defined here as the location at which there is the most
|
|
|
|
available space.
|
2014-03-17 07:48:52 -07:00
|
|
|
|
2015-08-05 03:31:06 -07:00
|
|
|
$pref_axis may be either #ELM_HOVER_AXIS_NONE (for no preferred
|
|
|
|
orientation), #ELM_HOVER_AXIS_HORIZONTAL, #ELM_HOVER_AXIS_VERTICAL
|
|
|
|
or #ELM_HOVER_AXIS_BOTH.
|
2014-03-17 07:48:52 -07:00
|
|
|
|
2015-08-05 03:31:06 -07:00
|
|
|
If #ELM_HOVER_AXIS_HORIZONTAL is chosen the returned position
|
|
|
|
will necessarily be along the horizontal axis("left" or "right").
|
|
|
|
If #ELM_HOVER_AXIS_VERTICAL is chosen the returned position will
|
|
|
|
necessarily be along the vertical axis("top" or "bottom").
|
|
|
|
Choosing #ELM_HOVER_AXIS_BOTH or #ELM_HOVER_AXIS_NONE has the
|
|
|
|
same effect and the returned position may be in either axis.
|
2014-03-17 07:48:52 -07:00
|
|
|
|
2015-08-05 03:31:06 -07:00
|
|
|
See also \@ref elm_object_part_content_set.
|
|
|
|
]]
|
2014-08-11 07:46:11 -07:00
|
|
|
return: const(char)*;
|
2014-03-17 07:48:52 -07:00
|
|
|
params {
|
2015-08-05 03:31:06 -07:00
|
|
|
@in pref_axis: Elm.Hover.Axis; [[The preferred orientation axis
|
|
|
|
for the hover object to use]]
|
2014-03-17 07:48:52 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
dismiss {
|
2015-08-05 03:31:06 -07:00
|
|
|
[[Dismiss a hover object]]
|
2014-03-17 07:48:52 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
2014-06-20 02:47:39 -07:00
|
|
|
class.constructor;
|
2014-06-27 15:36:05 -07:00
|
|
|
Eo.Base.constructor;
|
|
|
|
Evas.Object_Smart.del;
|
|
|
|
Evas.Object_Smart.hide;
|
|
|
|
Evas.Object_Smart.show;
|
|
|
|
Evas.Object_Smart.move;
|
|
|
|
Evas.Object_Smart.add;
|
|
|
|
Evas.Object_Smart.resize;
|
2015-04-22 04:33:10 -07:00
|
|
|
Elm.Widget.theme_apply;
|
|
|
|
Elm.Widget.sub_object_add;
|
|
|
|
Elm.Widget.parent;
|
|
|
|
Elm.Widget.focus_direction_manager_is;
|
|
|
|
Elm.Widget.focus_next_manager_is;
|
|
|
|
Elm.Widget.sub_object_del;
|
2015-04-22 04:38:51 -07:00
|
|
|
Elm.Container.content_get;
|
|
|
|
Elm.Container.content_set;
|
|
|
|
Elm.Container.content_unset;
|
2015-04-22 04:37:40 -07:00
|
|
|
Elm.Layout.sizing_eval;
|
|
|
|
Elm.Layout.content_aliases.get;
|
2014-03-17 07:48:52 -07:00
|
|
|
}
|
|
|
|
events {
|
2015-05-07 07:01:09 -07:00
|
|
|
smart,changed;
|
|
|
|
dismissed;
|
2014-03-17 07:48:52 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|