float indicatorheight = 0.0f;
GET_SHAPE_CONFIG(FORM::INDICATOR_HEIGHT, GetCore().GetOrientation(), indicatorheight);
+ _Indicator* pIndicator = GetCore().GetIndicator();
if (GetCore().HasIndicator())
{
- _Indicator* pIndicator = GetCore().GetIndicator();
if (pIndicator)
{
if (orientation == _CONTROL_ORIENTATION_PORTRAIT)
pIndicator->SetBounds(FloatRectangle(0.0f, 0.0f, GetClientBoundsF().width, indicatorheight));
}
}
- pIndicator->OnChangeLayout(orientation);
GetCore().AdjustClientBounds();
}
+ if (pIndicator)
+ {
+ pIndicator->OnChangeLayout(orientation);
+ }
float adjHeight = 0.0f;
r = pIndicator->ConstructControlVisualElement();
SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
- pIndicator->SetSurfaceOpaque(false);
- pIndicator->SetOpacity(1.0f);
-
pIndicator->SetBackgroundColor(_Colorf((float)bgColor.GetRed() / 255.0f, (float)bgColor.GetGreen() / 255.0f, (float)bgColor.GetBlue() / 255.0f, (float)bgColor.GetAlpha() / 255.0f));
return pIndicator;
, __pWindow(null)
, __showstate(false)
, __opacity(_INDICATOR_OPACITY_OPAQUE)
+ , __orientation(_CONTROL_ORIENTATION_PORTRAIT)
{
}
}
else if (opacity == _INDICATOR_OPACITY_TRANSLUCENT)
{
- _ControlOrientation orientation = __pWindow->GetOrientation();
-
- if (orientation == _CONTROL_ORIENTATION_PORTRAIT)
+ if (__orientation == _CONTROL_ORIENTATION_PORTRAIT)
{
Color bgColor(0x7f000000);
SetBackgroundColor(_Colorf((float)bgColor.GetRed() / 255.0f, (float)bgColor.GetGreen() / 255.0f, (float)bgColor.GetBlue() / 255.0f, (float)bgColor.GetAlpha() / 255.0f));
ChangeCurrentVisualElement(__pLandscapeVisualElement);
SetClipChildrenEnabled(false);
}
+ __orientation = orientation;
SetIndicatorOpacity(__opacity);
_EcoreEvas* pEcoreEvas = GetEcoreEvasMgr()->GetEcoreEvas();
{
IndicatorTypeMode *pIndicatorTypeMode = (IndicatorTypeMode*)(data);
- _Window* pWindow = _ControlManager::GetInstance()->_ControlManager::GetCurrentFrame();
+ _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();
Tizen::Graphics::Rectangle GetIndicatorBounds(void) const;
Tizen::Graphics::FloatRectangle GetIndicatorBoundsF(void) const;
- virtual void OnChangeLayout(_ControlOrientation orientation);
- virtual result OnAttachedToMainTree(void);
+ void OnChangeLayout(_ControlOrientation orientation);
+ result OnAttachedToMainTree(void);
virtual void OnTimerExpired(Tizen::Base::Runtime::Timer& timer);
static void OnDisconnected(Ecore_Evas *pEe);
static void OnMessageHandle(Ecore_Evas *pEe, int msgDomain, int msgId, void *data, int size);
_Window* __pWindow;
bool __showstate;
_IndicatorOpacity __opacity;
+ Tizen::Ui::_ControlOrientation __orientation;
}; // _Indicator