static void _conformant_part_sizing_eval(Evas_Object *obj, Conformant_Part_Type part_type) { #ifdef HAVE_ELEMENTARY_X Ecore_X_Window zone = 0; Evas_Object *top; Ecore_X_Window xwin; #endif int sx = -1, sy = -1, sw = -1, sh = -1; ELM_CONFORMANT_DATA_GET(obj, sd); #ifdef HAVE_ELEMENTARY_X top = elm_widget_top_get(obj); xwin = elm_win_xwindow_get(top); if (xwin) zone = ecore_x_e_illume_zone_get(xwin); #endif if (part_type & ELM_CONFORMANT_INDICATOR_PART) { #ifdef HAVE_ELEMENTARY_X if ((!_conformant_part_geometry_get_from_env ("ILLUME_IND", &sx, &sy, &sw, &sh)) && (xwin)) { //No information of the indicator geometry, reset the geometry. if ((!zone) || (!ecore_x_e_illume_indicator_geometry_get (zone, &sx, &sy, &sw, &sh))) sx = sy = sw = sh = 0; } #endif if (((sd->rot == 90) || (sd->rot == 270)) && sd->landscape_indicator) _conformant_part_size_hints_set(obj, sd->landscape_indicator, sx, sy, sw, sh); else if (((sd->rot == 0) || (sd->rot == 180)) && sd->portrait_indicator) _conformant_part_size_hints_set(obj, sd->portrait_indicator, sx, sy, sw, sh); } if (part_type & ELM_CONFORMANT_VIRTUAL_KEYPAD_PART) { #ifdef HAVE_ELEMENTARY_X if ((!_conformant_part_geometry_get_from_env ("ILLUME_KBD", &sx, &sy, &sw, &sh)) && (xwin)) { //No information of the keyboard geometry, reset the geometry. #ifdef __linux__ DBG("[KEYPAD]:pid=%d, xwin=0x%x, zone=0x%x: no env value and check window property.", getpid(), xwin, zone); #endif if (!ecore_x_e_illume_keyboard_geometry_get(xwin, &sx, &sy, &sw, &sh)) { DBG("[KEYPAD]:no window property, check zone property."); if ((!zone) || (!ecore_x_e_illume_keyboard_geometry_get(zone, &sx, &sy, &sw, &sh))) { DBG("[KEYPAD]:no zone property, reset value."); sx = sy = sw = sh = 0; } } } #endif DBG("[KEYPAD]: size(%d,%d, %dx%d).", sx, sy, sw, sh); _conformant_part_size_hints_set (obj, sd->virtualkeypad, sx, sy, sw, sh); } if (part_type & ELM_CONFORMANT_SOFTKEY_PART) { #ifdef HAVE_ELEMENTARY_X if ((!_conformant_part_geometry_get_from_env ("ILLUME_STK", &sx, &sy, &sw, &sh)) && (xwin)) { //No information of the softkey geometry, reset the geometry. if ((!zone) || (!ecore_x_e_illume_softkey_geometry_get (zone, &sx, &sy, &sw, &sh))) sx = sy = sw = sh = 0; } #endif _conformant_part_size_hints_set(obj, sd->softkey, sx, sy, sw, sh); } if (part_type & ELM_CONFORMANT_CLIPBOARD_PART) { #ifdef HAVE_ELEMENTARY_X if ((!_conformant_part_geometry_get_from_env ("ILLUME_CB", &sx, &sy, &sw, &sh)) && (xwin)) { //No information of the clipboard geometry, reset the geometry. if ((!zone) || (!ecore_x_e_illume_clipboard_geometry_get (zone, &sx, &sy, &sw, &sh))) sx = sy = sw = sh = 0; } #endif _conformant_part_size_hints_set(obj, sd->clipboard, sx, sy, sw, sh); } }
static void _conformant_part_sizing_eval(Evas_Object *obj, Conformant_Part_Type part_type) { #ifdef HAVE_ELEMENTARY_X Ecore_X_Window zone = 0; Evas_Object *top; #endif int sx = -1, sy = -1, sw = -1, sh = -1; Ecore_X_Window xwin; ELM_CONFORMANT_DATA_GET(obj, sd); #ifdef HAVE_ELEMENTARY_X top = elm_widget_top_get(obj); xwin = elm_win_xwindow_get(top); if (xwin) zone = ecore_x_e_illume_zone_get(xwin); #endif if (part_type & ELM_CONFORMANT_INDICATOR_PART) { if ((!_conformant_part_geometry_get_from_env ("ILLUME_IND", &sx, &sy, &sw, &sh)) && (xwin)) { #ifdef HAVE_ELEMENTARY_X //No information of the indicator geometry, reset the geometry. if (!ecore_x_e_illume_indicator_geometry_get (zone, &sx, &sy, &sw, &sh)) sx = sy = sw = sh = 0; #else ; #endif } _conformant_part_size_hints_set(obj, sd->indicator, sx, sy, sw, sh); } if (part_type & ELM_CONFORMANT_VIRTUAL_KEYPAD_PART) { if ((!_conformant_part_geometry_get_from_env ("ILLUME_KBD", &sx, &sy, &sw, &sh)) && (xwin)) { #ifdef HAVE_ELEMENTARY_X //No information of the keyboard geometry, reset the geometry. if (!ecore_x_e_illume_keyboard_geometry_get (zone, &sx, &sy, &sw, &sh)) sx = sy = sw = sh = 0; #else ; #endif } _conformant_part_size_hints_set (obj, sd->virtualkeypad, sx, sy, sw, sh); } if (part_type & ELM_CONFORMANT_SOFTKEY_PART) { if ((!_conformant_part_geometry_get_from_env ("ILLUME_STK", &sx, &sy, &sw, &sh)) && (xwin)) { #ifdef HAVE_ELEMENTARY_X //No information of the softkey geometry, reset the geometry. if (!ecore_x_e_illume_softkey_geometry_get (zone, &sx, &sy, &sw, &sh)) sx = sy = sw = sh = 0; #else ; #endif } _conformant_part_size_hints_set(obj, sd->softkey, sx, sy, sw, sh); } if (part_type & ELM_CONFORMANT_CLIPBOARD_PART) { if ((!_conformant_part_geometry_get_from_env ("ILLUME_CB", &sx, &sy, &sw, &sh)) && (xwin)) { #ifdef HAVE_ELEMENTARY_X //No information of the clipboard geometry, reset the geometry. if (!ecore_x_e_illume_clipboard_geometry_get (zone, &sx, &sy, &sw, &sh)) sx = sy = sw = sh = 0; #else ; #endif } _conformant_part_size_hints_set(obj, sd->clipboard, sx, sy, sw, sh); } }