Revert "[Tizen] Sync for libds"
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / adaptor-framework / offscreen-window.h
index bb279cb..8c11466 100644 (file)
  */
 
 // EXTERNAL INCLUDES
-#include <memory>
 #include <dali/public-api/actors/actor.h>
 #include <dali/public-api/math/uint-16-pair.h>
 #include <dali/public-api/signals/dali-signal.h>
 #include <dali/public-api/object/any.h>
 
-// INTERNAL INCLUDES
-#include <dali/devel-api/adaptor-framework/offscreen-application.h>
-
 namespace Dali
 {
 
@@ -47,8 +43,8 @@ class DALI_IMPORT_API OffscreenWindow : public Dali::BaseHandle
 {
 public:
 
-  typedef Uint16Pair WindowSize;
-  typedef Signal<void (OffscreenWindow, Any)> PostRenderSignalType;
+  using WindowSize = Uint16Pair;
+  using PostRenderSignalType = Signal<void (OffscreenWindow, Any)>;
 
 public:
 
@@ -67,9 +63,8 @@ public:
    * @note You should hold the returned handle. If you missed the handle, the OffscreenWindow will be released
    *
    * @param[in] surface The native surface handle of your platform
-   * @param[in] isTranslucent Whether the OffscreenWindow is translucent or not
    */
-  static OffscreenWindow New( Any surface, bool isTranslucent );
+  static OffscreenWindow New( Any surface );
 
   /**
    * @brief Constructs an empty handle
@@ -78,11 +73,16 @@ public:
 
   /**
    * @brief Copy constructor
+   *
+   * @param [in] window A reference to the copied handle
    */
   OffscreenWindow( const OffscreenWindow& window );
 
   /**
    * @brief Assignment operator
+   *
+   * @param [in] window A reference to the copied handle
+   * @return A reference to this
    */
   OffscreenWindow& operator=( const OffscreenWindow& window );
 
@@ -169,6 +169,13 @@ public:
    */
   Any GetNativeHandle() const;
 
+  /**
+   * @brief Retrieves the DPI of the window.
+   *
+   * @return The DPI of the window
+   */
+  Uint16Pair GetDpi() const;
+
 public:  // Signals
 
   /**