/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
// CLASS HEADER
#include <dali/public-api/events/gesture.h>
+// INTERNAL INCLUDES
+#include <dali/internal/event/events/gesture-impl.h>
+
namespace Dali
{
+Gesture::Gesture() = default;
+
+Gesture::Gesture(Internal::Gesture* internal)
+: BaseHandle(internal)
+{
+}
+
+Gesture::Gesture(const Gesture& rhs) = default;
+
+Gesture::Gesture(Gesture&& rhs)noexcept = default;
+
+Gesture& Gesture::operator=(const Gesture& rhs) = default;
+
+Gesture& Gesture::operator=(Gesture&& rhs)noexcept = default;
+
+Gesture::~Gesture() = default;
+
+GestureType::Value Gesture::GetType() const
+{
+ return GetImplementation(*this).GetType();
+}
-Gesture::Gesture( const Gesture& rhs )
-: type(rhs.type),
- state(rhs.state),
- time(rhs.time)
+GestureState Gesture::GetState() const
{
+ return GetImplementation(*this).GetState();
}
-Gesture& Gesture::operator=( const Gesture& rhs )
+uint32_t Gesture::GetTime() const
{
- if( this != &rhs )
- {
- type = rhs.type;
- state = rhs.state;
- time = rhs.time;
- }
-
- return *this;
+ return GetImplementation(*this).GetTime();
}
-Gesture::~Gesture()
+GestureSourceType Gesture::GetSourceType() const
{
+ return GetImplementation(*this).GetSourceType();
}
-Gesture::Gesture(Type gestureType, State gestureState)
-: type(gestureType),
- state(gestureState),
- time(0)
+GestureSourceData Gesture::GetSourceData() const
{
+ return GetImplementation(*this).GetSourceData();
}
} // namespace Dali