--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE local image = ''.. ''.. ''.. ''.. ''.. '' --DOC_NEWLINE local stylesheet = "" .. "rect { fill: #ffff00; } ".. ".my_class { fill: #00ff00; } ".. "#my_id { fill: #0000ff; }" --DOC_NEWLINE local w = wibox.widget { forced_height = 60, --DOC_HIDE forced_width = 190, --DOC_HIDE stylesheet = stylesheet, image = image, widget = wibox.widget.imagebox } parent:add(w) --DOC_HIDE --DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80