Removing native layouting
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / devel-api / controls / control-devel.h
index e2fcc86..ea19b13 100755 (executable)
@@ -2,7 +2,7 @@
 #define DALI_TOOLKIT_CONTROL_DEVEL_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.
@@ -23,7 +23,6 @@
 // INTERNAL INCLUDES
 #include <dali-toolkit/public-api/controls/control.h>
 #include <dali-toolkit/devel-api/visual-factory/visual-base.h>
-#include <dali-toolkit/devel-api/layouting/layout-item.h>
 
 namespace Dali
 {
@@ -270,56 +269,21 @@ DALI_TOOLKIT_API void DoAction( Control& control, Dali::Property::Index visualIn
  */
 DALI_TOOLKIT_API void SetInputMethodContext( Internal::Control& control, InputMethodContext& inputMethodContext );
 
-/*
- * @brief Get the layout associated with this control, if any.
- *
- * @return A handle to the layout, or empty.
- */
-DALI_TOOLKIT_API Toolkit::LayoutItem GetLayout( Internal::Control& control );
-
-/*
- * @brief Get the layout associated with a control, if any.
- *
- * @return A handle to the layout, or empty.
- */
-DALI_TOOLKIT_API Toolkit::LayoutItem GetLayout( Control control );
-
 /**
- * @brief Set the layout on this control.
- *
- * @param[in] control The internal Control to set the layout on
- * @param[in] layout Pointer to the layout
+ * @brief Visual Event signal type
  */
-DALI_TOOLKIT_API void SetLayout( Internal::Control& control, Toolkit::LayoutItem layout );
+using VisualEventSignalType = Signal< void ( Control, Dali::Property::Index, Dali::Property::Index ) >;
 
 /**
- * @brief Set the layout on a control.
+ * @brief This signal is emitted when a visual has an event to notify.
  *
- * @param[in] control The Control to set the layout on
- * @param[in] layout Pointer to the layout
- */
-DALI_TOOLKIT_API void SetLayout( Control control, Toolkit::LayoutItem layout );
-
-/**
- * @brief Request the control layout.
- *
- * @param[in] control The internal Control to request the layout of
- */
-DALI_TOOLKIT_API void RequestLayout( Internal::Control& control );
-
-/**
- * @brief Set whether the control should have a layout
- * @param[in] control The Control to set the behaviour on
- * @param[in] layoutingRequired true if the control should have a layout
- */
-DALI_TOOLKIT_API void SetLayoutingRequired( Control control, bool layoutingRequired );
-
-/**
- * @brief Check if the control has been set to require layouting
- * @param[in] control The Control to query
- * @return true if the control needs layouting
+ * A callback of the following type may be connected:
+ * @code
+ *   void YourCallbackName( Control control, Dali::Property::Index visualIndex, Dali::Property::Index signalId );
+ * @endcode
+ * @return The signal to connect to
  */
-DALI_TOOLKIT_API bool IsLayoutingRequired( Control control );
+DALI_TOOLKIT_API VisualEventSignalType& VisualEventSignal( Control control );
 
 } // namespace DevelControl