[4.0] Add an environment variable to set the default indicator visible mode
[platform/core/uifw/dali-adaptor.git] / adaptors / common / window-impl.h
index 09a7541..72d0b72 100644 (file)
@@ -60,17 +60,18 @@ class Window : public Dali::BaseObject, public IndicatorInterface::Observer, pub
 public:
   typedef Dali::Window::IndicatorSignalType IndicatorSignalType;
   typedef Dali::DevelWindow::FocusSignalType FocusSignalType;
+  typedef Dali::DevelWindow::ResizedSignalType ResizedSignalType;
   typedef Signal< void () > SignalType;
 
   /**
    * Create a new Window. This should only be called once by the Application class
-   * @param[in] windowPosition The position and size of the window
+   * @param[in] positionSize The position and size of the window
    * @param[in] name The window title
    * @param[in] className The window class name
    * @param[in] isTransparent Whether window is transparent
    * @return A newly allocated Window
    */
-  static Window* New(const PositionSize& posSize, const std::string& name, const std::string& className, bool isTransparent = false);
+  static Window* New(const PositionSize& positionSize, const std::string& name, const std::string& className, bool isTransparent = false);
 
   /**
    * Pass the adaptor back to the overlay. This allows the window to access Core's overlay.
@@ -275,10 +276,40 @@ public:
   int GetBrightness();
 
   /**
+   * @copydoc Dali::DevelWindow::SetSize()
+   */
+  void SetSize( Dali::DevelWindow::WindowSize size );
+
+  /**
+   * @copydoc Dali::DevelWindow::GetSize()
+   */
+  Dali::DevelWindow::WindowSize GetSize();
+
+  /**
+   * @copydoc Dali::DevelWindow::SetPosition()
+   */
+  void SetPosition( Dali::DevelWindow::WindowPosition position );
+
+  /**
+   * @copydoc Dali::DevelWindow::GetPosition()
+   */
+  Dali::DevelWindow::WindowPosition GetPosition();
+
+  /**
+   * @copydoc Dali::DevelWindow::SetTransparency()
+   */
+  void SetTransparency( bool transparent );
+
+  /**
    * Called from Orientation after the Change signal has been sent
    */
   void RotationDone( int orientation, int width, int height );
 
+  /**
+   * Set the indicator visible mode
+   */
+  void SetIndicatorVisibleMode( Dali::Window::IndicatorVisibleMode mode );
+
 private:
   /**
    * Private constructor.
@@ -294,7 +325,7 @@ private:
   /**
    * Second stage initialization
    */
-  void Initialize(const PositionSize& posSize, const std::string& name, const std::string& className);
+  void Initialize(const PositionSize& positionSize, const std::string& name, const std::string& className);
 
   /**
    * Shows / hides the indicator bar.
@@ -370,11 +401,16 @@ public: // Signals
   IndicatorSignalType& IndicatorVisibilityChangedSignal() { return mIndicatorVisibilityChangedSignal; }
 
   /**
-   * The user should connect to this signal to get a timing when window gains focus or loses focus.
+   * @copydoc Dali::DevelWindow::FocusChangedSignal()
    */
   FocusSignalType& FocusChangedSignal() { return mFocusChangedSignal; }
 
   /**
+   * @copydoc Dali::DevelWindow::ResizedSignal()
+   */
+  ResizedSignalType& ResizedSignal() { return mResizedSignal; }
+
+  /**
    * This signal is emitted when the window is requesting to be deleted
    */
   SignalType& DeleteRequestSignal() { return mDeleteRequestSignal; }
@@ -394,6 +430,7 @@ private:
   bool                             mIsFocusAcceptable:1;
   bool                             mVisible:1;
   bool                             mOpaqueState:1;
+  bool                             mResizeEnabled:1;
   IndicatorInterface*              mIndicator;
   Dali::Window::WindowOrientation  mIndicatorOrientation;
   Dali::Window::WindowOrientation  mNextIndicatorOrientation;
@@ -416,6 +453,7 @@ private:
   // Signals
   IndicatorSignalType mIndicatorVisibilityChangedSignal;
   FocusSignalType     mFocusChangedSignal;
+  ResizedSignalType   mResizedSignal;
   SignalType          mDeleteRequestSignal;
 };