Ensure BaseHandle class move noexcept (core public-api)
[platform/core/uifw/dali-core.git] / dali / public-api / rendering / texture.h
index 8295868..9819677 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_TEXTURE_H
 
 /*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
@@ -143,7 +143,7 @@ public:
    * @SINCE_1_9.22
    * @param[in] rhs A reference to the moved handle
    */
-  Texture(Texture&& rhs);
+  Texture(Texture&& rhs) noexcept;
 
   /**
    * @brief Move assignment operator.
@@ -152,7 +152,7 @@ public:
    * @param[in] rhs A reference to the moved handle
    * @return A reference to this handle
    */
-  Texture& operator=(Texture&& rhs);
+  Texture& operator=(Texture&& rhs) noexcept;
 
   /**
    * @brief Uploads data to the texture from a PixelData object.
@@ -209,6 +209,14 @@ public:
    */
   uint32_t GetHeight() const;
 
+  /**
+   * @brief Returns the pixel format of the texture.
+   *
+   * @SINCE_2_1.29
+   * @return The pixel format of the texture
+   */
+  Pixel::Format GetPixelFormat() const;
+
 public:
   /**
    * @brief The constructor.