From ab0a9a077e347c0dcbe4b39cf2b604425fe73e0f Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Tue, 24 May 2016 12:51:08 -0400 Subject: [PATCH] doc: Add a `rotate` default screenshot --- lib/wibox/container/rotate.lua | 1 + .../wibox/container/defaults/rotate.lua | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 tests/examples/wibox/container/defaults/rotate.lua diff --git a/lib/wibox/container/rotate.lua b/lib/wibox/container/rotate.lua index 9e166f58b..48e2a980b 100644 --- a/lib/wibox/container/rotate.lua +++ b/lib/wibox/container/rotate.lua @@ -1,6 +1,7 @@ --------------------------------------------------------------------------- -- A container rotating the conained widget by 90 degrees. -- +--@DOC_wibox_container_defaults_rotate_EXAMPLE@ -- @author Uli Schlachter -- @copyright 2010 Uli Schlachter -- @release @AWESOME_VERSION@ diff --git a/tests/examples/wibox/container/defaults/rotate.lua b/tests/examples/wibox/container/defaults/rotate.lua new file mode 100644 index 000000000..13cf1002d --- /dev/null +++ b/tests/examples/wibox/container/defaults/rotate.lua @@ -0,0 +1,19 @@ +--DOC_HIDE_ALL +local wibox = require("wibox") + +return { + text = "Before", + align = "center", + valign = "center", + widget = wibox.widget.textbox, +}, +{ + { + text = "After", + align = "center", + valign = "center", + widget = wibox.widget.textbox, + }, + direction = "east", + widget = wibox.container.rotate +}