From 6fb40a196f725624b04ee1158a288e4a983c7939 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sat, 25 Feb 2017 16:51:03 +0100 Subject: [PATCH] wibox.container.scroll: Add a usage example Signed-off-by: Uli Schlachter --- lib/wibox/container/scroll.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/wibox/container/scroll.lua b/lib/wibox/container/scroll.lua index 95aae370..08cc64a5 100644 --- a/lib/wibox/container/scroll.lua +++ b/lib/wibox/container/scroll.lua @@ -1,4 +1,16 @@ --------------------------------------------------------------------------- +-- @usage +-- wibox.widget { +-- layout = wibox.container.scroll.horizontal, +-- max_size = 100, +-- step_function = wibox.container.scroll.step_functions +-- .waiting_nonlinear_back_and_forth, +-- speed = 100, +-- { +-- widget = wibox.widget.textbox, +-- text = "This is a " .. string.rep("very, ", 10) .. " very long text", +-- }, +-- } -- @author Uli Schlachter (based on ideas from Saleur Geoffrey) -- @copyright 2015 Uli Schlachter -- @classmod wibox.container.scroll