[widget-viewer-dali] Add WidgetView::Show() and WidgetView::Hide()
authorHeeyong Song <heeyong.song@samsung.com>
Tue, 17 May 2016 07:39:03 +0000 (16:39 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Tue, 17 May 2016 07:39:03 +0000 (16:39 +0900)
Change-Id: I77c1fcdde7656b877b9b4ef3a4c89064e53b52d9

internal/widget_view/widget_view_impl.cpp
internal/widget_view/widget_view_impl.h
public_api/widget_view/widget_view.cpp
public_api/widget_view/widget_view.h

index 5582fc9..8e78c69 100644 (file)
@@ -190,6 +190,22 @@ double WidgetView::GetPeriod() const
   return mPeriod;
 }
 
+void WidgetView::Show()
+{
+  if( mObjectView )
+  {
+    mObjectView.Show();
+  }
+}
+
+void WidgetView::Hide()
+{
+  if( mObjectView )
+  {
+    mObjectView.Hide();
+  }
+}
+
 bool WidgetView::CancelTouchEvent()
 {
   if( mObjectView )
index 0e40578..e14960d 100644 (file)
@@ -72,6 +72,16 @@ public:
   double GetPeriod() const;
 
   /**
+   * @copydoc Dali::WidgetView::WidgetView::Show
+   */
+  void Show();
+
+  /**
+   * @copydoc Dali::WidgetView::WidgetView::Hide
+   */
+  void Hide();
+
+  /**
    * @copydoc Dali::WidgetView::WidgetView::CancelTouchEvent
    */
   bool CancelTouchEvent();
index d3f9c5b..5ab6395 100644 (file)
@@ -84,6 +84,16 @@ double WidgetView::GetPeriod() const
   return Dali::WidgetView::GetImplementation( *this ).GetPeriod();
 }
 
+void WidgetView::Show()
+{
+  Dali::WidgetView::GetImplementation( *this ).Show();
+}
+
+void WidgetView::Hide()
+{
+  Dali::WidgetView::GetImplementation( *this ).Hide();
+}
+
 bool WidgetView::CancelTouchEvent()
 {
   return Dali::WidgetView::GetImplementation( *this ).CancelTouchEvent();
index 009db46..014d9c7 100644 (file)
@@ -158,6 +158,26 @@ public:
   double GetPeriod() const;
 
   /**
+   * @brief Shows the widget.
+   *
+   * @since_tizen 3.0
+   * @privlevel public
+   * @privilege %http://tizen.org/privilege/widget.viewer
+   * @note Use this function instead of Dali::Actor::SetVisible() to restart updating widget content.
+   */
+  void Show();
+
+  /**
+   * @brief Hides the widget.
+   *
+   * @since_tizen 3.0
+   * @privlevel public
+   * @privilege %http://tizen.org/privilege/widget.viewer
+   * @note Use this function instead of Dali::Actor::SetVisible() to stop updating widget content.
+   */
+  void Hide();
+
+  /**
    * @brief Cancels touch event procedure.
    * If you call this function after feed the touch down event, the widget will get ON_HOLD events.
    * If a widget gets ON_HOLD event, it will not do anything even if you feed touch up event.