Making DALi public API typesafe using guaranteed types; uint8_t, uint32_t
[platform/core/uifw/dali-core.git] / dali / public-api / images / image.h
index 608a5bb..7c649a2 100644 (file)
@@ -2,7 +2,7 @@
 #define __DALI_IMAGE_H__
 
 /*
- * Copyright (c) 2017 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.
@@ -20,6 +20,7 @@
 
 // EXTERNAL INCLUDES
 #include <string>
+#include <cstdint> // uint32_t
 
 // INTERNAL INCLUDES
 #include <dali/public-api/object/base-handle.h>
@@ -57,7 +58,7 @@ class Image;
  * | uploaded               | @ref UploadedSignal()        |
  * @SINCE_1_0.0
  */
-class DALI_IMPORT_API Image : public BaseHandle
+class DALI_CORE_API Image : public BaseHandle
 {
 public:
 
@@ -138,7 +139,7 @@ public:
    * @SINCE_1_0.0
    * @return Width of the image in pixels
    */
-  unsigned int GetWidth() const DALI_DEPRECATED_API;
+  uint32_t GetWidth() const DALI_DEPRECATED_API;
 
   /**
    * @DEPRECATED_1_2.41
@@ -150,7 +151,7 @@ public:
    * @SINCE_1_0.0
    * @return Height of the image in pixels
    */
-  unsigned int GetHeight() const DALI_DEPRECATED_API;
+  uint32_t GetHeight() const DALI_DEPRECATED_API;
 
 public: // Signals