From ab40a342afea16b8b09d12130d97b623cdf9b900 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Wed, 25 May 2016 15:27:11 -0400 Subject: [PATCH] doc: Add a stack layout default screenshot --- lib/wibox/layout/stack.lua | 1 + tests/examples/wibox/layout/defaults/stack.lua | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 tests/examples/wibox/layout/defaults/stack.lua diff --git a/lib/wibox/layout/stack.lua b/lib/wibox/layout/stack.lua index 47c34f1b..a7020a62 100644 --- a/lib/wibox/layout/stack.lua +++ b/lib/wibox/layout/stack.lua @@ -8,6 +8,7 @@ -- The indices are going from 1 (the bottom of the stack) up to the top of -- the stack. The order can be changed either using `:swap` or `:raise`. -- +--@DOC_wibox_layout_defaults_stack_EXAMPLE@ -- @author Emmanuel Lepage Vallee -- @copyright 2016 Emmanuel Lepage Vallee -- @release @AWESOME_VERSION@ diff --git a/tests/examples/wibox/layout/defaults/stack.lua b/tests/examples/wibox/layout/defaults/stack.lua new file mode 100644 index 00000000..82887482 --- /dev/null +++ b/tests/examples/wibox/layout/defaults/stack.lua @@ -0,0 +1,10 @@ +local generic_widget = ... --DOC_HIDE +local wibox = require("wibox") --DOC_HIDE + +return --DOC_HIDE +wibox.widget { + generic_widget( "first" ), + generic_widget( "second" ), + generic_widget( "third" ), + layout = wibox.layout.stack +}