, __public(impl.GetPublic())
, __pTimer(null)
, __isKeyPressed(false)
- , __pKeyInfo(null)
+ , __keyInfo(KEY_PRESSED, _KEY_INVALID, 0, null)
{
}
{
SysTryReturnVoidResult(NID_UI, __impl.__pCoreKeyEvent, E_SYSTEM, "[E_SYSTEM] System error occurred.");
- __impl.__pCoreKeyEvent->ProcessListener(KEY_LONGPRESSED, __pKeyInfo->GetKeyCode());
+ __impl.__pCoreKeyEvent->ProcessListener(KEY_LONGPRESSED, __keyInfo.GetKeyCode());
}
}
if (r == E_SUCCESS)
{
__isKeyPressed = true;
- __pKeyInfo = const_cast<_KeyInfo*>(&keyInfo);
+ __keyInfo = keyInfo;
}
}
if (&source == &__core)
{
__isKeyPressed = false;
- __pKeyInfo = null;
if (__pTimer != null)
{
Tizen::Base::Runtime::Timer* __pTimer;
bool __isKeyPressed;
- _KeyInfo* __pKeyInfo;
+ _KeyInfo __keyInfo;
};
Rectangle
_Control* pCapturedControl = pTouchManager->GetCapturedControl();
_Control* pControl = null;
+ _ControlManager* pControlManager = _ControlManager::GetInstance();
+ SysTryReturn(NID_UI, pControlManager, null, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
+
+ Tizen::Graphics::FloatPoint ptf(static_cast<float>(x), static_cast<float>(y));
+
+ _ControlVisualElement* pRootControlElement = null;
+ if (pRootControl)
+ {
+ pRootControlElement = dynamic_cast<_ControlVisualElement*>(pRootControl->GetVisualElement());
+ }
+ else
+ {
+ _Window* pWindow = null;
+ pWindow = pControlManager->GetTouchedWindow();
+ SysTryReturn(NID_UI, pWindow, null, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
+
+ Rectangle winBounds = pWindow->GetBounds();
+
+ ptf.x = static_cast<float>(x - winBounds.x);
+ ptf.y = static_cast<float>(y - winBounds.y);
+
+ pRootControlElement = dynamic_cast <_ControlVisualElement*>(pWindow->GetVisualElement());
+ }
+
+ SysTryReturn(NID_UI, pRootControlElement, null, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
+
+ _ControlVisualElement* pControlVisualElement = pRootControlElement->GetControlChildAtPoint(ptf);
+ SysTryReturn(NID_UI, pControlVisualElement, null, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
+
+ pControl = static_cast <_Control*>(pControlVisualElement->GetUserData());
+ SysTryReturn(NID_UI, pControl, null, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
+
if (pCapturedControl)
{
if (pTouchManager->IsCaptureAllowedOwnerBounds())
}
}
- _ControlManager* pControlManager = _ControlManager::GetInstance();
- SysTryReturn(NID_UI, pControlManager, null, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
-
- Tizen::Graphics::FloatPoint ptf(static_cast<float>(x), static_cast<float>(y));
-
- _ControlVisualElement* pRootControlElement = null;
- if (pRootControl)
- {
- pRootControlElement = dynamic_cast<_ControlVisualElement*>(pRootControl->GetVisualElement());
- }
- else
- {
- _Window* pWindow = null;
- pWindow = pControlManager->GetTouchedWindow();
- SysTryReturn(NID_UI, pWindow, null, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
-
- Rectangle winBounds = pWindow->GetBounds();
-
- ptf.x = static_cast<float>(x - winBounds.x);
- ptf.y = static_cast<float>(y - winBounds.y);
-
- pRootControlElement = dynamic_cast <_ControlVisualElement*>(pWindow->GetVisualElement());
- }
-
- SysTryReturn(NID_UI, pRootControlElement, null, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
-
- _ControlVisualElement* pControlVisualElement = pRootControlElement->GetControlChildAtPoint(ptf);
- SysTryReturn(NID_UI, pControlVisualElement, null, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
-
- pControl = static_cast <_Control*>(pControlVisualElement->GetUserData());
- SysTryReturn(NID_UI, pControl, null, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
-
return pControl;
}