[Tizen] Restore OnControlChildAdd and OnControlChildRemove 01/238701/1
authorHeeyong Song <heeyong.song@samsung.com>
Thu, 16 Jul 2020 09:54:06 +0000 (18:54 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Thu, 16 Jul 2020 09:54:06 +0000 (18:54 +0900)
Change-Id: I2205277de96eef1df25751c56405d74b97548bd6

dali-toolkit/public-api/controls/control-impl.cpp
dali-toolkit/public-api/controls/control-impl.h

index f17092f..817a3b7 100755 (executable)
@@ -473,6 +473,14 @@ void Control::OnInitialize()
 {
 }
 
+void Control::OnControlChildAdd( Actor& child )
+{
+}
+
+void Control::OnControlChildRemove( Actor& child )
+{
+}
+
 void Control::OnStyleChange( Toolkit::StyleManager styleManager, StyleChange::Type change )
 {
   // By default the control is only interested in theme (not font) changes
index 56c358d..a4706af 100644 (file)
@@ -450,6 +450,30 @@ public: // API for derived classes to override
    */
   virtual void OnInitialize();
 
+  /**
+   * @DEPRECATED_1_1.30. Override OnChildAdd instead.
+   *
+   * @brief Called whenever an Actor is added to the control.
+   *
+   * Could be overridden by derived classes.
+   *
+   * @SINCE_1_0.0
+   * @param[in] child The added actor
+   */
+  virtual void OnControlChildAdd( Actor& child ) DALI_DEPRECATED_API;
+
+  /**
+   * @DEPRECATED_1_1.30. Override OnChildRemove instead.
+   *
+   * @brief Called whenever an Actor is removed from the control.
+   *
+   * Could be overridden by derived classes.
+   *
+   * @SINCE_1_0.0
+   * @param[in] child The removed actor
+   */
+  virtual void OnControlChildRemove( Actor& child ) DALI_DEPRECATED_API;
+
   // Styling
 
   /**