/**
* Base class for layouts.
*/
-class DALI_IMPORT_API LayoutItem : public BaseObject,
- public LayoutParent
+class DALI_TOOLKIT_API LayoutItem : public BaseObject,
+ public LayoutParent
{
public:
/**
static LayoutLength GetDefaultSize( LayoutLength size, MeasureSpec measureSpec );
/**
+ * @copydoc LayoutParent::SetParent
+ */
+ virtual void SetParent( LayoutParent* parent ) override;
+
+ /**
* @copydoc LayoutParent::GetParent
*/
virtual LayoutParent* GetParent() override;
bool IsLayoutRequested() const;
/**
+ * @brief Set layout requested flag (mark the layout dirty).
+ */
+ void SetLayoutRequested();
+
+ /**
* @brief Get the measured width (without any measurement flags).
*
* This method should be used only during measurement and layout calculations.
LayoutLength GetMinimumHeight() const;
/**
- * Get the padding information
+ * Get the padding information.
* @return The padding information
*/
Extents GetPadding() const;
+ /**
+ * Get the margin information.
+ * @return The margin information
+ */
+ Extents GetMargin() const;
+
protected:
/**
* @brief Allow directly deriving classes to remove layout children when unparented
*/
virtual void OnRegisterChildProperties( const std::string& containerType );
-
/**
* @brief Measure the layout and its content to determine the measured width and the
* measured height.