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.]]
|
|
|
|
}
|
|
|
|
|
2019-01-18 05:22:23 -08:00
|
|
|
class Elm.Hover extends Efl.Ui.Layout implements Efl.Ui.Focus.Layer, Efl.Ui.Clickable,
|
|
|
|
Efl.Access.Widget.Action, Efl.Ui.Legacy
|
2014-03-17 07:48:52 -07:00
|
|
|
{
|
2016-11-24 05:51:47 -08:00
|
|
|
[[Elementary hover class]]
|
2016-05-12 09:06:04 -07:00
|
|
|
legacy_prefix: elm_hover;
|
2014-03-17 07:48:52 -07:00
|
|
|
eo_prefix: elm_obj_hover;
|
2016-05-17 09:14:47 -07:00
|
|
|
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 {
|
2016-06-20 21:26:15 -07:00
|
|
|
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.
|
|
|
|
]]
|
2016-11-24 05:51:47 -08:00
|
|
|
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 {
|
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.theme_apply;
|
|
|
|
Efl.Ui.Widget.widget_sub_object_add;
|
|
|
|
Efl.Ui.Widget.widget_parent { get; set; }
|
|
|
|
Efl.Ui.Widget.widget_sub_object_del;
|
2017-11-15 18:31:26 -08:00
|
|
|
Efl.Access.Widget.Action.elm_actions { get; }
|
2018-04-03 04:27:30 -07:00
|
|
|
Efl.Access.Object.state_set { get; }
|
2018-05-03 16:34:17 -07:00
|
|
|
Efl.Part.part_get;
|
2014-03-17 07:48:52 -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
|
|
|
smart,changed: string; [[Called when hover changed]]
|
|
|
|
dismissed: void; [[Called when hover was dismissed]]
|
2014-03-17 07:48:52 -07:00
|
|
|
}
|
|
|
|
}
|