awful.wallpaper: Update the property documentation.

This commit is contained in:
Emmanuel Lepage Vallee 2022-08-21 23:02:26 -07:00
parent 9d04ba72f9
commit b5a9250a58
1 changed files with 29 additions and 13 deletions

View File

@ -329,7 +329,6 @@ local function paint()
cr:rectangle(area.x, area.y, area.width, area.height) cr:rectangle(area.x, area.y, area.width, area.height)
cr:fill() cr:fill()
end end
end end
if not wall._private.container then if not wall._private.container then
@ -413,7 +412,7 @@ end)
-- wallpaper will be defined as a normal `wibox` widget tree. -- wallpaper will be defined as a normal `wibox` widget tree.
-- --
-- @property widget -- @property widget
-- @tparam wibox.widget widget -- @tparam[opt=nil] widget|nil widget
-- @see wibox.widget.imagebox -- @see wibox.widget.imagebox
-- @see wibox.container.tile -- @see wibox.container.tile
@ -434,7 +433,9 @@ end)
-- @DOC_awful_wallpaper_dpi1_EXAMPLE@ -- @DOC_awful_wallpaper_dpi1_EXAMPLE@
-- --
-- @property dpi -- @property dpi
-- @tparam[opt=screen.dpi] number dpi -- @tparam[opt=self.screen.dpi] number dpi
-- @propertyunit pixel\_per\_inch
-- @negativeallowed false
-- @see screen -- @see screen
-- @see screen.dpi -- @see screen.dpi
@ -445,6 +446,7 @@ end)
-- --
-- @property screen -- @property screen
-- @tparam screen screen -- @tparam screen screen
-- @propertydefault Obtained from the constructor.
-- @see screens -- @see screens
-- @see add_screen -- @see add_screen
-- @see remove_screen -- @see remove_screen
@ -455,7 +457,8 @@ end)
-- --
-- Some large wallpaper are made to span multiple screens. -- Some large wallpaper are made to span multiple screens.
-- @property screens -- @property screens
-- @tparam table screens -- @tparam[opt={self.screen}] table screens
-- @tablerowtype A list of `screen` objects.
-- @see screen -- @see screen
-- @see add_screen -- @see add_screen
-- @see remove_screen -- @see remove_screen
@ -464,12 +467,12 @@ end)
--- The background color. --- The background color.
-- --
-- It will be used as the "fill" color if the `image` doesn't take all the -- It will be used as the "fill" color if the `image` doesn't take all the
-- screen space. It will also be the default background for the `widget. -- screen space. It will also be the default background for the `widget`.
-- --
-- As usual with colors in `AwesomeWM`, it can also be a gradient or a pattern. -- As usual with colors in `AwesomeWM`, it can also be a gradient or a pattern.
-- --
-- @property bg -- @property bg
-- @tparam gears.color bg -- @tparam[opt=beautiful.wallpaper_bg] color bg
-- @usebeautiful beautiful.wallpaper_bg -- @usebeautiful beautiful.wallpaper_bg
-- @see gears.color -- @see gears.color
@ -480,12 +483,12 @@ end)
-- As usual with colors in `AwesomeWM`, it can also be a gradient or a pattern. -- As usual with colors in `AwesomeWM`, it can also be a gradient or a pattern.
-- --
-- @property fg -- @property fg
-- @tparam gears.color fg -- @tparam[opt=beautiful.wallpaper_fg] color fg
-- @see gears.color -- @see gears.color
--- The default wallpaper background color. --- The default wallpaper background color.
-- @beautiful beautiful.wallpaper_bg -- @beautiful beautiful.wallpaper_bg
-- @tparam gears.color wallpaper_bg -- @tparam color wallpaper_bg
-- @usebeautiful beautiful.wallpaper_fg -- @usebeautiful beautiful.wallpaper_fg
-- @see bg -- @see bg
@ -521,18 +524,23 @@ end)
-- @DOC_awful_wallpaper_padding1_EXAMPLE@ -- @DOC_awful_wallpaper_padding1_EXAMPLE@
-- --
-- @property honor_padding -- @property honor_padding
-- @tparam boolean honor_padding -- @tparam[opt=false] boolean honor_padding
-- @see honor_workarea -- @see honor_workarea
-- @see uncovered_areas -- @see uncovered_areas
--- Returns the list of screen(s) area which won't be covered by the wallpaper. --- Returns the list of screen(s) area which won't be covered by the wallpaper.
-- --
-- When `honor_workarea`, `honor_padding` or panning are used, some section of -- When `honor_workarea`, `honor_padding` or panning are used, some section of
-- the screen won't have a wallpaper. This returns a list of areas tables. Each -- the screen won't have a wallpaper.
-- table has a `x`, `y`, `width` and `height` key.
-- --
-- @property uncovered_areas -- @property uncovered_areas
-- @tparam table uncovered_areas -- @tparam table uncovered_areas
-- @propertydefault This depends on the `honor_workarea` and `honor_padding` values.
-- @tablerowtype A list of area tables with the following keys:
-- @tablerowkey number x
-- @tablerowkey number y
-- @tablerowkey number width
-- @tablerowkey number height
-- @see honor_workarea -- @see honor_workarea
-- @see honor_padding -- @see honor_padding
-- @see uncovered_areas_color -- @see uncovered_areas_color
@ -547,7 +555,7 @@ end)
-- color or a gradient. -- color or a gradient.
-- --
-- @property uncovered_areas_color -- @property uncovered_areas_color
-- @tparam gears.color uncovered_areas_color -- @tparam[opt="transparent"] color uncovered_areas_color
-- @see uncovered_areas -- @see uncovered_areas
--- Defines where the wallpaper is placed when there is multiple screens. --- Defines where the wallpaper is placed when there is multiple screens.
@ -592,7 +600,15 @@ end)
-- @DOC_awful_wallpaper_panning_custom_EXAMPLE@ -- @DOC_awful_wallpaper_panning_custom_EXAMPLE@
-- --
-- @property panning_area -- @property panning_area
-- @tparam function|string panning_area -- @tparam[opt="outer"] function|string panning_area
-- @propertytype string A panning algorithm
-- @propertyvalue "outer"
-- @propertyvalue "inner"
-- @propertyvalue "inner_horizontal"
-- @propertyvalue "inner_vertical"
-- @propertytype function Custom panning function.
-- @functionparam awful.wallpaper wallpaper The wallpaper object.
-- @functionreturn A table with `x`, `y`, `width` and `height` keys,
-- @see uncovered_areas -- @see uncovered_areas
function module:set_panning_area(value) function module:set_panning_area(value)