application.ProcessEvent( touchEvent );
TouchData data = handleData.touchData;
- DALI_TEST_EQUALS( data.GetMouseButton( 0 ), MouseButton::SECONDARY, TEST_LOCATION );
+ DALI_TEST_EQUALS( DevelTouchData::GetMouseButton( data, 0 ), MouseButton::SECONDARY, TEST_LOCATION );
END_TEST;
}
application.ProcessEvent( touchEvent );
TouchData data = handleData.touchData;
- DALI_TEST_EQUALS( data.GetMouseButton( 0 ), MouseButton::TERTIARY, TEST_LOCATION );
- DALI_TEST_EQUALS( data.GetMouseButton( 3 ), MouseButton::INVALID, TEST_LOCATION );
+ DALI_TEST_EQUALS( DevelTouchData::GetMouseButton( data, 0 ), MouseButton::TERTIARY, TEST_LOCATION );
+ DALI_TEST_EQUALS( DevelTouchData::GetMouseButton( data, 3 ), MouseButton::INVALID, TEST_LOCATION );
END_TEST;
}
${CMAKE_CURRENT_SOURCE_DIR}/common/hash.cpp
${CMAKE_CURRENT_SOURCE_DIR}/common/stage-devel.cpp
${CMAKE_CURRENT_SOURCE_DIR}/events/hit-test-algorithm.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/events/touch-data-devel.cpp
${CMAKE_CURRENT_SOURCE_DIR}/images/distance-field.cpp
${CMAKE_CURRENT_SOURCE_DIR}/images/texture-set-image.cpp
${CMAKE_CURRENT_SOURCE_DIR}/images/nine-patch-image.cpp
${CMAKE_CURRENT_SOURCE_DIR}/common/stage-devel.h
${CMAKE_CURRENT_SOURCE_DIR}/events/hit-test-algorithm.h
+ ${CMAKE_CURRENT_SOURCE_DIR}/events/touch-data-devel.h
+ ${CMAKE_CURRENT_SOURCE_DIR}/events/mouse-button.h
${CMAKE_CURRENT_SOURCE_DIR}/images/distance-field.h
${CMAKE_CURRENT_SOURCE_DIR}/images/native-image-interface-extension.h
--- /dev/null
+/*\r
+ * Copyright (c) 2018 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/touch-data-devel.h>\r
+#include <dali/internal/event/events/touch-data-impl.h>\r
+\r
+namespace Dali\r
+{\r
+\r
+namespace DevelTouchData\r
+{\r
+\r
+MouseButton::Type GetMouseButton( TouchData touchData, std::size_t point )\r
+{\r
+ return GetImplementation( touchData ).GetMouseButton( point );\r
+}\r
+\r
+} // namespace DevelTouchData\r
+\r
+} // namespace Dali\r
+\r
--- /dev/null
+#ifndef DALI_TOUCH_DATA_DEVEL_H\r
+#define DALI_TOUCH_DATA_DEVEL_H\r
+\r
+/*\r
+ * Copyright (c) 2018 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/touch-data.h>\r
+\r
+namespace Dali\r
+{\r
+\r
+namespace DevelTouchData\r
+{\r
+\r
+/**\r
+ * @brief Get mouse's button value (ex: right/left button)\r
+ *\r
+ * @param[in] touchData The instance of TouchData.\r
+ * @param[in] point The point required\r
+ * @return The mouse button value\r
+ */\r
+MouseButton::Type GetMouseButton( TouchData touchData, std::size_t point );\r
+\r
+} // namespace DevelTouchData\r
+\r
+} // namespace Dali\r
+\r
+#endif // DALI_INTERNAL_TOUCH_DATA_DEVEL_H\r
$(devel_api_src_dir)/common/hash.cpp \
$(devel_api_src_dir)/common/stage-devel.cpp \
$(devel_api_src_dir)/events/hit-test-algorithm.cpp \
+ ${devel_api_src_dir}/events/touch-data-devel.cpp \
$(devel_api_src_dir)/images/distance-field.cpp \
$(devel_api_src_dir)/images/texture-set-image.cpp \
$(devel_api_src_dir)/images/nine-patch-image.cpp \
$(devel_api_src_dir)/common/stage-devel.h
devel_api_core_events_header_files = \
- $(devel_api_src_dir)/events/hit-test-algorithm.h
+ $(devel_api_src_dir)/events/hit-test-algorithm.h \
+ ${devel_api_src_dir}/events/touch-data-devel.h \
+ ${devel_api_src_dir}/events/mouse-button.h
devel_api_core_images_header_files = \
$(devel_api_src_dir)/images/distance-field.h \
// CLASS HEADER
#include <dali/integration-api/events/point.h>
-#include <dali/public-api/events/mouse-button.h>
namespace Dali
{
#include <dali/public-api/math/vector2.h>
#include <dali/public-api/events/touch-point.h>
#include <dali/public-api/events/device.h>
-#include <dali/public-api/events/mouse-button.h>
+#include <dali/devel-api/events/mouse-button.h>
namespace Dali
{
${CMAKE_CURRENT_SOURCE_DIR}/events/touch-point.h
${CMAKE_CURRENT_SOURCE_DIR}/events/touch-event.h
${CMAKE_CURRENT_SOURCE_DIR}/events/touch-data.h
- ${CMAKE_CURRENT_SOURCE_DIR}/events/mouse-button.h
${CMAKE_CURRENT_SOURCE_DIR}/images/buffer-image.h
${CMAKE_CURRENT_SOURCE_DIR}/images/encoded-buffer-image.h
return GetImplementation( *this ).GetDeviceSubclass( point );
}
-MouseButton::Type TouchData::GetMouseButton( std::size_t point ) const
-{
- return GetImplementation( *this ).GetMouseButton( point );
-}
-
TouchData::TouchData( Internal::TouchData* internal )
: BaseHandle( internal )
{
#include <dali/public-api/events/point-state.h>
#include <dali/public-api/object/base-handle.h>
#include <dali/public-api/math/degree.h>
-#include <dali/public-api/events/mouse-button.h>
+#include <dali/devel-api/events/mouse-button.h>
namespace Dali
{
Device::Subclass::Type GetDeviceSubclass( std::size_t point ) const;
- /**
- * @brief Get mouse device's button value (ex: right/left button)
- *
- * @SINCE_1_3.31
- * @param[in] point The point required
- * @return The mouse button value
- */
- MouseButton::Type GetMouseButton( std::size_t point ) const;
-
-
public: // Not intended for application developers
/// @cond internal
$(public_api_src_dir)/events/tap-gesture-detector.h \
$(public_api_src_dir)/events/touch-point.h \
$(public_api_src_dir)/events/touch-event.h \
- $(public_api_src_dir)/events/touch-data.h \
- $(public_api_src_dir)/events/mouse-button.h
+ $(public_api_src_dir)/events/touch-data.h
public_api_core_images_header_files = \
$(public_api_src_dir)/images/buffer-image.h \