2 * Copyright 2012 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.tizenopensource.org/license
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include <supplement.h>
21 static void _bundle_iterate_dump_cb(const char *k, const char *v, void *data)
23 LOGD("%s -> %s\n", k, v);
26 void bundle_dump(bundle *b)
29 bundle_iterate(b, _bundle_iterate_dump_cb, NULL);
33 Eina_Bool bundle_key_check(bundle *b, const char *key, const char *val)
35 const char *str = bundle_get_val(b, key);
37 if (strcmp(str, val) == 0) {
44 void evas_object_geometry_dump(Evas_Object *eo)
46 Evas_Coord x, y, w, h;
47 evas_object_geometry_get(eo, &x, &y, &w, &h);
48 LOGD("[evas_object_geometry_dump] geometry of %x : %d %d %d %d\n", eo, x, y, w, h);
51 void evas_object_event_hit(void *data, Evas *e, Evas_Object *obj, void *event_info)
53 LOGD("[%s] %x : %s\n", __func__, obj, (char *)data);
56 void evas_object_smart_event_hit(void *data, Evas_Object *obj, void *event_info)
58 LOGD("[%s] %x : %s\n", __func__, obj, (char *)data);
61 typedef struct __rf_data_t {
66 static void _render_flush_post_cb(void *data, Evas *e, void *event_info)
68 rf_data_t *rf = (rf_data_t *)data;
69 rf->cb(rf->data, NULL, NULL);
70 evas_event_callback_del(e, EVAS_CALLBACK_RENDER_FLUSH_POST, _render_flush_post_cb);
74 void evas_object_render_flush_hook(Evas_Object *obj, Evas_Smart_Cb cb, void *data)
77 Evas *e = evas_object_evas_get(obj);
78 rf_data_t *rf = SMALLOC(rf_data_t);
82 evas_event_callback_add(e, EVAS_CALLBACK_RENDER_FLUSH_POST, _render_flush_post_cb, rf);