2016-08-08 08:39:43 +02:00
|
|
|
--- Set a widget at a specific index, replace the current one.
|
|
|
|
-- **Signal:** widget::replaced The argument is the new widget and the old one
|
|
|
|
-- and the index.
|
2016-05-09 07:35:19 +02:00
|
|
|
-- @tparam number index A widget or a widget index
|
|
|
|
-- @param widget2 The widget to take the place of the first one
|
|
|
|
-- @treturn boolean If the operation is successful
|
|
|
|
-- @name set
|
|
|
|
-- @class function
|
|
|
|
|
2016-08-08 08:39:43 +02:00
|
|
|
--- Replace the first instance of `widget` in the layout with `widget2`.
|
|
|
|
-- **Signal:** widget::replaced The argument is the new widget and the old one
|
|
|
|
-- and the index.
|
2016-05-09 07:35:19 +02:00
|
|
|
-- @param widget The widget to replace
|
|
|
|
-- @param widget2 The widget to replace `widget` with
|
2017-08-16 20:07:08 +02:00
|
|
|
-- @tparam[opt=false] boolean recursive Dig in all compatible layouts to find the widget.
|
2016-05-09 07:35:19 +02:00
|
|
|
-- @treturn boolean If the operation is successful
|
|
|
|
-- @name replace_widget
|
|
|
|
-- @class function
|
|
|
|
|
2016-08-08 08:39:43 +02:00
|
|
|
--- Swap 2 widgets in a layout.
|
|
|
|
-- **Signal:** widget::swapped The arguments are both widgets and both (new) indexes.
|
2016-05-09 07:35:19 +02:00
|
|
|
-- @tparam number index1 The first widget index
|
|
|
|
-- @tparam number index2 The second widget index
|
|
|
|
-- @treturn boolean If the operation is successful
|
|
|
|
-- @name swap
|
|
|
|
-- @class function
|
|
|
|
|
2016-08-08 08:39:43 +02:00
|
|
|
--- Swap 2 widgets in a layout.
|
2016-05-09 07:35:19 +02:00
|
|
|
-- If widget1 is present multiple time, only the first instance is swapped
|
2016-08-08 08:39:43 +02:00
|
|
|
-- **Signal:** widget::swapped The arguments are both widgets and both (new) indexes.
|
|
|
|
-- if the layouts not the same, then only `widget::replaced` will be emitted.
|
2016-05-09 07:35:19 +02:00
|
|
|
-- @param widget1 The first widget
|
|
|
|
-- @param widget2 The second widget
|
2017-08-16 20:07:08 +02:00
|
|
|
-- @tparam[opt=false] boolean recursive Dig in all compatible layouts to find the widget.
|
2016-05-09 07:35:19 +02:00
|
|
|
-- @treturn boolean If the operation is successful
|
|
|
|
-- @name swap_widgets
|
|
|
|
-- @class function
|
|
|
|
|
2016-05-27 01:41:58 +02:00
|
|
|
--- Get all direct children of this layout.
|
2016-05-09 07:35:19 +02:00
|
|
|
-- @param layout The layout you are modifying.
|
2016-05-27 01:41:58 +02:00
|
|
|
-- @property children
|
2016-05-09 07:35:19 +02:00
|
|
|
|
|
|
|
--- Reset a ratio layout. This removes all widgets from the layout.
|
2016-08-08 08:39:43 +02:00
|
|
|
-- **Signal:** widget::reset
|
2016-05-09 07:35:19 +02:00
|
|
|
-- @param layout The layout you are modifying.
|
|
|
|
-- @name reset
|
|
|
|
-- @class function
|