}
else
{
+ __pIndicator->SetWindow(GetRootWindow());
r = SetIndicatorShowState(false);
SetIndicatorAutoHide(false, false);
SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
{
if (pIndicator)
{
+ pIndicator->SetIndicatorOrientation(orientation);
if (orientation == _CONTROL_ORIENTATION_PORTRAIT)
{
pIndicator->SetBounds(FloatRectangle(0.0f, 0.0f, GetClientBoundsF().width, indicatorheight));
{
if (FORM_STYLE_INDICATOR_AUTO_HIDE & GetFormStyle())
{
- adjHeight = 0.0f;
+ indicatorBounds.height = 0.0f;
}
}
}
win = (Ecore_X_Window)__pWindow->GetNativeHandle();
}
- __orientation = orientation;
-
if (orientation == _CONTROL_ORIENTATION_PORTRAIT)
{
ChangeCurrentVisualElement(__pPortraitVisualElement);
}
_VisualElementImpl* pImpl = _VisualElementImpl::GetInstance(*this->__pCurrentVisualElement);
- _EflVisualElementSurfaceImpl* pSurface = dynamic_cast<_EflVisualElementSurfaceImpl*>(_VisualElementSurfaceImpl::GetInstance(*pImpl->GetNativeNode()->GetSurface()));
- Evas_Object* pImageObject = (Evas_Object*)pSurface->GetNativeHandle();
+ Evas_Object* pImageObject = null;
+ if (pImpl)
+ {
+ _EflNode* pNativeNode = dynamic_cast< _EflNode* >(pImpl->GetNativeNode());
+ if (pNativeNode)
+ {
+ VisualElementSurface* pPortraitSurface = pNativeNode->GetSurface();
+ if (pPortraitSurface)
+ {
+ _EflVisualElementSurfaceImpl* pSurface = dynamic_cast<_EflVisualElementSurfaceImpl*>(_VisualElementSurfaceImpl::GetInstance(*pPortraitSurface));
+ if (pSurface)
+ {
+ pImageObject = (Evas_Object*)pSurface->GetNativeHandle();
+ }
+ }
+ }
+ }
- if (!evas_object_repeat_events_get(pImageObject))
- return HIT_TEST_MATCH;
+ if (pImageObject)
+ {
+ if (!evas_object_repeat_events_get(pImageObject))
+ {
+ return HIT_TEST_MATCH;
+ }
+ else
+ {
+ return HIT_TEST_NOWHERE;
+ }
+ }
else
+ {
return HIT_TEST_NOWHERE;
+ }
+}
+
+void
+_Indicator::SetIndicatorOrientation(Tizen::Ui::_ControlOrientation orientation)
+{
+ __orientation = orientation;
+}
+
+void
+_Indicator::SetWindow(_Window* pWindow)
+{
+ __pWindow = pWindow;
}
}}} // Tizen::Ui::Controls
Tizen::Graphics::Rectangle GetIndicatorBounds(void) const;
Tizen::Graphics::FloatRectangle GetIndicatorBoundsF(void) const;
+ void SetIndicatorOrientation(Tizen::Ui::_ControlOrientation orientation);
+ void SetWindow(Tizen::Ui::_Window* pWindow);
+
void OnChangeLayout(_ControlOrientation orientation);
result OnAttachedToMainTree(void);
virtual void OnTimerExpired(Tizen::Base::Runtime::Timer& timer);