awful.widget.only_on_screen: Update the property documentation.
This commit is contained in:
parent
4c4d833a69
commit
60b52ab4c3
|
@ -50,7 +50,7 @@ end
|
||||||
|
|
||||||
--- The widget to be displayed
|
--- The widget to be displayed
|
||||||
-- @property widget
|
-- @property widget
|
||||||
-- @tparam widget widget The widget
|
-- @tparam[opt=nil] widget|nil widget
|
||||||
|
|
||||||
only_on_screen.set_widget = base.set_widget_common
|
only_on_screen.set_widget = base.set_widget_common
|
||||||
|
|
||||||
|
@ -66,10 +66,11 @@ function only_on_screen:set_children(children)
|
||||||
self:set_widget(children[1])
|
self:set_widget(children[1])
|
||||||
end
|
end
|
||||||
|
|
||||||
--- The screen to display on. Can be a screen object, a screen index, a screen
|
--- The screen to display on.
|
||||||
|
-- Can be a screen object, a screen index, a screen
|
||||||
-- name ("VGA1") or the string "primary" for the primary screen.
|
-- name ("VGA1") or the string "primary" for the primary screen.
|
||||||
-- @property screen
|
-- @property screen
|
||||||
-- @tparam screen|string|integer screen The screen.
|
-- @tparam[opt="primary"] screen screen
|
||||||
|
|
||||||
function only_on_screen:set_screen(s)
|
function only_on_screen:set_screen(s)
|
||||||
self._private.screen = s
|
self._private.screen = s
|
||||||
|
@ -83,8 +84,8 @@ end
|
||||||
--- Returns a new `awful.widget.only_on_screen` container.
|
--- Returns a new `awful.widget.only_on_screen` container.
|
||||||
-- This widget makes some other widget visible on just some screens. Use
|
-- This widget makes some other widget visible on just some screens. Use
|
||||||
-- `:set_widget()` to set the widget and `:set_screen()` to set the screen.
|
-- `:set_widget()` to set the widget and `:set_screen()` to set the screen.
|
||||||
-- @param[opt] widget The widget to display.
|
-- @tparam[opt=nil] widget widget The widget to display.
|
||||||
-- @param[opt] s The screen to display on.
|
-- @tparam[opt="primary"] screen s The screen to display on.
|
||||||
-- @treturn table A new only_on_screen container
|
-- @treturn table A new only_on_screen container
|
||||||
-- @constructorfct awful.widget.only_on_screen
|
-- @constructorfct awful.widget.only_on_screen
|
||||||
local function new(widget, s)
|
local function new(widget, s)
|
||||||
|
|
Loading…
Reference in New Issue