, _needAsyncVisibilityChangeRequest(true)
, _isMainType(true)
, _needRender(true)
+ , __isWinObject(true)
{
_countOfLayer++;
}
, _needAsyncVisibilityChangeRequest(true)
, _isMainType(isMainType)
, _needRender(true)
+ , __isWinObject(true)
{
_countOfLayer++;
}
result
_EflLayer::Initialize(Evas_Object* pWindow)
{
+ const char* pType = null;
+
_pWindow = pWindow;
SysTryCatch(NID_UI, _pWindow, , E_SYSTEM, "[E_SYSTEM] A system error has been occurred.");
_pEvas = evas_object_evas_get(_pWindow);
_pEcoreEvas = ecore_evas_ecore_evas_get(_pEvas);
SysTryCatch(NID_UI, _pEcoreEvas, , E_SYSTEM, "[E_SYSTEM] A system error has been occurred.");
+ pType = evas_object_type_get(_pWindow);
+ if (strcmp("elm_win", pType))
+ {
+ __isWinObject = false;
+ }
+
// CHECK ME: Is this needed for GL mode?
#ifdef _NEED_DAMAGE_HANDER_
if(_pOnWindowDamagedHandler == null)
int h = 0;
evas_object_geometry_get(_pWindow, null, null, &w, &h);
- elm_win_screen_position_get(_pWindow, &x, &y);
+
+ if (__isWinObject == true)
+ {
+ elm_win_screen_position_get(_pWindow, &x, &y);
+ }
return FloatRectangle(x, y, w, h);
}
if (_FloatCompare(opacity, 1.0f))
{
// ecore_evas_alpha_set(_pEcoreEvas, EINA_FALSE);
- elm_win_alpha_set(_pWindow, EINA_FALSE);
+ if (__isWinObject == true)
+ {
+ elm_win_alpha_set(_pWindow, EINA_FALSE);
+ }
+
int r,g,b,a;
evas_object_color_get(_pWindow, &r, &g, &b, &a);
evas_object_color_set(_pWindow, r, g, b, 255);
{
// ecore_evas_alpha_set(_pEcoreEvas, EINA_TRUE);
- elm_win_alpha_set(_pWindow, EINA_TRUE);
+ if (__isWinObject == true)
+ {
+ elm_win_alpha_set(_pWindow, EINA_TRUE);
+ }
int r,g,b,a;
evas_object_color_get(_pWindow, &r, &g, &b, &a);