GetImplementation(window).FeedKeyEvent(convertedEvent);
}
+void FeedHoverEvent(Window window, const Dali::TouchPoint& point)
+{
+ Integration::Point convertedPoint(point);
+ GetImplementation(window).FeedHoverEvent(convertedPoint);
+}
+
void Maximize(Window window, bool maximize)
{
GetImplementation(window).Maximize(maximize);
DALI_ADAPTOR_API void FeedKeyEvent(Window window, const Dali::KeyEvent& keyEvent);
/**
+ * @brief Feed (Send) hover event to window
+ * @param[in] window The window instance
+ * @param[in] point The touch point that create a hover event
+ */
+DALI_ADAPTOR_API void FeedHoverEvent(Window window, const Dali::TouchPoint& point);
+
+/**
* @brief Maximizes window's size.
* If this function is called with true, window will be resized with screen size.
* Otherwise window will be resized with previous size.
mAdaptor->ProcessCoreEvents();
}
+void SceneHolder::FeedHoverEvent(Dali::Integration::Point& point)
+{
+ Integration::HoverEvent hoverEvent;
+
+ // Signals can be emitted while processing core events, and the scene holder could be deleted in the signal callback.
+ // Keep the handle alive until the core events are processed.
+ Dali::BaseHandle sceneHolder(this);
+
+ // Create send HoverEvent to Core.
+ hoverEvent.time = TimeService::GetMilliSeconds();
+ hoverEvent.AddPoint(point);
+
+ mScene.QueueEvent(hoverEvent);
+ mAdaptor->ProcessCoreEvents();
+}
+
void SceneHolder::AddFrameRenderedCallback(std::unique_ptr<CallbackBase> callback, int32_t frameId)
{
mScene.AddFrameRenderedCallback(std::move(callback), frameId);
void FeedKeyEvent(Dali::Integration::KeyEvent& keyEvent);
/**
+ * @copydoc Dali::Integration::SceneHolder::FeedHoverEvent
+ */
+ void FeedHoverEvent(Dali::Integration::Point& point);
+
+ /**
* @brief Adds a callback that is called when the frame rendering is done by the graphics driver.
*
* @param[in] callback The function to call
GetImplementation(*this).FeedKeyEvent(event);
}
+void SceneHolder::FeedHoverEvent(Dali::TouchPoint& point)
+{
+ Integration::Point convertedPoint(point);
+ GetImplementation(*this).FeedHoverEvent(convertedPoint);
+}
+
RenderTaskList SceneHolder::GetRenderTaskList()
{
return GetImplementation(*this).GetRenderTaskList();
void FeedKeyEvent(Dali::KeyEvent& keyEvent);
/**
+ * @brief Feed (Send) hover event to core
+ * @param[in] point The touch point that create a hover event
+ */
+ void FeedHoverEvent(Dali::TouchPoint& point);
+
+ /**
* @brief Retrieves the list of render-tasks.
* @return A valid handle to a RenderTaskList
*/