Class wibox.container.mirror
Info:
- Copyright: 2012 dodo
- Author: dodo
Functions
mirror:get_children () | Get the number of children element |
mirror:set_children (children) | Replace the layout children This layout only accept one children, all others will be ignored |
mirror:reset () | Reset this layout. |
wibox.container.mirror ([widget[, reflection]]) | Returns a new mirror container. |
Object properties
wibox.container.mirror.widget | The widget to be reflected. |
wibox.container.mirror.reflection | Get the reflection of this mirror layout. |
Functions
- mirror:get_children ()
-
Get the number of children element
Returns:
-
table
The children
- mirror:set_children (children)
-
Replace the layout children
This layout only accept one children, all others will be ignored
- children table A table composed of valid widgets
- mirror:reset ()
- Reset this layout. The widget will be removed and the axes reset.
- wibox.container.mirror ([widget[, reflection]])
-
Returns a new mirror container.
A mirror container mirrors a given widget. Use
:set_widget()
to set the widget and:set_horizontal()
and:set_vertical()
for the direction. horizontal and vertical are by default false which doesn't change anything.- widget The widget to display.
- reflection A table describing the reflection to apply.
Returns:
-
table
A new mirror container
Object properties
- wibox.container.mirror.widget
-
The widget to be reflected.
Type:
- widget widget The widget
- wibox.container.mirror.reflection
-
Get the reflection of this mirror layout.
Type:
- table reflection A table of booleans with the keys "horizontal", "vertical".
- boolean reflection.vertical
- boolean reflection.vertical