ecore_evas_callback_msg_handle_set(pPortraitEe, _Indicator::OnMessageHandle);
ecore_evas_callback_msg_handle_set(pLandscapeEe, _Indicator::OnMessageHandle);
- _EcoreEvas* pEcoreEvas = GetEcoreEvasMgr()->GetEcoreEvas();
- int rotation = 0;
- if (pEcoreEvas && __pWindow)
- {
- rotation = pEcoreEvas->GetWindowRotation(*__pWindow);
- }
-
- if(rotation == 0 || rotation == 180)
- {
- ecore_evas_msg_parent_send(pPortraitEe, MSG_DOMAIN_CONTROL_INDICATOR, MSG_ID_INDICATOR_ROTATION, &rotation, sizeof(int));
- }
- else
- {
- ecore_evas_msg_parent_send(pLandscapeEe, MSG_DOMAIN_CONTROL_INDICATOR, MSG_ID_INDICATOR_ROTATION, &rotation, sizeof(int));
- }
-
return r;
}
ecore_x_e_illume_indicator_opacity_set(win, ECORE_X_ILLUME_INDICATOR_OPAQUE);
}
}
-
- _EcoreEvas* pEcoreEvas = GetEcoreEvasMgr()->GetEcoreEvas();
- int rotation = 0;
- Ecore_Evas *pPortraitEe = ecore_evas_object_ecore_evas_get(__pPortraitIndicatorEvasObject);
- SysTryReturnVoidResult(NID_UI_CTRL, pPortraitEe, E_SYSTEM, "[E_SYSTEM] Unable to get evas.");
- Ecore_Evas *pLandscapeEe = ecore_evas_object_ecore_evas_get(__pLandscapeIndicatorEvasObject);
- SysTryReturnVoidResult(NID_UI_CTRL, pLandscapeEe, E_SYSTEM, "[E_SYSTEM] Unable to get evas.");
-
- if (pEcoreEvas && __pWindow)
- {
- rotation = pEcoreEvas->GetWindowRotation(*__pWindow);
- }
-
- if(rotation == 0 || rotation == 180)
- {
- ecore_evas_msg_parent_send(pPortraitEe, MSG_DOMAIN_CONTROL_INDICATOR, MSG_ID_INDICATOR_ROTATION, &rotation, sizeof(int));
- }
- else
- {
- ecore_evas_msg_parent_send(pLandscapeEe, MSG_DOMAIN_CONTROL_INDICATOR, MSG_ID_INDICATOR_ROTATION, &rotation, sizeof(int));
- }
}
result
}
}
}
-
- if (msgId == MSG_ID_INDICATOR_TYPE)
- {
- _IndicatorTypeMode *pIndicatorTypeMode = (_IndicatorTypeMode*)(data);
-
- _Window* pWindow = _ControlManager::GetInstance()->_ControlManager::GetTopVisibleWindow();
- SysTryReturnVoidResult(NID_UI_CTRL, pWindow, E_INVALID_STATE, "[E_INVALID_STATE] Indicator is not attached main tree.");
-
- Ecore_X_Window win = (Ecore_X_Window)pWindow->GetNativeHandle();
-
- if (*pIndicatorTypeMode == _INDICATOR_TYPE_1)
- {
- ecore_x_e_illume_indicator_type_set(win, ECORE_X_ILLUME_INDICATOR_TYPE_1);
- }
- else if (*pIndicatorTypeMode == _INDICATOR_TYPE_2)
- {
- ecore_x_e_illume_indicator_type_set (win, ECORE_X_ILLUME_INDICATOR_TYPE_2);
- }
- }
}
}