forked from enlightenment/efl
Efl.Canvas.Object: rename pointer_coords_inside_get to coords_inside property.
Also change the signature of the function. Pass Eina_Position2D instead.
This commit is contained in:
parent
72b96bc4c5
commit
8fb49de5eb
|
@ -551,7 +551,8 @@ abstract Efl.Canvas.Object (Efl.Object, Efl.Gfx, Efl.Gfx.Stack, Efl.Animator,
|
||||||
enable: bool; [[Enable "no-render" mode.]]
|
enable: bool; [[Enable "no-render" mode.]]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pointer_coords_inside_get {
|
@property coords_inside {
|
||||||
|
get {
|
||||||
[[Returns whether the coords are logically inside the
|
[[Returns whether the coords are logically inside the
|
||||||
object.
|
object.
|
||||||
|
|
||||||
|
@ -565,11 +566,13 @@ abstract Efl.Canvas.Object (Efl.Object, Efl.Gfx, Efl.Gfx.Stack, Efl.Animator,
|
||||||
|
|
||||||
If $e is not a valid object, the return value is undefined.
|
If $e is not a valid object, the return value is undefined.
|
||||||
]]
|
]]
|
||||||
params {
|
|
||||||
@in x: int; [[The canvas-relative x coordinate.]]
|
|
||||||
@in y: int; [[The canvas-relative y coordinate.]]
|
|
||||||
}
|
}
|
||||||
return: bool @warn_unused; [[$true if the coords are inside the object, $false otherwise]]
|
keys {
|
||||||
|
pos: Eina.Position2D; [[The position in pixels.]]
|
||||||
|
}
|
||||||
|
values {
|
||||||
|
return: bool; [[$true if the coords are inside the object, $false otherwise]]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@property event_animation {
|
@property event_animation {
|
||||||
[[Set the $animation which starts when the given $event_name happens to the object.]]
|
[[Set the $animation which starts when the given $event_name happens to the object.]]
|
||||||
|
|
|
@ -2662,7 +2662,7 @@ _efl_canvas_object_precise_is_inside_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Pro
|
||||||
}
|
}
|
||||||
|
|
||||||
EOLIAN static Eina_Bool
|
EOLIAN static Eina_Bool
|
||||||
_efl_canvas_object_pointer_coords_inside_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, Evas_Coord x, Evas_Coord y)
|
_efl_canvas_object_coords_inside_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, Eina_Position2D pos)
|
||||||
{
|
{
|
||||||
Eina_Rectangle c;
|
Eina_Rectangle c;
|
||||||
|
|
||||||
|
@ -2679,7 +2679,7 @@ _efl_canvas_object_pointer_coords_inside_get(Eo *eo_obj EINA_UNUSED, Evas_Object
|
||||||
if (obj->clip.clipees) return EINA_FALSE;
|
if (obj->clip.clipees) return EINA_FALSE;
|
||||||
c = obj->cur->geometry;
|
c = obj->cur->geometry;
|
||||||
}
|
}
|
||||||
return RECTS_INTERSECT(x, y, 1, 1, c.x, c.y, c.w, c.h);
|
return RECTS_INTERSECT(pos.x, pos.y, 1, 1, c.x, c.y, c.w, c.h);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue