}
END_TEST;
}
+
+int UtcDaliWindowGetLastPanGestureState(void)
+{
+ try
+ {
+ Dali::Window arg1;
+ DevelWindow::GetLastPanGestureState(arg1);
+ DALI_TEST_CHECK(false); // Should not get here
+ }
+ catch(...)
+ {
+ DALI_TEST_CHECK(true); // We expect an assert
+ }
+ END_TEST;
+}
return GetImplementation(window).GetLastHoverEvent();
}
+GestureState GetLastPanGestureState(Window window)
+{
+ return GetImplementation(window).GetLastPanGestureState();
+}
+
bool PointerConstraintsLock(Window window)
{
return GetImplementation(window).PointerConstraintsLock();
// EXTERNAL INCLUDES
#include <memory>
+#include <dali/public-api/events/gesture-enumerations.h>
// INTERNAL INCLUDES
#include <dali/devel-api/adaptor-framework/mouse-in-out-event.h>
DALI_ADAPTOR_API const HoverEvent& GetLastHoverEvent(Window window);
/**
+ * @brief Gets the last pan gesture state the window gets.
+ *
+ * @param[in] window The window instance.
+ * @return The last pan gesture state the window gets.
+ */
+DALI_ADAPTOR_API GestureState GetLastPanGestureState(Window window);
+
+/**
* @brief Sets the pointer constraints lock.
*
* @param[in] window The window instance.
return mLastHoverEvent;
}
+Dali::GestureState SceneHolder::GetLastPanGestureState()
+{
+ if(DALI_UNLIKELY(!mAdaptorStarted))
+ {
+ DALI_LOG_ERROR("Adaptor is stopped, or not be started yet. Ignore this GetLastPanGestureState.\n");
+ return Dali::GestureState::CLEAR;
+ }
+
+ return mScene.GetLastPanGestureState();
+}
+
void SceneHolder::FeedWheelEvent(Dali::Integration::WheelEvent& wheelEvent)
{
if(DALI_UNLIKELY(!mAdaptorStarted))
#include <dali/public-api/common/intrusive-ptr.h>
#include <dali/public-api/events/hover-event.h>
#include <dali/public-api/events/touch-event.h>
+#include <dali/public-api/events/gesture-enumerations.h>
#include <dali/public-api/math/uint-16-pair.h>
#include <dali/public-api/object/base-object.h>
#include <atomic>
const Dali::HoverEvent& GetLastHoverEvent() const;
/**
+ * @brief Gets the last pan gesture state
+ *
+ * @return Dali::GestureState
+ */
+ Dali::GestureState GetLastPanGestureState();
+
+ /**
* @copydoc Dali::Integration::SceneHolder::FeedWheelEvent
*/
void FeedWheelEvent(Dali::Integration::WheelEvent& wheelEvent);