X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fdevel-api%2Fadaptor-framework%2Foffscreen-window.h;h=8c11466c7f98987b06189a46f0c547ba35ad9895;hb=5c51f9311780b763a63cb33526c2fec71809ada0;hp=042279efc955b54954bd031e53e572f3bfaec8af;hpb=31fabb950491a51cd590d29789d05d067259029f;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/devel-api/adaptor-framework/offscreen-window.h b/dali/devel-api/adaptor-framework/offscreen-window.h index 042279e..8c11466 100644 --- a/dali/devel-api/adaptor-framework/offscreen-window.h +++ b/dali/devel-api/adaptor-framework/offscreen-window.h @@ -18,23 +18,20 @@ * */ -/** - * @addtogroup dali_adaptor_framework - * @{ - */ - -#include +// EXTERNAL INCLUDES #include #include #include #include -// INTERNAL INCLUDES -#include - namespace Dali { +/** + * @addtogroup dali_adaptor_framework + * @{ + */ + class Layer; namespace Internal @@ -46,8 +43,8 @@ class DALI_IMPORT_API OffscreenWindow : public Dali::BaseHandle { public: - typedef Uint16Pair WindowSize; - typedef Signal PostRenderSignalType; + using WindowSize = Uint16Pair; + using PostRenderSignalType = Signal; public: @@ -55,22 +52,19 @@ 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 @@ -79,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 ); @@ -163,7 +162,27 @@ public: */ 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