add function for printing debug info on an evas object

This commit is contained in:
Mike Blumenkrantz 2017-02-24 14:15:42 -05:00
parent e33c01cdce
commit e7c2d30a85
2 changed files with 9 additions and 2 deletions

View File

@ -1049,8 +1049,8 @@ _e_util_size_debug_stack(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Objec
fprintf(stderr, "RESTACK %s %d OBJ[%s%s%p]: (%d,%d) - %dx%d\n", evas_object_visible_get(obj) ? "VIS" : "HID", evas_object_layer_get(obj), name ?: "", name ? "|" : "", obj, x, y, w, h);
}
static void
_e_util_size_debug(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
E_API void
e_util_size_debug(Evas_Object *obj)
{
int x, y, w, h;
const char *name;
@ -1060,6 +1060,12 @@ _e_util_size_debug(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj
fprintf(stderr, "%s %d OBJ[%s%s%p]: (%d,%d) - %dx%d\n", evas_object_visible_get(obj) ? "VIS" : "HID", evas_object_layer_get(obj), name ?: "", name ? "|" : "", obj, x, y, w, h);
}
static void
_e_util_size_debug(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
{
e_util_size_debug(obj);
}
E_API void
e_util_size_debug_set(Evas_Object *obj, Eina_Bool enable)
{

View File

@ -50,6 +50,7 @@ E_API E_Config_Binding_Key *e_util_binding_match(const Eina_List *bindlist, Ecor
E_API Eina_Bool e_util_fullscreen_current_any(void);
E_API Eina_Bool e_util_fullscreen_any(void);
E_API const char *e_util_time_str_get(long int seconds);
E_API void e_util_size_debug(Evas_Object *obj);
E_API void e_util_size_debug_set(Evas_Object *obj, Eina_Bool enable);
E_API Efreet_Desktop *e_util_terminal_desktop_get(void);
E_API void e_util_gadcon_orient_icon_set(E_Gadcon_Orient orient, Evas_Object *obj);