/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 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.
#include <dali/public-api/events/hover-event.h>
// INTERNAL INCLUDES
-#include <dali/public-api/common/dali-common.h>
+#include <dali/internal/event/events/hover-event-impl.h>
+#include <dali/public-api/actors/actor.h>
namespace Dali
{
-
HoverEvent::HoverEvent()
-: time(0)
+: BaseHandle()
+{
+}
+
+HoverEvent::HoverEvent(const HoverEvent& rhs) = default;
+
+HoverEvent::HoverEvent(HoverEvent&& rhs) noexcept = default;
+
+HoverEvent::~HoverEvent() = default;
+
+HoverEvent& HoverEvent::operator=(const HoverEvent& rhs) = default;
+
+HoverEvent& HoverEvent::operator=(HoverEvent&& rhs) noexcept = default;
+
+unsigned long HoverEvent::GetTime() const
+{
+ return GetImplementation(*this).GetTime();
+}
+
+std::size_t HoverEvent::GetPointCount() const
+{
+ return GetImplementation(*this).GetPointCount();
+}
+
+int32_t HoverEvent::GetDeviceId(std::size_t point) const
+{
+ return GetImplementation(*this).GetDeviceId(point);
+}
+
+PointState::Type HoverEvent::GetState(std::size_t point) const
{
+ return GetImplementation(*this).GetState(point);
}
-HoverEvent::HoverEvent(unsigned long time)
-: time(time)
+Actor HoverEvent::GetHitActor(std::size_t point) const
{
+ return GetImplementation(*this).GetHitActor(point);
}
-HoverEvent::~HoverEvent()
+const Vector2& HoverEvent::GetLocalPosition(std::size_t point) const
{
+ return GetImplementation(*this).GetLocalPosition(point);
}
-unsigned int HoverEvent::GetPointCount() const
+const Vector2& HoverEvent::GetScreenPosition(std::size_t point) const
{
- return points.size();
+ return GetImplementation(*this).GetScreenPosition(point);
}
-const TouchPoint& HoverEvent::GetPoint(unsigned int point) const
+HoverEvent::HoverEvent(Internal::HoverEvent* internal)
+: BaseHandle(internal)
{
- DALI_ASSERT_ALWAYS( point < points.size() && "No point at index" );
- return points[point];
}
} // namespace Dali