*
*/
-/**
- * @addtogroup dali_adaptor_framework
- * @{
- */
-
-#include <memory>
+// EXTERNAL INCLUDES
#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
{
+/**
+ * @addtogroup dali_adaptor_framework
+ * @{
+ */
+
class Layer;
namespace Internal
{
public:
- typedef Uint16Pair WindowSize;
- typedef Signal<void (OffscreenWindow, Dali::Any)> PostRenderSignalType;
+ using WindowSize = Uint16Pair;
+ using PostRenderSignalType = Signal<void (OffscreenWindow, Any)>;
public:
* @brief Creates an initialized handle to a new OffscreenWindow
* @note You should hold the returned handle. If you missed the handle, the OffscreenWindow will be released
*
- * @param[in] offscreenApplication The OffscreenApplication handle
* @param[in] width The initial width of the OffscreenWindow
* @param[in] height The initial height of the OffscreenWindow
* @param[in] isTranslucent Whether the OffscreenWindow is translucent or not
*/
- static OffscreenWindow New( OffscreenApplication offscreenApplication, uint16_t width, uint16_t height, bool isTranslucent );
+ static OffscreenWindow New( uint16_t width, uint16_t height, bool isTranslucent );
/**
* @brief Creates an initialized handle to a new OffscreenWindow
* @note You should hold the returned handle. If you missed the handle, the OffscreenWindow will be released
*
- * @param[in] offscreenApplication The OffscreenApplication handle
* @param[in] surface The native surface handle of your platform
- * @param[in] isTranslucent Whether the OffscreenWindow is translucent or not
*/
- static OffscreenWindow New( OffscreenApplication offscreenApplication, Dali::Any surface, bool isTranslucent );
+ static OffscreenWindow New( Any surface );
/**
* @brief Constructs an empty handle
/**
* @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 );
*/
WindowSize GetSize() const;
+ /**
+ * @brief Gets the native handle.
+ * @note When users call this function, it wraps the actual type used by the underlying system.
+ * @return The native handle or an empty handle
+ */
+ Any GetNativeHandle() const;
+
+ /**
+ * @brief Retrieves the DPI of the window.
+ *
+ * @return The DPI of the window
+ */
+ Uint16Pair GetDpi() const;
+
public: // Signals
+
+ /**
+ * @brief This signal is emitted when the OffscreenWindow is rendered.
+ *
+ * @return The signal
+ */
PostRenderSignalType& PostRenderSignal();
public: // Not intended for application developers