Revert r52345

This function is not needed at all, and as of now it's borken. Coming patches
will properly fix coords on events.



SVN revision: 52398
This commit is contained in:
Lucas De Marchi 2010-09-18 06:29:47 +00:00
parent f8d56a023f
commit a7fcb37a7f
2 changed files with 0 additions and 41 deletions

View File

@ -875,7 +875,6 @@ typedef void (*Evas_Async_Events_Put_Cb)(void *target, Evas_Callback_Type t
EAPI void evas_object_move (Evas_Object *obj, Evas_Coord x, Evas_Coord y) EINA_ARG_NONNULL(1);
EAPI void evas_object_resize (Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
EAPI void evas_object_geometry_get (const Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
EAPI Eina_Bool evas_object_inside_get (const Evas_Object *obj, Evas_Coord x, Evas_Coord y) EINA_ARG_NONNULL(1);
EAPI void evas_object_show (Evas_Object *obj) EINA_ARG_NONNULL(1);
EAPI void evas_object_hide (Evas_Object *obj) EINA_ARG_NONNULL(1);

View File

@ -620,46 +620,6 @@ evas_object_geometry_get(const Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, E
if (h) *h = obj->cur.geometry.h;
}
/* If an evas object does not use any transformation it's much easier to know
* if a point is within its bounds. This internal function is used by
* evas_object_inside_get() that makes the proper checks to see if the given
* evas object can use this version or a more elaborated one is needed.
*/
static inline Eina_Bool
_evas_object_unmapped_inside_get(const Evas_Object *obj, Evas_Coord x, Evas_Coord y)
{
return ((x >= obj->cur.geometry.x) && (y >= obj->cur.geometry.y) &&
(x < (obj->cur.geometry.x + obj->cur.geometry.w)) &&
(y < (obj->cur.geometry.y + obj->cur.geometry.h)));
}
/**
* Check if a certain point is inside of a rectangular evas object.
*
* This function takes into account if the given evas object suffered any
* transformation by means of evas_map_* functions.
*
* @param obj The given evas object.
* @param x X coordinate of the point to check for.
* @param y Y coordinate of the point to check for.
* @ngroup Evas_Object_Group_Basic
*/
EAPI Eina_Bool
evas_object_inside_get(const Evas_Object *obj, Evas_Coord x, Evas_Coord y)
{
MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
return EINA_FALSE;
MAGIC_CHECK_END();
if (obj->delete_me)
return EINA_FALSE;
if ((obj->cur.map) && (obj->cur.map->count == 4) && (obj->cur.usemap))
return evas_map_inside_get(obj->cur.map, x, y);
return _evas_object_unmapped_inside_get(obj, x, y);
}
/**
* @addtogroup Evas_Object_Group_Size_Hints
* @{