doc: Add a ratio layout default screenshot

This commit is contained in:
Emmanuel Lepage Vallee 2016-05-25 15:23:51 -04:00
parent 7fa56cb94c
commit 163748c782
2 changed files with 15 additions and 0 deletions

View File

@ -2,6 +2,8 @@
--- A layout filling all the available space. Each widget is assigned a --- A layout filling all the available space. Each widget is assigned a
-- ratio (percentage) of the total space. Multiple methods are available to -- ratio (percentage) of the total space. Multiple methods are available to
-- ajust this ratio. -- ajust this ratio.
--
--@DOC_wibox_layout_defaults_ratio_EXAMPLE@
-- @author Emmanuel Lepage Vallee -- @author Emmanuel Lepage Vallee
-- @copyright 2016 Emmanuel Lepage Vallee -- @copyright 2016 Emmanuel Lepage Vallee
-- @release @AWESOME_VERSION@ -- @release @AWESOME_VERSION@

View File

@ -0,0 +1,13 @@
local generic_widget = ... --DOC_HIDE
local wibox = require("wibox") --DOC_HIDE
local w = wibox.widget {
generic_widget( "first" ),
generic_widget( "second" ),
generic_widget( "third" ),
layout = wibox.layout.ratio.horizontal
}
w:ajust_ratio(2, 0.44, 0.33, 0.22)
return w --DOC_HIDE