[4.0] Create Widget Application
[platform/core/uifw/dali-adaptor.git] / adaptors / integration-api / adaptor.h
index cc79c35..26d24e4 100644 (file)
@@ -2,7 +2,7 @@
 #define __DALI_INTEGRATION_ADAPTOR_H__
 
 /*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 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.
@@ -27,7 +27,6 @@
 
 // INTERNAL INCLUDES
 
-
 #ifdef DALI_ADAPTOR_COMPILATION  // full path doesn't exist until adaptor is installed so we have to use relative
 // @todo Make dali-adaptor code folder structure mirror the folder structure installed to dali-env
 #include <window.h>
@@ -198,6 +197,16 @@ public:
   bool AddIdle( CallbackBase* callback );
 
   /**
+   * @brief Removes a previously added @p callback.
+   * @note Function must be called from the main event thread only.
+   *
+   * Does nothing if the @p callback doesn't exist.
+   *
+   * @param[in] callback The callback to be removed.
+   */
+  void RemoveIdle( CallbackBase* callback );
+
+  /**
    * @brief Replaces the rendering surface
    *
    * @param[in] nativeWindow native window handle
@@ -213,6 +222,20 @@ public:
   RenderSurface& GetSurface();
 
   /**
+   * @brief Gets native window handle
+   *
+   * @return Native window handle
+   */
+  Any GetNativeWindowHandle();
+
+  /**
+   * @brief Gets Window handle
+   *
+   * @return Window handle
+   */
+  Window GetWindow();
+
+  /**
    * @brief Release any locks the surface may hold.
    *
    * For example, after compositing an offscreen surface, use this method to allow
@@ -320,6 +343,12 @@ public:
    */
   void SetStereoBase( float stereoBase );
 
+  /**
+   * @brief Renders once more even if we're paused
+   * @note Will not work if the window is hidden.
+   */
+  void RenderOnce();
+
 public:  // Signals
 
   /**