pCanvas->DrawLine(FloatPoint(0.0f, outlineBounds.height), FloatPoint(outlineBounds.width, outlineBounds.height));
pCanvas->DrawLine(FloatPoint(outlineBounds.width, outlineBounds.y), FloatPoint(outlineBounds.width, outlineBounds.height));
- pCanvas->DrawLine(FloatPoint(0.0f, outlineBounds.height), FloatPoint(0.0f, bounds.height));
+ pCanvas->DrawLine(FloatPoint(1.0f, outlineBounds.height), FloatPoint(1.0f, bounds.height));
}
else if (selectedIndexOrder == childCount - 1)
{
pCanvas->DrawLine(FloatPoint(0.0f, outlineBounds.y), FloatPoint(outlineBounds.width, outlineBounds.y));
pCanvas->DrawLine(FloatPoint(outlineBounds.width, outlineBounds.y), FloatPoint(outlineBounds.width, bounds.height));
- pCanvas->DrawLine(FloatPoint(0.0f, 0.0f), FloatPoint(0.0f, outlineBounds.y));
+ pCanvas->DrawLine(FloatPoint(1.0f, 0.0f), FloatPoint(1.0f, outlineBounds.y));
}
else if (__viewConfig.__pSelectedIndexlineBitmap)
{
delete pReplacementColorBackgroundBitmap;
- pCanvas->DrawLine(FloatPoint(0.0f, 0.0f), FloatPoint(0.0f, outlineBounds.y));
- pCanvas->DrawLine(FloatPoint(0.0f, (outlineBounds.y + outlineBounds.height)), FloatPoint(0.0f, bounds.height));
+ pCanvas->DrawLine(FloatPoint(1.0f, 0.0f), FloatPoint(1.0f, outlineBounds.y));
+ pCanvas->DrawLine(FloatPoint(1.0f, (outlineBounds.y + outlineBounds.height)), FloatPoint(1.0f, bounds.height));
}
//draw text
{
popupBounds.width = parentBounds.width;
}
-
+
popupBounds.height = __pViewConfig->__popupSize.height;
if (popupBounds.height > parentBounds.height)
{
return GetPresenter().OnTouchMoved(source, touchinfo);
}
+void
+_Scroll::OnTouchMoveHandled(const _Control& control)
+{
+ return GetPresenter().OnTouchMoveHandled(control);
+}
+
HitTestResult
_Scroll::HitTest(const Tizen::Graphics::FloatPoint& point)
{
return E_SUCCESS;
}
+ if (__jumpToTopPressed && visibility == false)
+ {
+ // ignore visibility off
+ return E_SUCCESS;
+ }
+
__pCtrlVe->RemoveAllAnimations();
if (visibility)
{
return ret;
}
+void
+_ScrollPresenter::OnTouchMoveHandled(const _Control& source)
+{
+ if (__jumpToTopPressed)
+ {
+ __needUpdateJumpTopTop = true;
+ __jumpToTopPressed = false;
+ (GetControl().GetVisualElement())->InvalidateRectangle(null);
+ }
+}
+
HitTestResult
_ScrollPresenter::HitTest(const FloatPoint& point)
{
pButtonEfBitmap = __pButtonPressEfBitmap;
buttonBitmapId = L"SCROLL::BUTTON_BG_PRESSED";
}
-
+
if (__jumpToTopPressed)
{
isCustomBitmap = IS_CUSTOM_BITMAP(SCROLL::BUTTON_BG_PRESSED);
{
isCustomBitmap = IS_CUSTOM_BITMAP(SCROLL::BUTTON_BG_NORMAL);
}
-
+
pCanvas = __pJumpToTopVe->GetCanvasN();
SysTryReturnVoidResult(NID_UI_CTRL, pCanvas, GetLastResult(), "Failed to get the canvas of __pJumpToTopVe");
FloatPoint touchedPosition = touchinfo.GetCurrentPosition();
if (jumpToTopBounds.Contains(touchedPosition))
{
- PLAY_FEEDBACK(_RESOURCE_FEEDBACK_PATTERN_TAP);
__needUpdateJumpTopTop = true;
__jumpToTopPressed = true;
+ SetScrollVisibility(true);
(GetControl().GetVisualElement())->InvalidateRectangle(null);
-
- if (__pScrollEvent)
- {
- _UiScrollEventArg* pEventArg = _UiScrollEventArg::GetScrollJumpToTopEventArgN(*__pScrollCtrl);
- SysTryReturn(NID_UI_CTRL, pEventArg, true, GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
-
- __pScrollEvent->Fire(*pEventArg);
- }
-
return true;
}
}
if (__jumpToTopPressed)
{
__needUpdateJumpTopTop = true;
- }
+ __jumpToTopPressed = false;
+ (GetControl().GetVisualElement())->InvalidateRectangle(null);
- __jumpToTopPressed = false;
- (GetControl().GetVisualElement())->InvalidateRectangle(null);
+ if (__pScrollEvent)
+ {
+ PLAY_FEEDBACK(_RESOURCE_FEEDBACK_PATTERN_TAP);
+ _UiScrollEventArg* pEventArg = _UiScrollEventArg::GetScrollJumpToTopEventArgN(*__pScrollCtrl);
+ SysTryReturn(NID_UI_CTRL, pEventArg, true, GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
+
+ __pScrollEvent->Fire(*pEventArg);
+ return true;
+ }
+ }
return false;
}
__jumpToTopPressed = false;
(GetControl().GetVisualElement())->InvalidateRectangle(null);
}
+ return true;
}
return false;
virtual bool OnTouchPressed(const _Control& source, const _TouchInfo& touchinfo);
virtual bool OnTouchReleased(const _Control& source, const _TouchInfo& touchinfo);
virtual bool OnTouchMoved(const _Control& source, const _TouchInfo& touchinfo);
+ virtual void OnTouchMoveHandled(const _Control& control);
virtual Tizen::Ui::Animations::HitTestResult HitTest(const Tizen::Graphics::FloatPoint& point);
private:
bool OnTouchPressed(const _Control& source, const _TouchInfo& touchinfo);
bool OnTouchReleased(const _Control& source, const _TouchInfo& touchinfo);
bool OnTouchMoved(const _Control& source, const _TouchInfo& touchinfo);
+ void OnTouchMoveHandled(const _Control& control);
Tizen::Ui::Animations::HitTestResult HitTest(const Tizen::Graphics::FloatPoint& point);