#include <dali/public-api/dali-core.h>
#include <dali/integration-api/events/hover-event-integ.h>
#include <dali/integration-api/render-task-list-integ.h>
+#include <dali/devel-api/events/hover-event-devel.h>
#include <dali-test-suite-utils.h>
using namespace Dali;
END_TEST;
}
+
+int UtcDaliHoverEventCreate(void)
+{
+ TestApplication application;
+
+ Dali::HoverEvent hoverEvent = DevelHoverEvent::New( 100 );
+ DALI_TEST_CHECK( hoverEvent );
+
+ // Emit a started signal
+ DALI_TEST_EQUALS( 100, hoverEvent.GetTime(), TEST_LOCATION );
+ DALI_TEST_EQUALS( 0, hoverEvent.GetPointCount(), TEST_LOCATION );
+
+ END_TEST;
+}
+
--- /dev/null
+/*\r
+ * Copyright (c) 2020 Samsung Electronics Co., Ltd.\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ *\r
+ */\r
+\r
+// INTERNAL INCLUDES\r
+#include <dali/devel-api/events/hover-event-devel.h>\r
+#include <dali/internal/event/events/hover-event-impl.h>\r
+\r
+namespace Dali\r
+{\r
+\r
+namespace DevelHoverEvent\r
+{\r
+\r
+HoverEvent New( uint32_t time )\r
+{\r
+ return HoverEvent( new Internal::HoverEvent( time ) );\r
+}\r
+\r
+} // namespace DevelHoverEvent\r
+\r
+} // namespace Dali\r
+\r
--- /dev/null
+#ifndef DALI_HOVER_EVENT_DEVEL_H\r
+#define DALI_HOVER_EVENT_DEVEL_H\r
+\r
+/*\r
+ * Copyright (c) 2020 Samsung Electronics Co., Ltd.\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ *\r
+ */\r
+\r
+// INTERNAL INCLUDES\r
+#include <dali/public-api/events/hover-event.h>\r
+\r
+namespace Dali\r
+{\r
+\r
+namespace DevelHoverEvent\r
+{\r
+\r
+/**\r
+ * @brief Creates an initialized HoverEvent.\r
+ *\r
+ * @SINCE_1_9.28\r
+ * @param[in] time The time the event occurred.\r
+ * @return A handle to a newly allocated Dali resource\r
+ */\r
+DALI_CORE_API HoverEvent New( uint32_t time );\r
+\r
+\r
+} // namespace DevelHoverEvent\r
+\r
+} // namespace Dali\r
+\r
+#endif // DALI_HOVER_EVENT_DEVEL_H\r
${devel_api_src_dir}/common/stage-devel.cpp
${devel_api_src_dir}/common/stage.cpp
${devel_api_src_dir}/events/hit-test-algorithm.cpp
+ ${devel_api_src_dir}/events/hover-event-devel.cpp
${devel_api_src_dir}/events/key-event-devel.cpp
${devel_api_src_dir}/events/long-press-gesture-detector-devel.cpp
${devel_api_src_dir}/events/pan-gesture-devel.cpp
SET( devel_api_core_events_header_files
${devel_api_src_dir}/events/hit-test-algorithm.h
+ ${devel_api_src_dir}/events/hover-event-devel.h
${devel_api_src_dir}/events/key-event-devel.h
${devel_api_src_dir}/events/long-press-gesture-detector-devel.h
${devel_api_src_dir}/events/pan-gesture-devel.h