1 #include "evas_common.h"
2 #include "evas_private.h"
8 get_layer_objects(Evas_Layer *l)
10 if ((!l) || (!l->objects)) return NULL;
11 return (EINA_INLIST_GET(l->objects));
14 /* evas internal stuff */
16 evas_object_new(Evas *e __UNUSED__)
20 EVAS_MEMPOOL_INIT(_mp_obj, "evas_object", Evas_Object, 512, NULL);
21 obj = EVAS_MEMPOOL_ALLOC(_mp_obj, Evas_Object);
22 if (!obj) return NULL;
23 EVAS_MEMPOOL_PREP(_mp_obj, obj, Evas_Object);
24 obj->magic = MAGIC_OBJ;
26 obj->prev.scale = 1.0;
31 evas_object_free(Evas_Object *obj, int clean_layer)
33 int was_smart_child = 0;
35 evas_object_map_set(obj, NULL);
36 evas_object_grabs_cleanup(obj);
37 evas_object_intercept_cleanup(obj);
38 if (obj->smart.parent) was_smart_child = 1;
39 evas_object_smart_cleanup(obj);
41 if (!was_smart_child) evas_object_release(obj, clean_layer);
42 if (obj->clip.clipees)
43 eina_list_free(obj->clip.clipees);
44 evas_object_clip_changes_clean(obj);
45 evas_object_event_callback_all_del(obj);
46 evas_object_event_callback_cleanup(obj);
47 while (obj->data.elements)
51 node = obj->data.elements->data;
52 obj->data.elements = eina_list_remove(obj->data.elements, node);
58 EVAS_MEMPOOL_FREE(_mp_sh, obj->size_hints);
60 EVAS_MEMPOOL_FREE(_mp_obj, obj);
64 evas_object_change(Evas_Object *obj)
69 if (obj->layer->evas->nochange)
71 // printf("nochange %p\n", obj);
75 // printf("ch %p\n", obj);
76 obj->layer->evas->changed = 1;
77 if (obj->changed) return;
79 evas_render_object_recalc(obj);
80 /* set changed flag on all objects this one clips too */
81 EINA_LIST_FOREACH(obj->clip.clipees, l, obj2) evas_object_change(obj2);
82 if (obj->smart.parent) evas_object_change(obj->smart.parent);
86 evas_object_render_pre_visible_change(Eina_Array *rects, Evas_Object *obj, int is_v, int was_v)
88 if (obj->smart.smart) return ;
89 if (is_v == was_v) return ;
93 obj->cur.cache.clip.x,
94 obj->cur.cache.clip.y,
95 obj->cur.cache.clip.w,
96 obj->cur.cache.clip.h);
101 obj->prev.cache.clip.x,
102 obj->prev.cache.clip.y,
103 obj->prev.cache.clip.w,
104 obj->prev.cache.clip.h);
109 evas_object_render_pre_clipper_change(Eina_Array *rects, Evas_Object *obj)
111 if (obj->smart.smart) return ;
112 if (obj->cur.clipper == obj->prev.clipper) return ;
113 if ((obj->cur.clipper) && (obj->prev.clipper))
115 /* get difference rects between clippers */
116 evas_rects_return_difference_rects(rects,
117 obj->cur.clipper->cur.cache.clip.x,
118 obj->cur.clipper->cur.cache.clip.y,
119 obj->cur.clipper->cur.cache.clip.w,
120 obj->cur.clipper->cur.cache.clip.h,
121 obj->prev.clipper->prev.cache.clip.x,
122 obj->prev.clipper->prev.cache.clip.y,
123 obj->prev.clipper->prev.cache.clip.w,
124 obj->prev.clipper->prev.cache.clip.h);
126 else if (obj->cur.clipper)
128 evas_rects_return_difference_rects(rects,
133 //// rl = evas_rects_return_difference_rects(obj->cur.cache.geometry.x,
134 //// obj->cur.cache.geometry.y,
135 //// obj->cur.cache.geometry.w,
136 //// obj->cur.cache.geometry.h,
137 obj->cur.clipper->cur.cache.clip.x,
138 obj->cur.clipper->cur.cache.clip.y,
139 obj->cur.clipper->cur.cache.clip.w,
140 obj->cur.clipper->cur.cache.clip.h);
142 else if (obj->prev.clipper)
144 evas_rects_return_difference_rects(rects,
145 obj->prev.geometry.x,
146 obj->prev.geometry.y,
147 obj->prev.geometry.w,
148 obj->prev.geometry.h,
149 //// rl = evas_rects_return_difference_rects(obj->prev.cache.geometry.x,
150 //// obj->prev.cache.geometry.y,
151 //// obj->prev.cache.geometry.w,
152 //// obj->prev.cache.geometry.h,
153 obj->prev.clipper->prev.cache.clip.x,
154 obj->prev.clipper->prev.cache.clip.y,
155 obj->prev.clipper->prev.cache.clip.w,
156 obj->prev.clipper->prev.cache.clip.h);
161 evas_object_render_pre_prev_cur_add(Eina_Array *rects, Evas_Object *obj)
164 obj->cur.cache.clip.x,
165 obj->cur.cache.clip.y,
166 obj->cur.cache.clip.w,
167 obj->cur.cache.clip.h);
169 obj->prev.cache.clip.x,
170 obj->prev.cache.clip.y,
171 obj->prev.cache.clip.w,
172 obj->prev.cache.clip.h);
178 obj->cur.geometry.h);
179 //// obj->cur.cache.geometry.x,
180 //// obj->cur.cache.geometry.y,
181 //// obj->cur.cache.geometry.w,
182 //// obj->cur.cache.geometry.h);
184 obj->prev.geometry.x,
185 obj->prev.geometry.y,
186 obj->prev.geometry.w,
187 obj->prev.geometry.h);
188 //// obj->prev.cache.geometry.x,
189 //// obj->prev.cache.geometry.y,
190 //// obj->prev.cache.geometry.w,
191 //// obj->prev.cache.geometry.h);
196 evas_object_clip_changes_clean(Evas_Object *obj)
200 EINA_LIST_FREE(obj->clip.changes, r) eina_rectangle_free(r);
204 evas_object_render_pre_effect_updates(Eina_Array *rects, Evas_Object *obj, int is_v, int was_v)
207 Evas_Object *clipper;
210 Eina_Array_Iterator it;
213 if (obj->smart.smart) goto end;
214 /* FIXME: was_v isn't used... why? */
216 if (!obj->clip.clipees)
218 EINA_ARRAY_ITER_NEXT(rects, i, r, it)
220 /* get updates and clip to current clip */
225 RECTS_CLIP_TO_RECT(x, y, w, h,
226 obj->cur.cache.clip.x,
227 obj->cur.cache.clip.y,
228 obj->cur.cache.clip.w,
229 obj->cur.cache.clip.h);
230 if ((w > 0) && (h > 0))
231 obj->layer->evas->engine.func->output_redraws_rect_add(obj->layer->evas->engine.data.output,
233 /* get updates and clip to previous clip */
238 RECTS_CLIP_TO_RECT(x, y, w, h,
239 obj->prev.cache.clip.x,
240 obj->prev.cache.clip.y,
241 obj->prev.cache.clip.w,
242 obj->prev.cache.clip.h);
243 if ((w > 0) && (h > 0))
244 obj->layer->evas->engine.func->output_redraws_rect_add(obj->layer->evas->engine.data.output,
247 /* if the object is actually visible, take any parent clip changes */
250 clipper = obj->cur.clipper;
253 EINA_LIST_FOREACH(clipper->clip.changes, l, r)
255 /* get updates and clip to current clip */
256 x = r->x; y = r->y; w = r->w; h = r->h;
257 RECTS_CLIP_TO_RECT(x, y, w, h,
258 obj->cur.cache.clip.x,
259 obj->cur.cache.clip.y,
260 obj->cur.cache.clip.w,
261 obj->cur.cache.clip.h);
262 if ((w > 0) && (h > 0))
263 obj->layer->evas->engine.func->output_redraws_rect_add(obj->layer->evas->engine.data.output,
265 /* get updates and clip to previous clip */
266 x = r->x; y = r->y; w = r->w; h = r->h;
267 RECTS_CLIP_TO_RECT(x, y, w, h,
268 obj->prev.cache.clip.x,
269 obj->prev.cache.clip.y,
270 obj->prev.cache.clip.w,
271 obj->prev.cache.clip.h);
272 if ((w > 0) && (h > 0))
273 obj->layer->evas->engine.func->output_redraws_rect_add(obj->layer->evas->engine.data.output,
276 clipper = clipper->cur.clipper;
282 evas_object_clip_changes_clean(obj);
283 EINA_ARRAY_ITER_NEXT(rects, i, r, it)
284 obj->clip.changes = eina_list_append(obj->clip.changes, r);
285 eina_array_clean(rects);
289 EINA_ARRAY_ITER_NEXT(rects, i, r, it)
290 eina_rectangle_free(r);
291 eina_array_clean(rects);
295 evas_object_was_in_output_rect(Evas_Object *obj, int x, int y, int w, int h)
297 if (obj->smart.smart) return 0;
298 /* assumes coords have been recalced */
299 if ((RECTS_INTERSECT(x, y, w, h,
300 obj->prev.cache.clip.x,
301 obj->prev.cache.clip.y,
302 obj->prev.cache.clip.w,
303 obj->prev.cache.clip.h)))
309 evas_object_was_opaque(Evas_Object *obj)
311 if (obj->smart.smart) return 0;
312 if (obj->prev.cache.clip.a == 255)
314 if (obj->func->was_opaque)
315 return obj->func->was_opaque(obj);
322 evas_object_is_inside(Evas_Object *obj, Evas_Coord x, Evas_Coord y)
324 if (obj->smart.smart) return 0;
325 if (obj->func->is_inside)
326 return obj->func->is_inside(obj, x, y);
331 evas_object_was_inside(Evas_Object *obj, Evas_Coord x, Evas_Coord y)
333 if (obj->smart.smart) return 0;
334 if (obj->func->was_inside)
335 return obj->func->was_inside(obj, x, y);
338 /* routines apps will call */
341 * Deletes the given evas object and frees its memory.
343 * The object's 'free' callback is called when this function is called.
344 * If the object currently has the focus, its 'focus out' callback is
347 * @param obj The given evas object.
348 * @ingroup Evas_Object_Group_Basic
351 evas_object_del(Evas_Object *obj)
353 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
357 if (obj->delete_me) return;
359 #ifdef EVAS_FRAME_QUEUING
360 evas_common_frameq_flush();
363 _evas_object_event_new();
365 evas_object_event_callback_call(obj, EVAS_CALLBACK_DEL, NULL);
366 _evas_post_event_callback_call(obj->layer->evas);
367 if (obj->name) evas_object_name_set(obj, NULL);
370 evas_object_free(obj, 1);
376 obj->layer->evas->focused = NULL;
377 _evas_object_event_new();
378 evas_object_event_callback_call(obj, EVAS_CALLBACK_FOCUS_OUT, NULL);
379 _evas_post_event_callback_call(obj->layer->evas);
381 obj->layer->evas->pointer.mouse_grabbed -= obj->mouse_grabbed;
382 obj->mouse_grabbed = 0;
384 evas_object_hide(obj);
385 evas_object_grabs_cleanup(obj);
386 while (obj->clip.clipees) evas_object_clip_unset(obj->clip.clipees->data);
387 while (obj->proxy.proxies)
388 evas_object_image_source_unset(obj->proxy.proxies->data);
389 if (obj->cur.clipper) evas_object_clip_unset(obj);
390 if (obj->smart.smart) evas_object_smart_del(obj);
391 evas_object_map_set(obj, NULL);
392 _evas_object_event_new();
393 evas_object_event_callback_call(obj, EVAS_CALLBACK_FREE, NULL);
394 _evas_post_event_callback_call(obj->layer->evas);
395 evas_object_smart_cleanup(obj);
397 evas_object_change(obj);
401 * Moves the given evas object to the given location.
402 * @param obj The given evas object.
403 * @param x X position to move the object to, in canvas units.
404 * @param y Y position to move the object to, in canvas units.
405 * @ingroup Evas_Object_Group_Basic
408 evas_object_move(Evas_Object *obj, Evas_Coord x, Evas_Coord y)
410 int is, was = 0, pass = 0;
412 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
415 if (obj->delete_me) return;
416 if (evas_object_intercept_call_move(obj, x, y)) return;
417 if (obj->doing.in_move > 0)
419 WRN("evas_object_move() called on object %p when in the middle of moving the same object", obj);
422 if ((obj->cur.geometry.x == x) && (obj->cur.geometry.y == y)) return;
423 if (obj->layer->evas->events_frozen <= 0)
425 pass = evas_event_passes_through(obj);
427 was = evas_object_is_in_output_rect(obj,
428 obj->layer->evas->pointer.x,
429 obj->layer->evas->pointer.y, 1, 1);
431 obj->doing.in_move++;
432 if (obj->smart.smart)
434 if (obj->smart.smart->smart_class->move)
435 obj->smart.smart->smart_class->move(obj, x, y);
437 obj->cur.geometry.x = x;
438 obj->cur.geometry.y = y;
439 //// obj->cur.cache.geometry.validity = 0;
440 evas_object_change(obj);
441 evas_object_clip_dirty(obj);
442 obj->doing.in_move--;
443 if (obj->layer->evas->events_frozen <= 0)
445 evas_object_recalc_clippees(obj);
448 if (!obj->smart.smart)
450 is = evas_object_is_in_output_rect(obj,
451 obj->layer->evas->pointer.x,
452 obj->layer->evas->pointer.y, 1, 1);
453 if ((is ^ was) && obj->cur.visible)
454 evas_event_feed_mouse_move(obj->layer->evas,
455 obj->layer->evas->pointer.x,
456 obj->layer->evas->pointer.y,
457 obj->layer->evas->last_timestamp,
462 evas_object_inform_call_move(obj);
466 * Changes the size of the given evas object.
467 * @param obj The given evas object.
468 * @param w The new width of the evas object.
469 * @param h The new height of the evas object.
471 * @note Be aware that resizing an object changes its drawing area,
472 * but that does imply the object is rescaled! For instance,
473 * images are filled inside their drawing area using the
474 * specifications of evas_object_image_fill_set(), thus to scale
475 * the image to match exactly your drawing area, you need to
476 * change the evas_object_image_fill_set() as well. Consider the
479 * // rescale image to fill exactly its area without tiling:
480 * evas_object_resize(img, w, h);
481 * evas_object_image_fill_set(img, 0, 0, w, h);
483 * This is more evident in images, but text, textblock, lines
484 * and polygons will behave similarly. Check their specific APIs
485 * to know how to achieve your desired behavior.
487 * @ingroup Evas_Object_Group_Basic
490 evas_object_resize(Evas_Object *obj, Evas_Coord w, Evas_Coord h)
492 int is, was = 0, pass = 0;
494 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
497 if (obj->delete_me) return;
498 if (w < 0) w = 0; if (h < 0) h = 0;
499 if (evas_object_intercept_call_resize(obj, w, h)) return;
500 if (obj->doing.in_resize > 0)
502 WRN("evas_object_resize() called on object %p when in the middle of resizing the same object", obj);
505 if ((obj->cur.geometry.w == w) && (obj->cur.geometry.h == h)) return;
506 if (obj->layer->evas->events_frozen <= 0)
508 pass = evas_event_passes_through(obj);
510 was = evas_object_is_in_output_rect(obj,
511 obj->layer->evas->pointer.x,
512 obj->layer->evas->pointer.y, 1, 1);
514 obj->doing.in_resize++;
515 if (obj->smart.smart)
517 if (obj->smart.smart->smart_class->resize)
518 obj->smart.smart->smart_class->resize(obj, w, h);
520 obj->cur.geometry.w = w;
521 obj->cur.geometry.h = h;
522 //// obj->cur.cache.geometry.validity = 0;
523 evas_object_change(obj);
524 evas_object_clip_dirty(obj);
525 obj->doing.in_resize--;
526 /* NB: evas_object_recalc_clippees was here previously ( < 08/07/2009) */
527 if (obj->layer->evas->events_frozen <= 0)
529 /* NB: If this creates glitches on screen then move to above position */
530 evas_object_recalc_clippees(obj);
532 // if (obj->func->coords_recalc) obj->func->coords_recalc(obj);
535 if (!obj->smart.smart)
537 is = evas_object_is_in_output_rect(obj,
538 obj->layer->evas->pointer.x,
539 obj->layer->evas->pointer.y, 1, 1);
540 if ((is ^ was) && (obj->cur.visible))
541 evas_event_feed_mouse_move(obj->layer->evas,
542 obj->layer->evas->pointer.x,
543 obj->layer->evas->pointer.y,
544 obj->layer->evas->last_timestamp,
549 evas_object_inform_call_resize(obj);
553 * Retrieves the position and rectangular size of the given evas object.
555 * Note that if any of @p x, @p y, @p w or @p h are @c NULL, the @c NULL
556 * parameters are ignored.
558 * @param obj The given evas object.
559 * @param x Pointer to an integer in which to store the X coordinate of
561 * @param y Pointer to an integer in which to store the Y coordinate of
563 * @param w Pointer to an integer in which to store the width of the
565 * @param h Pointer to an integer in which to store the height of the
567 * @ingroup Evas_Object_Group_Basic
570 evas_object_geometry_get(const Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h)
572 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
573 if (x) *x = 0; if (y) *y = 0; if (w) *w = 0; if (h) *h = 0;
578 if (x) *x = 0; if (y) *y = 0; if (w) *w = 0; if (h) *h = 0;
581 if (x) *x = obj->cur.geometry.x;
582 if (y) *y = obj->cur.geometry.y;
583 if (w) *w = obj->cur.geometry.w;
584 if (h) *h = obj->cur.geometry.h;
588 * @addtogroup Evas_Object_Group_Size_Hints
593 _evas_object_size_hint_alloc(Evas_Object *obj)
595 if (obj->size_hints) return;
597 EVAS_MEMPOOL_INIT(_mp_sh, "evas_size_hints", Evas_Size_Hints, 512, );
598 obj->size_hints = EVAS_MEMPOOL_ALLOC(_mp_sh, Evas_Size_Hints);
599 if (!obj->size_hints) return;
600 EVAS_MEMPOOL_PREP(_mp_sh, obj->size_hints, Evas_Size_Hints);
601 obj->size_hints->max.w = -1;
602 obj->size_hints->max.h = -1;
603 obj->size_hints->align.x = 0.5;
604 obj->size_hints->align.y = 0.5;
608 * Retrieves the size hint for the minimum size.
610 * This is not a size enforcement in any way, it's just a hint that should
611 * be used whenever appropriate.
613 * Note that if any of @p w or @p h are @c NULL, the @c NULL
614 * parameters are ignored.
616 * @param obj The given evas object.
617 * @param w Pointer to an integer in which to store the minimum width.
618 * @param h Pointer to an integer in which to store the minimum height.
621 evas_object_size_hint_min_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h)
623 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
624 if (w) *w = 0; if (h) *h = 0;
627 if ((!obj->size_hints) || obj->delete_me)
629 if (w) *w = 0; if (h) *h = 0;
632 if (w) *w = obj->size_hints->min.w;
633 if (h) *h = obj->size_hints->min.h;
637 * Sets the size hint for the minimum size.
639 * This is not a size enforcement in any way, it's just a hint that should
640 * be used whenever appropriate.
642 * Value 0 is considered unset.
644 * @param obj The given evas object.
645 * @param w Integer to use as the minimum width hint.
646 * @param h Integer to use as the minimum height hint.
649 evas_object_size_hint_min_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h)
651 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
656 _evas_object_size_hint_alloc(obj);
657 if ((obj->size_hints->min.w == w) && (obj->size_hints->min.h == h)) return;
658 obj->size_hints->min.w = w;
659 obj->size_hints->min.h = h;
661 evas_object_inform_call_changed_size_hints(obj);
665 * Retrieves the size hint for the maximum size.
667 * This is not a size enforcement in any way, it's just a hint that should
668 * be used whenever appropriate.
670 * Note that if any of @p w or @p h are @c NULL, the @c NULL
671 * parameters are ignored.
673 * @param obj The given evas object.
674 * @param w Pointer to an integer in which to store the maximum width.
675 * @param h Pointer to an integer in which to store the maximum height.
678 evas_object_size_hint_max_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h)
680 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
681 if (w) *w = -1; if (h) *h = -1;
684 if ((!obj->size_hints) || obj->delete_me)
686 if (w) *w = -1; if (h) *h = -1;
689 if (w) *w = obj->size_hints->max.w;
690 if (h) *h = obj->size_hints->max.h;
694 * Sets the size hint for the maximum size.
696 * This is not a size enforcement in any way, it's just a hint that should
697 * be used whenever appropriate.
699 * Value -1 is considered unset.
701 * @param obj The given evas object.
702 * @param w Integer to use as the maximum width hint.
703 * @param h Integer to use as the maximum height hint.
706 evas_object_size_hint_max_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h)
708 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
713 _evas_object_size_hint_alloc(obj);
714 if ((obj->size_hints->max.w == w) && (obj->size_hints->max.h == h)) return;
715 obj->size_hints->max.w = w;
716 obj->size_hints->max.h = h;
718 evas_object_inform_call_changed_size_hints(obj);
722 * Retrieves the size request hint.
724 * This is not a size enforcement in any way, it's just a hint that should
725 * be used whenever appropriate.
727 * Note that if any of @p w or @p h are @c NULL, the @c NULL
728 * parameters are ignored.
730 * @param obj The given evas object.
731 * @param w Pointer to an integer in which to store the requested width.
732 * @param h Pointer to an integer in which to store the requested height.
735 evas_object_size_hint_request_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h)
737 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
738 if (w) *w = 0; if (h) *h = 0;
741 if ((!obj->size_hints) || obj->delete_me)
743 if (w) *w = 0; if (h) *h = 0;
746 if (w) *w = obj->size_hints->request.w;
747 if (h) *h = obj->size_hints->request.h;
751 * Sets the requested size hint.
753 * This is not a size enforcement in any way, it's just a hint that should
754 * be used whenever appropriate.
756 * Value 0 is considered unset.
758 * @param obj The given evas object.
759 * @param w Integer to use as the preferred width hint.
760 * @param h Integer to use as the preferred height hint.
763 evas_object_size_hint_request_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h)
765 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
770 _evas_object_size_hint_alloc(obj);
771 if ((obj->size_hints->request.w == w) && (obj->size_hints->request.h == h)) return;
772 obj->size_hints->request.w = w;
773 obj->size_hints->request.h = h;
775 evas_object_inform_call_changed_size_hints(obj);
779 * Retrieves the size aspect control hint.
781 * This is not a size enforcement in any way, it's just a hint that should
782 * be used whenever appropriate.
784 * Note that if any of @p aspect, @p w or @p h are @c NULL, the @c NULL
785 * parameters are ignored.
787 * @param obj The given evas object.
788 * @param aspect Returns the hint on how size should be calculated.
789 * @param w Pointer to an integer in which to store the aspect width.
790 * @param h Pointer to an integer in which to store the aspect height.
793 evas_object_size_hint_aspect_get(const Evas_Object *obj, Evas_Aspect_Control *aspect, Evas_Coord *w, Evas_Coord *h)
795 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
796 if (aspect) *aspect = EVAS_ASPECT_CONTROL_NONE;
797 if (w) *w = 0; if (h) *h = 0;
800 if ((!obj->size_hints) || obj->delete_me)
802 if (aspect) *aspect = EVAS_ASPECT_CONTROL_NONE;
803 if (w) *w = 0; if (h) *h = 0;
806 if (aspect) *aspect = obj->size_hints->aspect.mode;
807 if (w) *w = obj->size_hints->aspect.size.w;
808 if (h) *h = obj->size_hints->aspect.size.h;
812 * Sets the size aspect control hint.
814 * This is not a size enforcement in any way, it's just a hint that should
815 * be used whenever appropriate.
817 * @param obj The given evas object.
818 * @param aspect Hint on how to calculate size.
819 * @param w Integer to use as aspect width hint.
820 * @param h Integer to use as aspect height hint.
823 evas_object_size_hint_aspect_set(Evas_Object *obj, Evas_Aspect_Control aspect, Evas_Coord w, Evas_Coord h)
825 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
830 _evas_object_size_hint_alloc(obj);
831 if ((obj->size_hints->aspect.mode == aspect) && (obj->size_hints->aspect.size.w == w) && (obj->size_hints->aspect.size.h == h)) return;
832 obj->size_hints->aspect.mode = aspect;
833 obj->size_hints->aspect.size.w = w;
834 obj->size_hints->aspect.size.h = h;
836 evas_object_inform_call_changed_size_hints(obj);
840 * Retrieves the size align control hint.
842 * This is not a size enforcement in any way, it's just a hint that should
843 * be used whenever appropriate.
845 * Note that if any of @p x or @p y are @c NULL, the @c NULL
846 * parameters are ignored.
848 * @param obj The given evas object.
849 * @param x Pointer to a double in which to store the align x.
850 * @param y Pointer to a double in which to store the align y.
853 evas_object_size_hint_align_get(const Evas_Object *obj, double *x, double *y)
855 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
856 if (x) *x = 0.5; if (y) *y = 0.5;
859 if ((!obj->size_hints) || obj->delete_me)
861 if (x) *x = 0.5; if (y) *y = 0.5;
864 if (x) *x = obj->size_hints->align.x;
865 if (y) *y = obj->size_hints->align.y;
869 * Sets the size align control hint.
871 * This is not a size enforcement in any way, it's just a hint that should
872 * be used whenever appropriate.
874 * Accepted values are in the 0.0 to 1.0 range, with the special value
875 * -1.0 used to specify "justify" or "fill" by some users. See
876 * documentation of possible users.
878 * @param obj The given evas object.
879 * @param x Double (0.0..1.0 or -1.0) to use as align x hint.
880 * @param y Double (0.0..1.0 or -1.0) to use as align y hint.
883 evas_object_size_hint_align_set(Evas_Object *obj, double x, double y)
885 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
890 _evas_object_size_hint_alloc(obj);
891 if ((obj->size_hints->align.x == x) && (obj->size_hints->align.y == y)) return;
892 obj->size_hints->align.x = x;
893 obj->size_hints->align.y = y;
895 evas_object_inform_call_changed_size_hints(obj);
899 * Retrieves the size weight control hint.
901 * This is not a size enforcement in any way, it's just a hint that should
902 * be used whenever appropriate.
904 * Note that if any of @p x or @p y are @c NULL, the @c NULL
905 * parameters are ignored.
907 * Accepted values are zero or positive values. Some users might use
908 * this hint as a boolean, but some might consider it as a proportion,
909 * see documentation of possible users.
911 * @param obj The given evas object.
912 * @param x Pointer to a double in which to store the weight x.
913 * @param y Pointer to a double in which to store the weight y.
916 evas_object_size_hint_weight_get(const Evas_Object *obj, double *x, double *y)
918 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
919 if (x) *x = 0.0; if (y) *y = 0.0;
922 if ((!obj->size_hints) || obj->delete_me)
924 if (x) *x = 0.0; if (y) *y = 0.0;
927 if (x) *x = obj->size_hints->weight.x;
928 if (y) *y = obj->size_hints->weight.y;
932 * Sets the size weight control hint.
934 * This is not a size enforcement in any way, it's just a hint that should
935 * be used whenever appropriate.
937 * @param obj The given evas object.
938 * @param x Double (0.0-1.0) to use as weight x hint.
939 * @param y Double (0.0-1.0) to use as weight y hint.
942 evas_object_size_hint_weight_set(Evas_Object *obj, double x, double y)
944 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
949 _evas_object_size_hint_alloc(obj);
950 if ((obj->size_hints->weight.x == x) && (obj->size_hints->weight.y == y)) return;
951 obj->size_hints->weight.x = x;
952 obj->size_hints->weight.y = y;
954 evas_object_inform_call_changed_size_hints(obj);
958 * Retrieves the size padding control hint.
960 * This is not a size enforcement in any way, it's just a hint that should
961 * be used whenever appropriate.
963 * Note that if any of @p l, @p r, @p t or @p b are @c NULL, the @c
964 * NULL parameters are ignored.
966 * @param obj The given evas object.
967 * @param l Pointer to an integer in which to store left padding.
968 * @param r Pointer to an integer in which to store right padding.
969 * @param t Pointer to an integer in which to store top padding.
970 * @param b Pointer to an integer in which to store bottom padding.
973 evas_object_size_hint_padding_get(const Evas_Object *obj, Evas_Coord *l, Evas_Coord *r, Evas_Coord *t, Evas_Coord *b)
975 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
976 if (l) *l = 0; if (r) *r = 0;
977 if (t) *t = 0; if (b) *b = 0;
980 if ((!obj->size_hints) || obj->delete_me)
982 if (l) *l = 0; if (r) *r = 0;
983 if (t) *t = 0; if (b) *b = 0;
986 if (l) *l = obj->size_hints->padding.l;
987 if (r) *r = obj->size_hints->padding.r;
988 if (t) *t = obj->size_hints->padding.t;
989 if (b) *b = obj->size_hints->padding.b;
993 * Sets the size padding control hint.
995 * This is not a size enforcement in any way, it's just a hint that should
996 * be used whenever appropriate.
998 * @param obj The given evas object.
999 * @param l Integer to specify left padding.
1000 * @param r Integer to specify right padding.
1001 * @param t Integer to specify top padding.
1002 * @param b Integer to specify bottom padding.
1005 evas_object_size_hint_padding_set(Evas_Object *obj, Evas_Coord l, Evas_Coord r, Evas_Coord t, Evas_Coord b)
1007 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
1012 _evas_object_size_hint_alloc(obj);
1013 if ((obj->size_hints->padding.l == l) && (obj->size_hints->padding.r == r) && (obj->size_hints->padding.t == t) && (obj->size_hints->padding.b == b)) return;
1014 obj->size_hints->padding.l = l;
1015 obj->size_hints->padding.r = r;
1016 obj->size_hints->padding.t = t;
1017 obj->size_hints->padding.b = b;
1019 evas_object_inform_call_changed_size_hints(obj);
1028 * Makes the given evas object visible.
1029 * @param obj The given evas object.
1030 * @ingroup Evas_Object_Group_Basic
1033 evas_object_show(Evas_Object *obj)
1035 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
1038 if (obj->delete_me) return;
1039 if (evas_object_intercept_call_show(obj)) return;
1040 if (obj->smart.smart)
1042 if (obj->smart.smart->smart_class->show)
1043 obj->smart.smart->smart_class->show(obj);
1045 if (obj->cur.visible)
1049 obj->cur.visible = 1;
1050 evas_object_change(obj);
1051 evas_object_clip_dirty(obj);
1052 if (obj->layer->evas->events_frozen <= 0)
1054 evas_object_clip_across_clippees_check(obj);
1055 evas_object_recalc_clippees(obj);
1056 if (!evas_event_passes_through(obj))
1058 if (!obj->smart.smart)
1060 if (evas_object_is_in_output_rect(obj,
1061 obj->layer->evas->pointer.x,
1062 obj->layer->evas->pointer.y, 1, 1))
1063 evas_event_feed_mouse_move(obj->layer->evas,
1064 obj->layer->evas->pointer.x,
1065 obj->layer->evas->pointer.y,
1066 obj->layer->evas->last_timestamp,
1071 evas_object_inform_call_show(obj);
1075 * Makes the given evas object invisible.
1076 * @param obj The given evas object.
1078 * @note the hidden objects will not be checked for changes and will
1079 * not catch events. That is, they are much ligher than an
1080 * object that is invisible due indirect effects, such as
1081 * clipped or out-of-viewport.
1083 * @ingroup Evas_Object_Group_Basic
1086 evas_object_hide(Evas_Object *obj)
1088 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
1091 if (obj->delete_me) return;
1092 if (evas_object_intercept_call_hide(obj)) return;
1093 if (obj->smart.smart)
1095 if (obj->smart.smart->smart_class->hide)
1096 obj->smart.smart->smart_class->hide(obj);
1098 if (!obj->cur.visible)
1102 obj->cur.visible = 0;
1103 evas_object_change(obj);
1104 evas_object_clip_dirty(obj);
1105 if (obj->layer->evas->events_frozen <= 0)
1107 evas_object_clip_across_clippees_check(obj);
1108 evas_object_recalc_clippees(obj);
1109 if (!evas_event_passes_through(obj))
1111 if ((!obj->smart.smart) ||
1112 ((obj->cur.map) && (obj->cur.map->count == 4) && (obj->cur.usemap)))
1114 if (evas_object_is_in_output_rect(obj,
1115 obj->layer->evas->pointer.x,
1116 obj->layer->evas->pointer.y, 1, 1))
1117 evas_event_feed_mouse_move(obj->layer->evas,
1118 obj->layer->evas->pointer.x,
1119 obj->layer->evas->pointer.y,
1120 obj->layer->evas->last_timestamp,
1122 if (obj->delete_me) return;
1123 if (obj->mouse_grabbed > 0)
1125 // if (obj->layer->evas->pointer.mouse_grabbed >= obj->mouse_grabbed)
1126 obj->layer->evas->pointer.mouse_grabbed -= obj->mouse_grabbed;
1128 if ((obj->mouse_in) || (obj->mouse_grabbed > 0))
1130 obj->layer->evas->pointer.object.in = eina_list_remove(obj->layer->evas->pointer.object.in, obj);
1132 obj->mouse_grabbed = 0;
1133 if (obj->layer->evas->events_frozen > 0)
1140 Evas_Event_Mouse_Out ev;
1142 _evas_object_event_new();
1145 ev.buttons = obj->layer->evas->pointer.button;
1146 ev.output.x = obj->layer->evas->pointer.x;
1147 ev.output.y = obj->layer->evas->pointer.y;
1148 ev.canvas.x = obj->layer->evas->pointer.x;
1149 ev.canvas.y = obj->layer->evas->pointer.y;
1151 ev.modifiers = &(obj->layer->evas->modifiers);
1152 ev.locks = &(obj->layer->evas->locks);
1153 ev.timestamp = obj->layer->evas->last_timestamp;
1154 ev.event_flags = EVAS_EVENT_FLAG_NONE;
1155 evas_object_event_callback_call(obj, EVAS_CALLBACK_MOUSE_OUT, &ev);
1156 _evas_post_event_callback_call(obj->layer->evas);
1163 if ((obj->mouse_in) || (obj->mouse_grabbed > 0))
1164 obj->layer->evas->pointer.object.in = eina_list_remove(obj->layer->evas->pointer.object.in, obj);
1165 obj->mouse_grabbed = 0;
1168 evas_object_inform_call_hide(obj);
1172 * Retrieves whether or not the given evas object is visible.
1173 * @param obj The given evas object.
1174 * @return @c 1 if the object is visible. @c 0 otherwise.
1175 * @ingroup Evas_Object_Group_Basic
1178 evas_object_visible_get(const Evas_Object *obj)
1180 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
1183 if (obj->delete_me) return 0;
1184 return obj->cur.visible;
1188 * Sets the general colour of the given evas object to the given colour.
1189 * @param obj The given evas object.
1190 * @param r The red component of the given colour.
1191 * @param g The green component of the given colour.
1192 * @param b The blue component of the given colour.
1193 * @param a The alpha component of the given colour.
1194 * @ingroup Evas_Object_Group_Basic
1197 evas_object_color_set(Evas_Object *obj, int r, int g, int b, int a)
1199 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
1202 if (obj->delete_me) return;
1203 if (r > 255) r = 255; if (r < 0) r = 0;
1204 if (g > 255) g = 255; if (g < 0) g = 0;
1205 if (b > 255) b = 255; if (b < 0) b = 0;
1206 if (a > 255) a = 255; if (a < 0) a = 0;
1207 if (evas_object_intercept_call_color_set(obj, r, g, b, a)) return;
1208 if (obj->smart.smart)
1210 if (obj->smart.smart->smart_class->color_set)
1211 obj->smart.smart->smart_class->color_set(obj, r, g, b, a);
1213 if ((obj->cur.color.r == r) &&
1214 (obj->cur.color.g == g) &&
1215 (obj->cur.color.b == b) &&
1216 (obj->cur.color.a == a)) return;
1217 obj->cur.color.r = r;
1218 obj->cur.color.g = g;
1219 obj->cur.color.b = b;
1220 evas_object_clip_dirty(obj);
1221 if ((obj->cur.color.a == 0) && (a == 0) && (obj->cur.render_op == EVAS_RENDER_BLEND)) return;
1222 obj->cur.color.a = a;
1223 evas_object_change(obj);
1227 * Retrieves the general colour of the given evas object.
1229 * Note that if any of @p r, @p g, @p b or @p a are @c NULL, then the
1230 * @c NULL parameters are ignored.
1232 * @param obj The given evas object.
1233 * @param r Pointer to an integer in which to store the red component of
1235 * @param g Pointer to an integer in which to store the green component of
1237 * @param b Pointer to an integer in which to store the blue component of
1239 * @param a Pointer to an integer in which to store the alpha component of
1241 * @ingroup Evas_Object_Group_Basic
1244 evas_object_color_get(const Evas_Object *obj, int *r, int *g, int *b, int *a)
1246 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
1247 if (r) *r = 0; if (g) *g = 0; if (b) *b = 0; if (a) *a = 0;
1252 if (r) *r = 0; if (g) *g = 0; if (b) *b = 0; if (a) *a = 0;
1255 if (r) *r = obj->cur.color.r;
1256 if (g) *g = obj->cur.color.g;
1257 if (b) *b = obj->cur.color.b;
1258 if (a) *a = obj->cur.color.a;
1262 * Sets whether or not the given evas object is to be drawn anti-aliased.
1264 * @param obj The given evas object.
1265 * @param anti_alias 1 if the object is to be anti_aliased, 0 otherwise.
1266 * @ingroup Evas_Object_Group_Extras
1269 evas_object_anti_alias_set(Evas_Object *obj, Eina_Bool anti_alias)
1271 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
1274 if (obj->delete_me) return;
1275 anti_alias = !!anti_alias;
1276 if (obj->cur.anti_alias == anti_alias)return;
1277 obj->cur.anti_alias = anti_alias;
1278 evas_object_change(obj);
1283 * Retrieves whether or not the given evas object is to be drawn anti_aliased.
1284 * @param obj The given evas object.
1285 * @return @c 1 if the object is to be anti_aliased. @c 0 otherwise.
1286 * @ingroup Evas_Object_Group_Extras
1289 evas_object_anti_alias_get(const Evas_Object *obj)
1291 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
1294 if (obj->delete_me) return 0;
1295 return obj->cur.anti_alias;
1299 * Sets the scaling factor for an evas object. Does not affect all objects.
1301 * @param obj The given evas object.
1302 * @param scale The scaling factor. 1.0 == none.
1303 * @ingroup Evas_Object_Group_Extras
1306 evas_object_scale_set(Evas_Object *obj, double scale)
1308 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
1311 if (obj->delete_me) return;
1312 if (obj->cur.scale == scale) return;
1313 obj->cur.scale = scale;
1314 evas_object_change(obj);
1315 if (obj->func->scale_update) obj->func->scale_update(obj);
1320 * Retrieves the scaling factor for the given evas object.
1321 * @param obj The given evas object.
1322 * @return The scaling factor.
1324 * @ingroup Evas_Object_Group_Extras
1327 evas_object_scale_get(const Evas_Object *obj)
1329 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
1332 if (obj->delete_me) return 1.0;
1333 return obj->cur.scale;
1337 * Sets the render_op to be used for rendering the evas object.
1338 * @param obj The given evas object.
1339 * @param render_op one of the Evas_Render_Op values.
1340 * @ingroup Evas_Object_Group_Extras
1343 evas_object_render_op_set(Evas_Object *obj, Evas_Render_Op render_op)
1345 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
1348 if (obj->delete_me) return;
1349 if ((Evas_Render_Op)obj->cur.render_op == render_op)
1351 obj->cur.render_op = render_op;
1352 evas_object_change(obj);
1356 * Retrieves the current value of the operation used for rendering the evas object.
1357 * @param obj The given evas object.
1358 * @return one of the enumerated values in Evas_Render_Op.
1359 * @ingroup Evas_Object_Group_Extras
1362 evas_object_render_op_get(const Evas_Object *obj)
1364 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
1367 if (obj->delete_me) return EVAS_RENDER_BLEND;
1368 return obj->cur.render_op;
1372 * Retrieves the evas that the given evas object is on.
1373 * @param obj The given evas object.
1374 * @return The evas that the object is on.
1375 * @ingroup Evas_Object_Group_Basic
1378 evas_object_evas_get(const Evas_Object *obj)
1380 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
1383 if (obj->delete_me) return NULL;
1384 return obj->layer->evas;
1388 * @addtogroup Evas_Object_Group_Find
1393 * Retrieves the top object at the given position (x,y)
1394 * @param e The given evas object.
1395 * @param x The horizontal coordinate
1396 * @param y The vertical coordinate
1397 * @param include_pass_events_objects Boolean Flag to include or not
1398 * pass events objects
1399 * @param include_hidden_objects Boolean Flag to include or not hidden objects
1400 * @return The evas object that is over all others objects at the given position.
1403 evas_object_top_at_xy_get(const Evas *e, Evas_Coord x, Evas_Coord y, Eina_Bool include_pass_events_objects, Eina_Bool include_hidden_objects)
1408 MAGIC_CHECK(e, Evas, MAGIC_EVAS);
1413 //// xx = evas_coord_world_x_to_screen(e, x);
1414 //// yy = evas_coord_world_y_to_screen(e, y);
1415 EINA_INLIST_REVERSE_FOREACH((EINA_INLIST_GET(e->layers)), lay)
1419 EINA_INLIST_REVERSE_FOREACH(get_layer_objects(lay), obj)
1421 if (obj->delete_me) continue;
1422 if ((!include_pass_events_objects) && (evas_event_passes_through(obj))) continue;
1423 if ((!include_hidden_objects) && (!obj->cur.visible)) continue;
1424 evas_object_clip_recalc(obj);
1425 if ((evas_object_is_in_output_rect(obj, xx, yy, 1, 1)) &&
1426 (!obj->clip.clipees))
1434 * Retrieves the top object at mouse pointer position
1435 * @param e The given evas object.
1436 * @return The evas object that is over all others objects at the
1440 evas_object_top_at_pointer_get(const Evas *e)
1442 //// return evas_object_top_at_xy_get(e, e->pointer.canvas_x, e->pointer.canvas_y, 0, 0);
1443 return evas_object_top_at_xy_get(e, e->pointer.x, e->pointer.y, 1, 1);
1447 * Retrieves the top object in the given rectangle region
1448 * @param e The given evas object.
1449 * @param x The horizontal coordinate.
1450 * @param y The vertical coordinate.
1451 * @param w The width size.
1452 * @param h The height size.
1453 * @param include_pass_events_objects Boolean Flag to include or not pass events objects
1454 * @param include_hidden_objects Boolean Flag to include or not hidden objects
1455 * @return The evas object that is over all others objects at the pointer position.
1459 evas_object_top_in_rectangle_get(const Evas *e, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h, Eina_Bool include_pass_events_objects, Eina_Bool include_hidden_objects)
1464 MAGIC_CHECK(e, Evas, MAGIC_EVAS);
1471 //// xx = evas_coord_world_x_to_screen(e, x);
1472 //// yy = evas_coord_world_y_to_screen(e, y);
1473 //// ww = evas_coord_world_x_to_screen(e, w);
1474 //// hh = evas_coord_world_y_to_screen(e, h);
1477 EINA_INLIST_REVERSE_FOREACH((EINA_INLIST_GET(e->layers)), lay)
1481 EINA_INLIST_REVERSE_FOREACH(get_layer_objects(lay), obj)
1483 if (obj->delete_me) continue;
1484 if ((!include_pass_events_objects) && (evas_event_passes_through(obj))) continue;
1485 if ((!include_hidden_objects) && (!obj->cur.visible)) continue;
1486 evas_object_clip_recalc(obj);
1487 if ((evas_object_is_in_output_rect(obj, xx, yy, ww, hh)) &&
1488 (!obj->clip.clipees))
1496 * Retrieves the objects at the given position
1497 * @param e The given evas object.
1498 * @param x The horizontal coordinate.
1499 * @param y The vertical coordinate.
1500 * @param include_pass_events_objects Boolean Flag to include or not
1501 * pass events objects
1502 * @param include_hidden_objects Boolean Flag to include or not hidden objects
1503 * @return The list of evas objects at the pointer position.
1507 evas_objects_at_xy_get(const Evas *e, Evas_Coord x, Evas_Coord y, Eina_Bool include_pass_events_objects, Eina_Bool include_hidden_objects)
1509 Eina_List *in = NULL;
1513 MAGIC_CHECK(e, Evas, MAGIC_EVAS);
1518 //// xx = evas_coord_world_x_to_screen(e, x);
1519 //// yy = evas_coord_world_y_to_screen(e, y);
1520 EINA_INLIST_REVERSE_FOREACH((EINA_INLIST_GET(e->layers)), lay)
1524 EINA_INLIST_REVERSE_FOREACH(get_layer_objects(lay), obj)
1526 if (obj->delete_me) continue;
1527 if ((!include_pass_events_objects) && (evas_event_passes_through(obj))) continue;
1528 if ((!include_hidden_objects) && (!obj->cur.visible)) continue;
1529 evas_object_clip_recalc(obj);
1530 if ((evas_object_is_in_output_rect(obj, xx, yy, 1, 1)) &&
1531 (!obj->clip.clipees))
1532 in = eina_list_prepend(in, obj);
1541 * FIXME: To be fixed.
1544 * Retrieves the objects in the given rectangle region
1545 * @param e The given evas object.
1546 * @param x The horizontal coordinate.
1547 * @param y The vertical coordinate.
1548 * @param w The width size.
1549 * @param h The height size.
1550 * @param include_pass_events_objects Boolean Flag to include or not pass events objects
1551 * @param include_hidden_objects Boolean Flag to include or not hidden objects
1552 * @return The list of evas object in the rectangle region.
1556 evas_objects_in_rectangle_get(const Evas *e, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h, Eina_Bool include_pass_events_objects, Eina_Bool include_hidden_objects)
1558 Eina_List *in = NULL;
1562 MAGIC_CHECK(e, Evas, MAGIC_EVAS);
1569 //// xx = evas_coord_world_x_to_screen(e, x);
1570 //// yy = evas_coord_world_y_to_screen(e, y);
1571 //// ww = evas_coord_world_x_to_screen(e, w);
1572 //// hh = evas_coord_world_y_to_screen(e, h);
1575 EINA_INLIST_REVERSE_FOREACH((EINA_INLIST_GET(e->layers)), lay)
1579 EINA_INLIST_REVERSE_FOREACH(get_layer_objects(lay), obj)
1581 if (obj->delete_me) continue;
1582 if ((!include_pass_events_objects) && (evas_event_passes_through(obj))) continue;
1583 if ((!include_hidden_objects) && (!obj->cur.visible)) continue;
1584 evas_object_clip_recalc(obj);
1585 if ((evas_object_is_in_output_rect(obj, xx, yy, ww, hh)) &&
1586 (!obj->clip.clipees))
1587 in = eina_list_prepend(in, obj);
1598 * Retrieves the name of the type of the given evas object.
1599 * @param obj The given object.
1601 * @ingroup Evas_Object_Group_Basic
1604 evas_object_type_get(const Evas_Object *obj)
1606 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
1609 if (obj->delete_me) return "";
1614 * Set whether to use a precise (usually expensive) point collision detection.
1615 * @param obj The given object.
1616 * @param precise wheter to use a precise point collision detection or not
1617 * The default value is false.
1618 * @ingroup Evas_Object_Group_Extras
1621 evas_object_precise_is_inside_set(Evas_Object *obj, Eina_Bool precise)
1623 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
1626 obj->precise_is_inside = precise;
1630 * Determine whether an object is set to use a precise point collision
1632 * @param obj The given object.
1633 * @ingroup Evas_Object_Group_Extras
1636 evas_object_precise_is_inside_get(const Evas_Object *obj)
1638 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
1641 return obj->precise_is_inside;
1645 * Set a hint flag on the object that this is used as a static "clipper".
1647 * This is a hint to evas that this object is used as a big static clipper
1648 * and shouldnt be moved with children and otherwise considered specially. The
1651 * @param obj The given object.
1652 * @param is_static_clip The static clip flag (on or off)
1653 * @ingroup Evas_Object_Group_Extras
1656 evas_object_static_clip_set(Evas_Object *obj, Eina_Bool is_static_clip)
1658 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
1661 obj->is_static_clip = is_static_clip;
1665 * Get static "clipper" hint flag.
1667 * @see evas_object_static_clip_set()
1669 * @param obj The given object.
1670 * @return The static clip flag (on or off)
1671 * @ingroup Evas_Object_Group_Extras
1674 evas_object_static_clip_get(const Evas_Object *obj)
1676 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
1679 return obj->is_static_clip;