X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git;a=blobdiff_plain;f=dali%2Finternal%2Fwindow-system%2Fcommon%2Fwindow-impl.h;h=eb7d87332f3543f44f836f0a87f0ecaef15f4198;hp=76fb76fb4523d539a28c482ff7b86ee78be2b9f1;hb=263ec21432f3d7c9f9be5b463748fdce8f6942e4;hpb=43235b18c881038f256cc7ebdbaa13d0930122c6 diff --git a/dali/internal/window-system/common/window-impl.h b/dali/internal/window-system/common/window-impl.h index 76fb76f..eb7d873 100644 --- a/dali/internal/window-system/common/window-impl.h +++ b/dali/internal/window-system/common/window-impl.h @@ -2,7 +2,7 @@ #define DALI_INTERNAL_WINDOWSYSTEM_COMMON_WINDOW_IMPL_H /* - * Copyright (c) 2018 Samsung Electronics Co., Ltd. + * Copyright (c) 2019 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. @@ -21,6 +21,9 @@ // EXTERNAL INCLUDES #include #include +#include +#include +#include // INTERNAL INCLUDES #include @@ -32,6 +35,7 @@ namespace Dali { class Adaptor; +class Actor; namespace Internal { @@ -114,6 +118,41 @@ public: void Activate(); /** + * @copydoc Dali::Window::Add() + */ + void Add( Dali::Actor actor ); + + /** + * @copydoc Dali::Window::Remove() + */ + void Remove( Dali::Actor remove ); + + /** + * @copydoc Dali::Window::SetBackgroundColor() + */ + void SetBackgroundColor(Vector4 color); + + /** + * @copydoc Dali::Window::GetBackgroundColor() + */ + Vector4 GetBackgroundColor() const; + + /** + * @copydoc Dali::Window::GetRootLayer() + */ + Dali::Layer GetRootLayer() const; + + /** + * @copydoc Dali::Window::GetLayerCount() + */ + uint32_t GetLayerCount() const; + + /** + * @copydoc Dali::Window::GetLayer() + */ + Dali::Layer GetLayer( uint32_t depth ) const; + + /** * @copydoc Dali::Window::AddAvailableOrientation() */ void AddAvailableOrientation(Dali::Window::WindowOrientation orientation); @@ -323,6 +362,12 @@ public: */ void RotationDone( int orientation, int width, int height ); + /** + * @brief Retrieves the unique ID of the window. + * @return The ID + */ + uint32_t GetId() const; + private: /** @@ -412,7 +457,10 @@ public: // Signals private: - WindowRenderSurface* mSurface; + static uint32_t mWindowCounter; ///< A counter to track the window creation + uint32_t mId; ///< A unique ID to identify the window starting from 0 + std::unique_ptr< WindowRenderSurface > mSurface; + Dali::Integration::Scene mScene; WindowBase* mWindowBase; bool mStarted:1; bool mIsTransparent:1; @@ -429,6 +477,8 @@ private: std::vector mAvailableOrientations; Dali::Window::WindowOrientation mPreferredOrientation; + Vector4 mBackgroundColor; + // Signals IndicatorSignalType mIndicatorVisibilityChangedSignal; FocusSignalType mFocusChangedSignal;