Making DALi public API typesafe using guaranteed types; uint8_t, uint32_t
[platform/core/uifw/dali-core.git] / dali / public-api / events / gesture.h
index d16adc7..2696f7b 100644 (file)
@@ -2,7 +2,7 @@
 #define __DALI_GESTURE_H__
 
 /*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2018 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.
@@ -18,6 +18,9 @@
  *
  */
 
+// EXTERNAL INCLUDES
+#include <cstdint> // uint32_t
+
 // INTERNAL INCLUDES
 #include <dali/public-api/common/dali-common.h>
 
@@ -43,17 +46,20 @@ namespace Dali
  * @see GestureDetector
  *
  */
-struct DALI_IMPORT_API Gesture
+struct DALI_CORE_API Gesture
 {
   /**
    * @brief Copy constructor.
    * @SINCE_1_0.0
+   * @param[in] rhs A reference to the copied handle
    */
   Gesture( const Gesture& rhs );
 
   /**
    * @brief Assignment operator.
    * @SINCE_1_0.0
+   * @param[in] rhs A reference to the copied handle
+   * @return A reference to this
    */
   Gesture& operator=( const Gesture& rhs );
 
@@ -66,7 +72,7 @@ struct DALI_IMPORT_API Gesture
   virtual ~Gesture();
 
   /**
-   * @brief Type of gesture.
+   * @brief Enumeration for type of gesture.
    * @SINCE_1_0.0
    */
   enum Type
@@ -78,7 +84,7 @@ struct DALI_IMPORT_API Gesture
   };
 
   /**
-   * @brief State of the gesture.
+   * @brief Enumeration for state of the gesture.
    * @SINCE_1_0.0
    */
   enum State
@@ -109,7 +115,7 @@ struct DALI_IMPORT_API Gesture
   /**
    * @brief The time the gesture took place.
    */
-  unsigned int time;
+  uint32_t time;
 
 protected: // Creation