Making DALi public API typesafe using guaranteed types; uint8_t, uint32_t
[platform/core/uifw/dali-core.git] / dali / public-api / events / hover-event.h
index 3cde5c4..e5c9f48 100644 (file)
@@ -2,7 +2,7 @@
 #define __DALI_HOVER_EVENT_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>
 #include <dali/public-api/events/touch-point.h>
@@ -36,7 +39,7 @@ namespace Dali
  * hovered or the points where a hover has stopped.
  * @SINCE_1_0.0
  */
-struct DALI_IMPORT_API HoverEvent
+struct DALI_CORE_API HoverEvent
 {
   // Construction & Destruction
 
@@ -82,7 +85,7 @@ struct DALI_IMPORT_API HoverEvent
    * @SINCE_1_0.0
    * @return Total number of Points
    */
-  unsigned int GetPointCount() const;
+  uint32_t GetPointCount() const;
 
   /**
    * @brief Returns a touch point at the index requested.
@@ -95,7 +98,7 @@ struct DALI_IMPORT_API HoverEvent
    * @note "point" should be less than the value returned by GetPointCount().
    *       If out of range, then program asserts.
    */
-  const TouchPoint& GetPoint(unsigned int point) const;
+  const TouchPoint& GetPoint( uint32_t point) const;
 };
 
 /**