[dali_1.3.31] Merge branch 'devel/master'
[platform/core/uifw/dali-core.git] / dali / public-api / images / native-image.h
index b666b15..47dc0b7 100644 (file)
@@ -2,7 +2,7 @@
 #define __DALI_NATIVE_IMAGE_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.
@@ -35,49 +35,62 @@ class NativeImage;
 }
 
 /**
+ * @DEPRECATED_1_2.41
+ *
  * @brief NativeImage represents a platform specific image resource.
+ *
  * Its data is provided by native resources, such as shared bitmap memory or pixmap.
  * @SINCE_1_0.0
  */
-class DALI_IMPORT_API  NativeImage : public Image
+class DALI_CORE_API  NativeImage : public Image
 {
 public:
 
   /**
+   * @DEPRECATED_1_2.41
+   *
    * @brief Constructor with creates an uninitialized NativeImage object.
    *
    * Use NativeImage::New(...) to create an initialised object.
    * @SINCE_1_0.0
    */
-  NativeImage();
+  NativeImage() DALI_DEPRECATED_API;
 
   /**
+   * @DEPRECATED_1_2.41
+   *
    * @brief Destructor.
    *
    * This is non-virtual since derived Handle types must not contain data or virtual methods.
    * @SINCE_1_0.0
    */
-   ~NativeImage();
+   ~NativeImage() DALI_DEPRECATED_API;
 
-   /**
-    * @brief This copy constructor is required for (smart) pointer semantics.
-    *
-    * @SINCE_1_0.0
-    * @param [in] handle A reference to the copied handle
-    */
-   NativeImage( const NativeImage& handle );
+  /**
+   * @DEPRECATED_1_2.41
+   *
+   * @brief This copy constructor is required for (smart) pointer semantics.
+   *
+   * @SINCE_1_0.0
+   * @param[in] handle A reference to the copied handle
+   */
+  NativeImage( const NativeImage& handle ) DALI_DEPRECATED_API;
 
   /**
+   * @DEPRECATED_1_2.41
+   *
    * @brief This assignment operator is required for (smart) pointer semantics.
    *
    * @SINCE_1_0.0
-   * @param[in] rhs A reference to the copied handle.
-   * @return A reference to this.
+   * @param[in] rhs A reference to the copied handle
+   * @return A reference to this
    */
-  NativeImage& operator=( const NativeImage& rhs );
+  NativeImage& operator=( const NativeImage& rhs ) DALI_DEPRECATED_API;
 
   /**
-   * @brief Trigger asynchronous creation of backing GL texture immediately.
+   * @DEPRECATED_1_2.41
+   *
+   * @brief Triggers asynchronous creation of backing GL texture immediately.
    *
    * The normal policy is for a GL texture to created lazily when needed.
    * This function forces the allocation of a texture to happen at the earliest
@@ -88,46 +101,54 @@ public:
    * GL textures. This function can be called again after context regain to force
    * the creation of the GL texture if still needed.
    */
-  void CreateGlTexture();
+  void CreateGlTexture() DALI_DEPRECATED_API;
 
   /**
-   * @brief Create a new NativeImage, which used native resources.
+   * @DEPRECATED_1_2.41
+   *
+   * @brief Creates a new NativeImage, which used native resources.
    *
    * The maximum size of the image is limited by GL_MAX_TEXTURE_SIZE
    * @SINCE_1_0.0
-   * @param [in] nativeImageInterface An reference to the object of the interface implementation.
-   * @return A handle to a newly allocated object.
+   * @param[in] nativeImageInterface An reference to the object of the interface implementation
+   * @return A handle to a newly allocated object
    */
-  static NativeImage New( NativeImageInterface& nativeImageInterface );
+  static NativeImage New( NativeImageInterface& nativeImageInterface ) DALI_DEPRECATED_API;
 
   /**
-   * @brief Downcast an Object handle to NativeImage handle.
+   * @DEPRECATED_1_2.41
+   *
+   * @brief Downcasts a handle to NativeImage handle.
    *
    * If handle points to a NativeImage object, the downcast produces valid handle.
-   * If not, the returned handle is left unintialized.
+   * If not, the returned handle is left uninitialized.
    * @SINCE_1_0.0
-   * @param[in] handle Handle to an object.
-   * @return Handle to a NativeImage or an uninitialized handle.
+   * @param[in] handle Handle to an object
+   * @return handle to a NativeImage or an uninitialized handle
    */
-  static NativeImage DownCast( BaseHandle handle );
+  static NativeImage DownCast( BaseHandle handle ) DALI_DEPRECATED_API;
 
   /**
-   * @brief Get custom fragment prefix for rendering a native image.
+   * @DEPRECATED_1_2.41
+   *
+   * @brief Gets custom fragment prefix for rendering a native image.
    *
    * @return String for custom fragment prefix
    */
-  const char* GetCustomFragmentPreFix();
+  const char* GetCustomFragmentPreFix() DALI_DEPRECATED_API;
 
   /**
-   * @brief Get custom sampler type name for rendering a native image.
+   * @DEPRECATED_1_2.41
+   *
+   * @brief Gets custom sampler type name for rendering a native image.
    *
    * @return String for custom sampler type name
    */
-  const char* GetCustomSamplerTypename();
+  const char* GetCustomSamplerTypename() DALI_DEPRECATED_API;
 
 public: // Not intended for application developers
 
-  explicit DALI_INTERNAL NativeImage( Internal::NativeImage* );
+  explicit DALI_INTERNAL NativeImage( Internal::NativeImage* ) DALI_DEPRECATED_API;
 
 };