From 26cf28b23b51bfd2064c5611749b401a0f7a3659 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Tue, 24 May 2016 13:53:21 -0400 Subject: [PATCH] doc: Add a `constraint` default screenshot --- lib/wibox/container/constraint.lua | 2 ++ .../wibox/container/defaults/constraint.lua | 27 +++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 tests/examples/wibox/container/defaults/constraint.lua diff --git a/lib/wibox/container/constraint.lua b/lib/wibox/container/constraint.lua index edc9d108..4e8a976d 100644 --- a/lib/wibox/container/constraint.lua +++ b/lib/wibox/container/constraint.lua @@ -1,4 +1,6 @@ --------------------------------------------------------------------------- +-- +--@DOC_wibox_container_defaults_constraint_EXAMPLE@ -- @author Lukáš Hrázký -- @copyright 2012 Lukáš Hrázký -- @release @AWESOME_VERSION@ diff --git a/tests/examples/wibox/container/defaults/constraint.lua b/tests/examples/wibox/container/defaults/constraint.lua new file mode 100644 index 00000000..1d4fcb88 --- /dev/null +++ b/tests/examples/wibox/container/defaults/constraint.lua @@ -0,0 +1,27 @@ +--DOC_HIDE_ALL +local wibox = require("wibox") + +return { + text = "Some long text", + align = "center", + valign = "center", + widget = wibox.widget.textbox, +}, +{ + { + { + { + text = "Some long text", + align = "center", + valign = "center", + widget = wibox.widget.textbox, + }, + strategy = "max", + height = 8, + width = 50, + widget = wibox.container.constraint + }, + layout = wibox.layout.fixed.horizontal, + }, + layout = wibox.layout.fixed.vertical, +}