efl/src/lib/elementary/elm_hover.eo

81 lines
2.7 KiB
Plaintext
Raw Normal View History

enum Elm.Hover.Axis
{
[[The orientation axis for the hover object]]
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.]]
}
class Elm.Hover (Efl.Ui.Layout, Efl.Ui.Focus.Layer, Efl.Ui.Clickable,
Efl.Access.Widget.Action, Efl.Ui.Legacy)
2014-03-17 07:48:52 -07:00
{
[[Elementary hover class]]
legacy_prefix: elm_hover;
2014-03-17 07:48:52 -07:00
eo_prefix: elm_obj_hover;
event_prefix: elm_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 {
target: Efl.Canvas.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.
]]
return: string; [[Swallow location]]
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 {
class.constructor;
Efl.Object.constructor;
Efl.Gfx.visible { set; }
Efl.Gfx.position { set; }
Efl.Gfx.size { set; }
Efl.Ui.Widget.theme_apply;
Efl.Ui.Widget.widget_sub_object_add;
Efl.Ui.Widget.widget_parent { get; set; }
Efl.Ui.Widget.widget_sub_object_del;
Efl.Access.Widget.Action.elm_actions { get; }
Efl.Access.state_set { get; }
Efl.Part.part;
2014-03-17 07:48:52 -07:00
}
events {
smart,changed; [[Called when hover changed]]
dismissed; [[Called when hover was dismissed]]
2014-03-17 07:48:52 -07:00
}
}