2018-07-24 14:12:44 +02:00
|
|
|
--DOC_GEN_IMAGE --DOC_HIDE
|
2016-10-09 07:33:08 +02:00
|
|
|
local generic_widget = ... --DOC_HIDE
|
|
|
|
local wibox = require("wibox") --DOC_HIDE
|
|
|
|
|
|
|
|
local w1, w2 = generic_widget(), generic_widget()
|
|
|
|
w1.point = {x=75,y=5}
|
|
|
|
w1.text = "first"
|
|
|
|
w1.forced_width = 50
|
|
|
|
|
|
|
|
w2.text = "second"
|
|
|
|
w2.point = function(geo, args)
|
|
|
|
-- Bottom right
|
|
|
|
return {
|
|
|
|
x = args.parent.width-geo.width,
|
|
|
|
y = args.parent.height-geo.height
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
return --DOC_HIDE
|
|
|
|
wibox.layout {
|
|
|
|
w1,
|
|
|
|
w2,
|
|
|
|
generic_widget("third"),
|
|
|
|
layout = wibox.layout.manual
|
|
|
|
}
|