doc: Fix all the property, theme and field types.

This commit is contained in:
Emmanuel Lepage Vallee 2019-06-08 00:15:59 -04:00
parent 12a7236e2b
commit 90a29f92eb
27 changed files with 187 additions and 89 deletions

View File

@ -217,10 +217,12 @@
--- The default background color. --- The default background color.
-- @beautiful beautiful.bg_normal -- @beautiful beautiful.bg_normal
-- @param color
-- @see bg -- @see bg
--- The default foreground (text) color. --- The default foreground (text) color.
-- @beautiful beautiful.fg_normal -- @beautiful beautiful.fg_normal
-- @param color
-- @see fg -- @see fg
--- Set a declarative widget hierarchy description. --- Set a declarative widget hierarchy description.
@ -232,6 +234,7 @@
-- @param c The background to use. This must either be a cairo pattern object, -- @param c The background to use. This must either be a cairo pattern object,
-- nil or a string that gears.color() understands. -- nil or a string that gears.color() understands.
-- @property bg -- @property bg
-- @param color
-- @see gears.color -- @see gears.color
--- The background image of the drawable. --- The background image of the drawable.
@ -245,6 +248,7 @@
-- @param c The foreground to use. This must either be a cairo pattern object, -- @param c The foreground to use. This must either be a cairo pattern object,
-- nil or a string that gears.color() understands. -- nil or a string that gears.color() understands.
-- @property fg -- @property fg
-- @param color
-- @see gears.color -- @see gears.color
--- Find a widget by a point. --- Find a widget by a point.

View File

@ -49,13 +49,16 @@ local widget = {
} }
--- Don't show hotkeys without descriptions. --- Don't show hotkeys without descriptions.
-- @tfield boolean widget.hide_without_description
-- @param boolean
widget.hide_without_description = true widget.hide_without_description = true
--- Merge hotkey records into one if they have the same modifiers and --- Merge hotkey records into one if they have the same modifiers and
-- description. -- description.
-- @tfield boolean widget.merge_duplicates
-- @param boolean
widget.merge_duplicates = true widget.merge_duplicates = true
--- Hotkeys widget background color. --- Hotkeys widget background color.
-- @beautiful beautiful.hotkeys_bg -- @beautiful beautiful.hotkeys_bg
-- @tparam color hotkeys_bg -- @tparam color hotkeys_bg

View File

@ -314,6 +314,7 @@ end
-- @DOC_text_awful_keygrabber_timeout_EXAMPLE@ -- @DOC_text_awful_keygrabber_timeout_EXAMPLE@
-- --
-- @property timeout -- @property timeout
-- @param number
-- @see gears.timer -- @see gears.timer
-- @see timeout_callback -- @see timeout_callback
@ -393,6 +394,7 @@ end
-- @DOC_text_awful_keygrabber_root_keybindings_EXAMPLE@ -- @DOC_text_awful_keygrabber_root_keybindings_EXAMPLE@
-- --
-- @property root_keybindings -- @property root_keybindings
-- @param table
-- @see export_keybindings -- @see export_keybindings
-- @see keybindings -- @see keybindings

View File

@ -50,6 +50,7 @@ end
--- The icon used for sub-menus. --- The icon used for sub-menus.
-- @beautiful beautiful.menu_submenu_icon -- @beautiful beautiful.menu_submenu_icon
-- @tparam string|gears.surface menu_submenu_icon
--- The menu text font. --- The menu text font.
-- @beautiful beautiful.menu_font -- @beautiful beautiful.menu_font

View File

@ -248,7 +248,7 @@ function screen.preferred(c)
end end
--- The defaults arguments for `awful.screen.focused`. --- The defaults arguments for `awful.screen.focused`.
-- @tfield[opt=nil] table awful.screen.default_focused_args -- @tfield[opt={}] table awful.screen.default_focused_args
--- Get the focused screen. --- Get the focused screen.
-- --
@ -537,7 +537,7 @@ end
--- The number of pixels per inch of the screen. --- The number of pixels per inch of the screen.
-- @property dpi -- @property dpi
-- @treturn number the DPI value. -- @param number the DPI value.
local xft_dpi, fallback_dpi local xft_dpi, fallback_dpi

View File

@ -742,7 +742,7 @@ end
-- -- awful.layout.suit.corner.se, -- -- awful.layout.suit.corner.se,
-- } -- }
-- --
-- @field awful.tag.layouts -- @tfield table awful.tag.layouts
--- The tag client layout. --- The tag client layout.
-- --

View File

@ -38,9 +38,11 @@ local titlebar = {
--- Show tooltips when hover on titlebar buttons. --- Show tooltips when hover on titlebar buttons.
-- @tfield[opt=true] boolean awful.titlebar.enable_tooltip -- @tfield[opt=true] boolean awful.titlebar.enable_tooltip
-- @param boolean
--- Title to display if client name is not set. --- Title to display if client name is not set.
-- @field[opt='\<unknown\>'] awful.titlebar.fallback_name -- @field[opt='\<unknown\>'] awful.titlebar.fallback_name
-- @tparam[opt='\<unknown\>'] string fallback_name
--- The titlebar foreground (text) color. --- The titlebar foreground (text) color.
@ -55,7 +57,7 @@ local titlebar = {
--- The titlebar background image image. --- The titlebar background image image.
-- @beautiful beautiful.titlebar_bgimage_normal -- @beautiful beautiful.titlebar_bgimage_normal
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- The titlebar foreground (text) color. --- The titlebar foreground (text) color.
@ -70,7 +72,7 @@ local titlebar = {
--- The titlebar background image image. --- The titlebar background image image.
-- @beautiful beautiful.titlebar_bgimage -- @beautiful beautiful.titlebar_bgimage
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- The focused titlebar foreground (text) color. --- The focused titlebar foreground (text) color.
@ -85,347 +87,347 @@ local titlebar = {
--- The focused titlebar background image image. --- The focused titlebar background image image.
-- @beautiful beautiful.titlebar_bgimage_focus -- @beautiful beautiful.titlebar_bgimage_focus
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- floating_button_normal. --- floating_button_normal.
-- @beautiful beautiful.titlebar_floating_button_normal -- @beautiful beautiful.titlebar_floating_button_normal
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- maximized_button_normal. --- maximized_button_normal.
-- @beautiful beautiful.titlebar_maximized_button_normal -- @beautiful beautiful.titlebar_maximized_button_normal
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- minimize_button_normal. --- minimize_button_normal.
-- @beautiful beautiful.titlebar_minimize_button_normal -- @beautiful beautiful.titlebar_minimize_button_normal
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- minimize_button_normal_hover. --- minimize_button_normal_hover.
-- @beautiful beautiful.titlebar_minimize_button_normal_hover -- @beautiful beautiful.titlebar_minimize_button_normal_hover
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- minimize_button_normal_press. --- minimize_button_normal_press.
-- @beautiful beautiful.titlebar_minimize_button_normal_press -- @beautiful beautiful.titlebar_minimize_button_normal_press
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- close_button_normal. --- close_button_normal.
-- @beautiful beautiful.titlebar_close_button_normal -- @beautiful beautiful.titlebar_close_button_normal
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- close_button_normal_hover. --- close_button_normal_hover.
-- @beautiful beautiful.titlebar_close_button_normal_hover -- @beautiful beautiful.titlebar_close_button_normal_hover
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- close_button_normal_press. --- close_button_normal_press.
-- @beautiful beautiful.titlebar_close_button_normal_press -- @beautiful beautiful.titlebar_close_button_normal_press
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- ontop_button_normal. --- ontop_button_normal.
-- @beautiful beautiful.titlebar_ontop_button_normal -- @beautiful beautiful.titlebar_ontop_button_normal
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- sticky_button_normal. --- sticky_button_normal.
-- @beautiful beautiful.titlebar_sticky_button_normal -- @beautiful beautiful.titlebar_sticky_button_normal
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- floating_button_focus. --- floating_button_focus.
-- @beautiful beautiful.titlebar_floating_button_focus -- @beautiful beautiful.titlebar_floating_button_focus
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- maximized_button_focus. --- maximized_button_focus.
-- @beautiful beautiful.titlebar_maximized_button_focus -- @beautiful beautiful.titlebar_maximized_button_focus
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- minimize_button_focus. --- minimize_button_focus.
-- @beautiful beautiful.titlebar_minimize_button_focus -- @beautiful beautiful.titlebar_minimize_button_focus
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- minimize_button_focus_hover. --- minimize_button_focus_hover.
-- @beautiful beautiful.titlebar_minimize_button_focus_hover -- @beautiful beautiful.titlebar_minimize_button_focus_hover
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- minimize_button_focus_press. --- minimize_button_focus_press.
-- @beautiful beautiful.titlebar_minimize_button_focus_press -- @beautiful beautiful.titlebar_minimize_button_focus_press
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- close_button_focus. --- close_button_focus.
-- @beautiful beautiful.titlebar_close_button_focus -- @beautiful beautiful.titlebar_close_button_focus
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- close_button_focus_hover. --- close_button_focus_hover.
-- @beautiful beautiful.titlebar_close_button_focus_hover -- @beautiful beautiful.titlebar_close_button_focus_hover
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- close_button_focus_press. --- close_button_focus_press.
-- @beautiful beautiful.titlebar_close_button_focus_press -- @beautiful beautiful.titlebar_close_button_focus_press
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- ontop_button_focus. --- ontop_button_focus.
-- @beautiful beautiful.titlebar_ontop_button_focus -- @beautiful beautiful.titlebar_ontop_button_focus
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- sticky_button_focus. --- sticky_button_focus.
-- @beautiful beautiful.titlebar_sticky_button_focus -- @beautiful beautiful.titlebar_sticky_button_focus
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- floating_button_normal_active. --- floating_button_normal_active.
-- @beautiful beautiful.titlebar_floating_button_normal_active -- @beautiful beautiful.titlebar_floating_button_normal_active
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- floating_button_normal_active_hover. --- floating_button_normal_active_hover.
-- @beautiful beautiful.titlebar_floating_button_normal_active_hover -- @beautiful beautiful.titlebar_floating_button_normal_active_hover
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- floating_button_normal_active_press. --- floating_button_normal_active_press.
-- @beautiful beautiful.titlebar_floating_button_normal_active_press -- @beautiful beautiful.titlebar_floating_button_normal_active_press
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- maximized_button_normal_active. --- maximized_button_normal_active.
-- @beautiful beautiful.titlebar_maximized_button_normal_active -- @beautiful beautiful.titlebar_maximized_button_normal_active
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- maximized_button_normal_active_hover. --- maximized_button_normal_active_hover.
-- @beautiful beautiful.titlebar_maximized_button_normal_active_hover -- @beautiful beautiful.titlebar_maximized_button_normal_active_hover
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- maximized_button_normal_active_press. --- maximized_button_normal_active_press.
-- @beautiful beautiful.titlebar_maximized_button_normal_active_press -- @beautiful beautiful.titlebar_maximized_button_normal_active_press
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- ontop_button_normal_active. --- ontop_button_normal_active.
-- @beautiful beautiful.titlebar_ontop_button_normal_active -- @beautiful beautiful.titlebar_ontop_button_normal_active
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- ontop_button_normal_active_hover. --- ontop_button_normal_active_hover.
-- @beautiful beautiful.titlebar_ontop_button_normal_active_hover -- @beautiful beautiful.titlebar_ontop_button_normal_active_hover
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- ontop_button_normal_active_press. --- ontop_button_normal_active_press.
-- @beautiful beautiful.titlebar_ontop_button_normal_active_press -- @beautiful beautiful.titlebar_ontop_button_normal_active_press
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- sticky_button_normal_active. --- sticky_button_normal_active.
-- @beautiful beautiful.titlebar_sticky_button_normal_active -- @beautiful beautiful.titlebar_sticky_button_normal_active
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- sticky_button_normal_active_hover. --- sticky_button_normal_active_hover.
-- @beautiful beautiful.titlebar_sticky_button_normal_active_hover -- @beautiful beautiful.titlebar_sticky_button_normal_active_hover
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- sticky_button_normal_active_press. --- sticky_button_normal_active_press.
-- @beautiful beautiful.titlebar_sticky_button_normal_active_press -- @beautiful beautiful.titlebar_sticky_button_normal_active_press
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- floating_button_focus_active. --- floating_button_focus_active.
-- @beautiful beautiful.titlebar_floating_button_focus_active -- @beautiful beautiful.titlebar_floating_button_focus_active
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- floating_button_focus_active_hover. --- floating_button_focus_active_hover.
-- @beautiful beautiful.titlebar_floating_button_focus_active_hover -- @beautiful beautiful.titlebar_floating_button_focus_active_hover
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- floating_button_focus_active_press. --- floating_button_focus_active_press.
-- @beautiful beautiful.titlebar_floating_button_focus_active_press -- @beautiful beautiful.titlebar_floating_button_focus_active_press
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- maximized_button_focus_active. --- maximized_button_focus_active.
-- @beautiful beautiful.titlebar_maximized_button_focus_active -- @beautiful beautiful.titlebar_maximized_button_focus_active
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- maximized_button_focus_active_hover. --- maximized_button_focus_active_hover.
-- @beautiful beautiful.titlebar_maximized_button_focus_active_hover -- @beautiful beautiful.titlebar_maximized_button_focus_active_hover
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- maximized_button_focus_active_press. --- maximized_button_focus_active_press.
-- @beautiful beautiful.titlebar_maximized_button_focus_active_press -- @beautiful beautiful.titlebar_maximized_button_focus_active_press
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- ontop_button_focus_active. --- ontop_button_focus_active.
-- @beautiful beautiful.titlebar_ontop_button_focus_active -- @beautiful beautiful.titlebar_ontop_button_focus_active
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- ontop_button_focus_active_hover. --- ontop_button_focus_active_hover.
-- @beautiful beautiful.titlebar_ontop_button_focus_active_hover -- @beautiful beautiful.titlebar_ontop_button_focus_active_hover
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- ontop_button_focus_active_press. --- ontop_button_focus_active_press.
-- @beautiful beautiful.titlebar_ontop_button_focus_active_press -- @beautiful beautiful.titlebar_ontop_button_focus_active_press
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- sticky_button_focus_active. --- sticky_button_focus_active.
-- @beautiful beautiful.titlebar_sticky_button_focus_active -- @beautiful beautiful.titlebar_sticky_button_focus_active
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- sticky_button_focus_active_hover. --- sticky_button_focus_active_hover.
-- @beautiful beautiful.titlebar_sticky_button_focus_active_hover -- @beautiful beautiful.titlebar_sticky_button_focus_active_hover
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- sticky_button_focus_active_press. --- sticky_button_focus_active_press.
-- @beautiful beautiful.titlebar_sticky_button_focus_active_press -- @beautiful beautiful.titlebar_sticky_button_focus_active_press
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- floating_button_normal_inactive. --- floating_button_normal_inactive.
-- @beautiful beautiful.titlebar_floating_button_normal_inactive -- @beautiful beautiful.titlebar_floating_button_normal_inactive
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- floating_button_normal_inactive_hover. --- floating_button_normal_inactive_hover.
-- @beautiful beautiful.titlebar_floating_button_normal_inactive_hover -- @beautiful beautiful.titlebar_floating_button_normal_inactive_hover
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- floating_button_normal_inactive_press. --- floating_button_normal_inactive_press.
-- @beautiful beautiful.titlebar_floating_button_normal_inactive_press -- @beautiful beautiful.titlebar_floating_button_normal_inactive_press
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- maximized_button_normal_inactive. --- maximized_button_normal_inactive.
-- @beautiful beautiful.titlebar_maximized_button_normal_inactive -- @beautiful beautiful.titlebar_maximized_button_normal_inactive
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- maximized_button_normal_inactive_hover. --- maximized_button_normal_inactive_hover.
-- @beautiful beautiful.titlebar_maximized_button_normal_inactive_hover -- @beautiful beautiful.titlebar_maximized_button_normal_inactive_hover
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- maximized_button_normal_inactive_press. --- maximized_button_normal_inactive_press.
-- @beautiful beautiful.titlebar_maximized_button_normal_inactive_press -- @beautiful beautiful.titlebar_maximized_button_normal_inactive_press
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- ontop_button_normal_inactive. --- ontop_button_normal_inactive.
-- @beautiful beautiful.titlebar_ontop_button_normal_inactive -- @beautiful beautiful.titlebar_ontop_button_normal_inactive
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- ontop_button_normal_inactive_hover. --- ontop_button_normal_inactive_hover.
-- @beautiful beautiful.titlebar_ontop_button_normal_inactive_hover -- @beautiful beautiful.titlebar_ontop_button_normal_inactive_hover
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- ontop_button_normal_inactive_press. --- ontop_button_normal_inactive_press.
-- @beautiful beautiful.titlebar_ontop_button_normal_inactive_press -- @beautiful beautiful.titlebar_ontop_button_normal_inactive_press
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- sticky_button_normal_inactive. --- sticky_button_normal_inactive.
-- @beautiful beautiful.titlebar_sticky_button_normal_inactive -- @beautiful beautiful.titlebar_sticky_button_normal_inactive
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- sticky_button_normal_inactive_hover. --- sticky_button_normal_inactive_hover.
-- @beautiful beautiful.titlebar_sticky_button_normal_inactive_hover -- @beautiful beautiful.titlebar_sticky_button_normal_inactive_hover
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- sticky_button_normal_inactive_press. --- sticky_button_normal_inactive_press.
-- @beautiful beautiful.titlebar_sticky_button_normal_inactive_press -- @beautiful beautiful.titlebar_sticky_button_normal_inactive_press
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- floating_button_focus_inactive. --- floating_button_focus_inactive.
-- @beautiful beautiful.titlebar_floating_button_focus_inactive -- @beautiful beautiful.titlebar_floating_button_focus_inactive
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- floating_button_focus_inactive_hover. --- floating_button_focus_inactive_hover.
-- @beautiful beautiful.titlebar_floating_button_focus_inactive_hover -- @beautiful beautiful.titlebar_floating_button_focus_inactive_hover
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- floating_button_focus_inactive_press. --- floating_button_focus_inactive_press.
-- @beautiful beautiful.titlebar_floating_button_focus_inactive_press -- @beautiful beautiful.titlebar_floating_button_focus_inactive_press
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- maximized_button_focus_inactive. --- maximized_button_focus_inactive.
-- @beautiful beautiful.titlebar_maximized_button_focus_inactive -- @beautiful beautiful.titlebar_maximized_button_focus_inactive
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- maximized_button_focus_inactive_hover. --- maximized_button_focus_inactive_hover.
-- @beautiful beautiful.titlebar_maximized_button_focus_inactive_hover -- @beautiful beautiful.titlebar_maximized_button_focus_inactive_hover
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- maximized_button_focus_inactive_press. --- maximized_button_focus_inactive_press.
-- @beautiful beautiful.titlebar_maximized_button_focus_inactive_press -- @beautiful beautiful.titlebar_maximized_button_focus_inactive_press
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- ontop_button_focus_inactive. --- ontop_button_focus_inactive.
-- @beautiful beautiful.titlebar_ontop_button_focus_inactive -- @beautiful beautiful.titlebar_ontop_button_focus_inactive
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- ontop_button_focus_inactive_hover. --- ontop_button_focus_inactive_hover.
-- @beautiful beautiful.titlebar_ontop_button_focus_inactive_hover -- @beautiful beautiful.titlebar_ontop_button_focus_inactive_hover
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- ontop_button_focus_inactive_press. --- ontop_button_focus_inactive_press.
-- @beautiful beautiful.titlebar_ontop_button_focus_inactive_press -- @beautiful beautiful.titlebar_ontop_button_focus_inactive_press
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- sticky_button_focus_inactive. --- sticky_button_focus_inactive.
-- @beautiful beautiful.titlebar_sticky_button_focus_inactive -- @beautiful beautiful.titlebar_sticky_button_focus_inactive
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- sticky_button_focus_inactive_hover. --- sticky_button_focus_inactive_hover.
-- @beautiful beautiful.titlebar_sticky_button_focus_inactive_hover -- @beautiful beautiful.titlebar_sticky_button_focus_inactive_hover
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- sticky_button_focus_inactive_press. --- sticky_button_focus_inactive_press.
-- @beautiful beautiful.titlebar_sticky_button_focus_inactive_press -- @beautiful beautiful.titlebar_sticky_button_focus_inactive_press
-- @param surface -- @tparam gears.surface|string path
-- @see gears.surface -- @see gears.surface
--- Set a declarative widget hierarchy description. --- Set a declarative widget hierarchy description.

View File

@ -86,27 +86,34 @@ local offset = {
--- The tooltip border color. --- The tooltip border color.
-- @beautiful beautiful.tooltip_border_color -- @beautiful beautiful.tooltip_border_color
-- @param color
--- The tooltip background color. --- The tooltip background color.
-- @beautiful beautiful.tooltip_bg -- @beautiful beautiful.tooltip_bg
-- @param color
--- The tooltip foregound (text) color. --- The tooltip foregound (text) color.
-- @beautiful beautiful.tooltip_fg -- @beautiful beautiful.tooltip_fg
-- @param color
--- The tooltip font. --- The tooltip font.
-- @beautiful beautiful.tooltip_font -- @beautiful beautiful.tooltip_font
-- @param string
--- The tooltip border width. --- The tooltip border width.
-- @beautiful beautiful.tooltip_border_width -- @beautiful beautiful.tooltip_border_width
-- @param number
--- The tooltip opacity. --- The tooltip opacity.
-- @beautiful beautiful.tooltip_opacity -- @beautiful beautiful.tooltip_opacity
-- @param number opacity Between 0 and 1
--- The default tooltip shape. --- The default tooltip shape.
-- The default shape for all tooltips is a rectangle. However, by setting this variable -- The default shape for all tooltips is a rectangle. However, by setting
-- they can default to rounded rectangle or stretched octogons. -- this variable they can default to rounded rectangle or stretched octogons.
-- @beautiful beautiful.tooltip_shape -- @beautiful beautiful.tooltip_shape
-- @tparam[opt=gears.shape.rectangle] function shape A `gears.shape` compatible function -- @tparam[opt=gears.shape.rectangle] gears.shape shape A `gears.shape`
-- compatible function
-- @see shape -- @see shape
-- @see gears.shape -- @see gears.shape
@ -251,6 +258,7 @@ end
-- * top -- * top
-- --
-- @property align -- @property align
-- @param string
-- @see beautiful.tooltip_align -- @see beautiful.tooltip_align
-- @see mode -- @see mode
-- @see preferred_positions -- @see preferred_positions
@ -280,6 +288,7 @@ end
-- @DOC_awful_tooltip_shape_EXAMPLE@ -- @DOC_awful_tooltip_shape_EXAMPLE@
-- --
-- @property shape -- @property shape
-- @tparam gears.shape shape
-- @see gears.shape -- @see gears.shape
-- @see beautiful.tooltip_shape -- @see beautiful.tooltip_shape
@ -466,6 +475,7 @@ end
-- @DOC_awful_tooltip_border_color_EXAMPLE@ -- @DOC_awful_tooltip_border_color_EXAMPLE@
-- --
-- @property border_color -- @property border_color
-- @param color
-- @param gears.color -- @param gears.color
function tooltip:set_border_color(val) function tooltip:set_border_color(val)

View File

@ -31,6 +31,7 @@ local util = {}
util.table = {} util.table = {}
--- The default shell used when spawing processes. --- The default shell used when spawing processes.
-- @param string
util.shell = os.getenv("SHELL") or "/bin/sh" util.shell = os.getenv("SHELL") or "/bin/sh"
--- Execute a system command and road the output. --- Execute a system command and road the output.

View File

@ -153,7 +153,7 @@ taglist.filter, taglist.source = {}, {}
-- This will be the fallback for state specific shapes. -- This will be the fallback for state specific shapes.
-- To get a shape for the whole taglist, use `wibox.container.background`. -- To get a shape for the whole taglist, use `wibox.container.background`.
-- @beautiful beautiful.taglist_shape -- @beautiful beautiful.taglist_shape
-- @param[opt=rectangle] gears.shape -- @tparam[opt=gears.shape.rectangle] gears.shape shape
-- @see gears.shape -- @see gears.shape
-- @see beautiful.taglist_shape_empty -- @see beautiful.taglist_shape_empty
-- @see beautiful.taglist_shape_focus -- @see beautiful.taglist_shape_focus
@ -172,7 +172,7 @@ taglist.filter, taglist.source = {}, {}
--- The shape used for the empty elements. --- The shape used for the empty elements.
-- @beautiful beautiful.taglist_shape_empty -- @beautiful beautiful.taglist_shape_empty
-- @param[opt=rectangle] gears.shape -- @tparam[opt=gears.shape.rectangle] gears.shape shape
-- @see gears.shape -- @see gears.shape
--- The shape used for the empty elements border width. --- The shape used for the empty elements border width.
@ -187,7 +187,7 @@ taglist.filter, taglist.source = {}, {}
--- The shape used for the selected elements. --- The shape used for the selected elements.
-- @beautiful beautiful.taglist_shape_focus -- @beautiful beautiful.taglist_shape_focus
-- @param[opt=rectangle] gears.shape -- @tparam[opt=gears.shape.rectangle] gears.shape shape
-- @see gears.shape -- @see gears.shape
--- The shape used for the selected elements border width. --- The shape used for the selected elements border width.
@ -202,7 +202,7 @@ taglist.filter, taglist.source = {}, {}
--- The shape used for the urgent elements. --- The shape used for the urgent elements.
-- @beautiful beautiful.taglist_shape_urgent -- @beautiful beautiful.taglist_shape_urgent
-- @param[opt=rectangle] gears.shape -- @tparam[opt=gears.shape.rectangle] gears.shape shape
-- @see gears.shape -- @see gears.shape
--- The shape used for the urgent elements border width. --- The shape used for the urgent elements border width.
@ -217,7 +217,7 @@ taglist.filter, taglist.source = {}, {}
--- The shape used for the volatile elements. --- The shape used for the volatile elements.
-- @beautiful beautiful.taglist_shape_volatile -- @beautiful beautiful.taglist_shape_volatile
-- @param[opt=rectangle] gears.shape -- @tparam[opt=gears.shape.rectangle] gears.shape shape
-- @see gears.shape -- @see gears.shape
--- The shape used for the volatile elements border width. --- The shape used for the volatile elements border width.

View File

@ -89,34 +89,44 @@ local active_font
--- The default font. --- The default font.
-- @beautiful beautiful.font -- @beautiful beautiful.font
-- @param string
-- The default background color. -- The default background color.
-- @beautiful beautiful.bg_normal -- @beautiful beautiful.bg_normal
-- @param color
-- The default focused element background color. -- The default focused element background color.
-- @beautiful beautiful.bg_focus -- @beautiful beautiful.bg_focus
-- @param color
-- The default urgent element background color. -- The default urgent element background color.
-- @beautiful beautiful.bg_urgent -- @beautiful beautiful.bg_urgent
-- @param color
-- The default minimized element background color. -- The default minimized element background color.
-- @beautiful beautiful.bg_minimize -- @beautiful beautiful.bg_minimize
-- @param color
-- The system tray background color. -- The system tray background color.
-- Please note that only solid colors are currently supported. -- Please note that only solid colors are currently supported.
-- @beautiful beautiful.bg_systray -- @beautiful beautiful.bg_systray
-- @param color
-- The default focused element foreground (text) color. -- The default focused element foreground (text) color.
-- @beautiful beautiful.fg_normal -- @beautiful beautiful.fg_normal
-- @param color
-- The default focused element foreground (text) color. -- The default focused element foreground (text) color.
-- @beautiful beautiful.fg_focus -- @beautiful beautiful.fg_focus
-- @param color
-- The default urgent element foreground (text) color. -- The default urgent element foreground (text) color.
-- @beautiful beautiful.fg_urgent -- @beautiful beautiful.fg_urgent
-- @param color
-- The default minimized element foreground (text) color. -- The default minimized element foreground (text) color.
-- @beautiful beautiful.fg_minimize -- @beautiful beautiful.fg_minimize
-- @param color
--- The gap between clients. --- The gap between clients.
-- @beautiful beautiful.useless_gap -- @beautiful beautiful.useless_gap
@ -124,31 +134,39 @@ local active_font
--- The client border width. --- The client border width.
-- @beautiful beautiful.border_width -- @beautiful beautiful.border_width
-- @param number
--- The default clients border color. --- The default clients border color.
-- Note that only solid colors are supported. -- Note that only solid colors are supported.
-- @beautiful beautiful.border_normal -- @beautiful beautiful.border_normal
-- @param color
--- The focused client border color. --- The focused client border color.
-- Note that only solid colors are supported. -- Note that only solid colors are supported.
-- @beautiful beautiful.border_focus -- @beautiful beautiful.border_focus
-- @param color
--- The marked clients border color. --- The marked clients border color.
-- Note that only solid colors are supported. -- Note that only solid colors are supported.
-- @beautiful beautiful.border_marked -- @beautiful beautiful.border_marked
-- @param color
--- The wallpaper path. --- The wallpaper path.
-- @beautiful beautiful.wallpaper -- @beautiful beautiful.wallpaper
-- @tparam string|gears.surface wallpaper
-- The icon theme name. -- The icon theme name.
-- It has to be a directory in `/usr/share/icons` or an XDG icon folder. -- It has to be a directory in `/usr/share/icons` or an XDG icon folder.
-- @beautiful beautiful.icon_theme -- @beautiful beautiful.icon_theme
-- @param string
--- The Awesome icon path. --- The Awesome icon path.
-- @beautiful beautiful.awesome_icon -- @beautiful beautiful.awesome_icon
-- @tparam string|gears.surface icon
--- The current theme path (if any) --- The current theme path (if any)
-- @tfield string beautiful.theme_path -- @tfield string beautiful.theme_path
-- @param string
--- Load a font from a string or a font description. --- Load a font from a string or a font description.
-- --

View File

@ -217,6 +217,7 @@ matrix_mt.__mul = matrix.multiply
matrix_mt.__tostring = matrix.tostring matrix_mt.__tostring = matrix.tostring
--- A constant for the identity matrix. --- A constant for the identity matrix.
-- @param matrix
matrix.identity = matrix.create(1, 0, 0, 1, 0, 0) matrix.identity = matrix.create(1, 0, 0, 1, 0, 0)
return matrix return matrix

View File

@ -48,9 +48,11 @@ end
--- Menubar normal text color. --- Menubar normal text color.
-- @beautiful beautiful.menubar_fg_normal -- @beautiful beautiful.menubar_fg_normal
-- @param color
--- Menubar normal background color. --- Menubar normal background color.
-- @beautiful beautiful.menubar_bg_normal -- @beautiful beautiful.menubar_bg_normal
-- @param color
--- Menubar border width. --- Menubar border width.
-- @beautiful beautiful.menubar_border_width -- @beautiful beautiful.menubar_border_width
@ -58,12 +60,15 @@ end
--- Menubar border color. --- Menubar border color.
-- @beautiful beautiful.menubar_border_color -- @beautiful beautiful.menubar_border_color
-- @param color
--- Menubar selected item text color. --- Menubar selected item text color.
-- @beautiful beautiful.menubar_fg_normal -- @beautiful beautiful.menubar_fg_normal
-- @param color
--- Menubar selected item background color. --- Menubar selected item background color.
-- @beautiful beautiful.menubar_bg_normal -- @beautiful beautiful.menubar_bg_normal
-- @param color
-- menubar -- menubar

View File

@ -32,6 +32,7 @@ local utils = {}
-- Options section -- Options section
--- Terminal which applications that need terminal would open in. --- Terminal which applications that need terminal would open in.
-- @param[opt="xterm"] string
utils.terminal = 'xterm' utils.terminal = 'xterm'
--- The default icon for applications that don't provide any icon in --- The default icon for applications that don't provide any icon in
@ -39,6 +40,7 @@ utils.terminal = 'xterm'
local default_icon = nil local default_icon = nil
--- Name of the WM for the OnlyShowIn entry in the .desktop file. --- Name of the WM for the OnlyShowIn entry in the .desktop file.
-- @param[opt="awesome"] string
utils.wm_name = "awesome" utils.wm_name = "awesome"
-- Maps keys in desktop entries to suitable getter function. -- Maps keys in desktop entries to suitable getter function.

View File

@ -41,7 +41,7 @@ local action = {}
--- The action icon. --- The action icon.
-- @property icon -- @property icon
-- @param gears.surface -- @tparam gears.surface|string icon
--- The notification. --- The notification.
-- @property notification -- @property notification

View File

@ -163,6 +163,7 @@ local notification = {}
--- Widget shape. --- Widget shape.
--@DOC_naughty_shape_EXAMPLE@ --@DOC_naughty_shape_EXAMPLE@
-- @property shape -- @property shape
-- @param gears.shape
--- Widget opacity. --- Widget opacity.
-- @property opacity -- @property opacity

View File

@ -22,12 +22,15 @@ local arcchart = { mt = {} }
--- The progressbar border background color. --- The progressbar border background color.
-- @beautiful beautiful.arcchart_border_color -- @beautiful beautiful.arcchart_border_color
-- @param color
--- The progressbar foreground color. --- The progressbar foreground color.
-- @beautiful beautiful.arcchart_color -- @beautiful beautiful.arcchart_color
-- @param color
--- The progressbar border width. --- The progressbar border width.
-- @beautiful beautiful.arcchart_border_width -- @beautiful beautiful.arcchart_border_width
-- @param number
--- The padding between the outline and the progressbar. --- The padding between the outline and the progressbar.
-- @beautiful beautiful.arcchart_paddings -- @beautiful beautiful.arcchart_paddings
@ -233,6 +236,7 @@ end
--- The border background color. --- The border background color.
--@DOC_wibox_container_arcchart_border_color_EXAMPLE@ --@DOC_wibox_container_arcchart_border_color_EXAMPLE@
-- @property border_color -- @property border_color
-- @param color
--- The arcchart values foreground colors. --- The arcchart values foreground colors.
--@DOC_wibox_container_arcchart_color_EXAMPLE@ --@DOC_wibox_container_arcchart_color_EXAMPLE@
@ -246,9 +250,11 @@ end
--- The minimum value. --- The minimum value.
-- @property min_value -- @property min_value
-- @param number
--- The maximum value. --- The maximum value.
-- @property max_value -- @property max_value
-- @param number
--- The radial background. --- The radial background.
--@DOC_wibox_container_arcchart_bg_EXAMPLE@ --@DOC_wibox_container_arcchart_bg_EXAMPLE@

View File

@ -62,6 +62,7 @@ end
--- Set the strategy to use for the constraining. Valid values are 'max', --- Set the strategy to use for the constraining. Valid values are 'max',
-- 'min' or 'exact'. Throws an error on invalid values. -- 'min' or 'exact'. Throws an error on invalid values.
-- @property strategy -- @property strategy
-- @tparam string strategy Either 'max', 'min' or 'exact'
function constraint:set_strategy(val) function constraint:set_strategy(val)
local func = { local func = {

View File

@ -24,12 +24,15 @@ local radialprogressbar = { mt = {} }
--- The progressbar border background color. --- The progressbar border background color.
-- @beautiful beautiful.radialprogressbar_border_color -- @beautiful beautiful.radialprogressbar_border_color
-- @param color
--- The progressbar foreground color. --- The progressbar foreground color.
-- @beautiful beautiful.radialprogressbar_color -- @beautiful beautiful.radialprogressbar_color
-- @param color
--- The progressbar border width. --- The progressbar border width.
-- @beautiful beautiful.radialprogressbar_border_width -- @beautiful beautiful.radialprogressbar_border_width
-- @param number
--- The padding between the outline and the progressbar. --- The padding between the outline and the progressbar.
-- @beautiful beautiful.radialprogressbar_paddings -- @beautiful beautiful.radialprogressbar_paddings
@ -190,10 +193,12 @@ end
--- The border background color. --- The border background color.
--@DOC_wibox_container_radialprogressbar_border_color_EXAMPLE@ --@DOC_wibox_container_radialprogressbar_border_color_EXAMPLE@
-- @property border_color -- @property border_color
-- @param color
--- The border foreground color. --- The border foreground color.
--@DOC_wibox_container_radialprogressbar_color_EXAMPLE@ --@DOC_wibox_container_radialprogressbar_color_EXAMPLE@
-- @property color -- @property color
-- @param color
--- The border width. --- The border width.
--@DOC_wibox_container_radialprogressbar_border_width_EXAMPLE@ --@DOC_wibox_container_radialprogressbar_border_width_EXAMPLE@
@ -202,9 +207,11 @@ end
--- The minimum value. --- The minimum value.
-- @property min_value -- @property min_value
-- @param number
--- The maximum value. --- The maximum value.
-- @property max_value -- @property max_value
-- @param number
for _, prop in ipairs {"max_value", "min_value", "border_color", "color", for _, prop in ipairs {"max_value", "min_value", "border_color", "color",
"border_width", "paddings"} do "border_width", "paddings"} do

View File

@ -142,6 +142,7 @@ end
--- Set the layout's first widget. --- Set the layout's first widget.
-- This is the widget that is at the left/top -- This is the widget that is at the left/top
-- @property first -- @property first
-- @param widget
function align:set_first(widget) function align:set_first(widget)
if self._private.first == widget then if self._private.first == widget then
@ -153,6 +154,7 @@ end
--- Set the layout's second widget. This is the centered one. --- Set the layout's second widget. This is the centered one.
-- @property second -- @property second
-- @param widget
function align:set_second(widget) function align:set_second(widget)
if self._private.second == widget then if self._private.second == widget then
@ -165,6 +167,7 @@ end
--- Set the layout's third widget. --- Set the layout's third widget.
-- This is the widget that is at the right/bottom -- This is the widget that is at the right/bottom
-- @property third -- @property third
-- @param widget
function align:set_third(widget) function align:set_third(widget)
if self._private.third == widget then if self._private.third == widget then
@ -184,6 +187,7 @@ end
-- This can be used to replace all 3 widgets at once. -- This can be used to replace all 3 widgets at once.
-- @treturn table a list of all widgets -- @treturn table a list of all widgets
-- @property children -- @property children
-- @param table
function align:get_children() function align:get_children()
return gtable.from_sparse {self._private.first, self._private.second, self._private.third} return gtable.from_sparse {self._private.first, self._private.second, self._private.third}

View File

@ -291,6 +291,7 @@ end
-- widget will get all the space that is left. If this is false, the last widget -- widget will get all the space that is left. If this is false, the last widget
-- won't be handled specially and there can be space left unused. -- won't be handled specially and there can be space left unused.
-- @property fill_space -- @property fill_space
-- @param boolean
function fixed:fill_space(val) function fixed:fill_space(val)
if self._private.fill_space ~= val then if self._private.fill_space ~= val then

View File

@ -21,29 +21,37 @@ local checkbox = {}
--- The outer (unchecked area) border width. --- The outer (unchecked area) border width.
-- @beautiful beautiful.checkbox_border_width -- @beautiful beautiful.checkbox_border_width
-- @param number
--- The outer (unchecked area) background color, pattern or gradient. --- The outer (unchecked area) background color, pattern or gradient.
-- @beautiful beautiful.checkbox_bg -- @beautiful beautiful.checkbox_bg
-- @param color
--- The outer (unchecked area) border color. --- The outer (unchecked area) border color.
-- @beautiful beautiful.checkbox_border_color -- @beautiful beautiful.checkbox_border_color
-- @param color
--- The checked part border color. --- The checked part border color.
-- @beautiful beautiful.checkbox_check_border_color -- @beautiful beautiful.checkbox_check_border_color
-- @param color
--- The checked part border width. --- The checked part border width.
-- @beautiful beautiful.checkbox_check_border_width -- @beautiful beautiful.checkbox_check_border_width
-- @param number
--- The checked part filling color. --- The checked part filling color.
-- @beautiful beautiful.checkbox_check_color -- @beautiful beautiful.checkbox_check_color
-- @param number
--- The outer (unchecked area) shape. --- The outer (unchecked area) shape.
-- @beautiful beautiful.checkbox_shape -- @beautiful beautiful.checkbox_shape
-- @tparam gears.shape shape
-- @see gears.shape -- @see gears.shape
--- The checked part shape. --- The checked part shape.
-- If none is set, then the `shape` property will be used. -- If none is set, then the `shape` property will be used.
-- @beautiful beautiful.checkbox_check_shape -- @beautiful beautiful.checkbox_check_shape
-- @tparam gears.shape shape
-- @see gears.shape -- @see gears.shape
--- The padding between the outline and the progressbar. --- The padding between the outline and the progressbar.
@ -59,35 +67,44 @@ local checkbox = {}
-- filling color. Note that `check_color` and `border_color` have priority -- filling color. Note that `check_color` and `border_color` have priority
-- over this property. -- over this property.
-- @beautiful beautiful.checkbox_color -- @beautiful beautiful.checkbox_color
-- @param color
--- The outer (unchecked area) border width. --- The outer (unchecked area) border width.
-- @property border_width -- @property border_width
-- @param number
--- The outer (unchecked area) background color, pattern or gradient. --- The outer (unchecked area) background color, pattern or gradient.
--@DOC_wibox_widget_checkbox_bg_EXAMPLE@ --@DOC_wibox_widget_checkbox_bg_EXAMPLE@
-- @property bg -- @property bg
-- @param color
--- The outer (unchecked area) border color. --- The outer (unchecked area) border color.
-- @property border_color -- @property border_color
-- @param color
--- The checked part border color. --- The checked part border color.
-- @property check_border_color -- @property check_border_color
-- @param color
--- The checked part border width. --- The checked part border width.
-- @property check_border_width -- @property check_border_width
-- @param number
--- The checked part filling color. --- The checked part filling color.
-- @property check_color -- @property check_color
-- @param color
--- The outer (unchecked area) shape. --- The outer (unchecked area) shape.
--@DOC_wibox_widget_checkbox_shape_EXAMPLE@ --@DOC_wibox_widget_checkbox_shape_EXAMPLE@
-- @property shape -- @property shape
-- @tparam gears.shape shape
-- @see gears.shape -- @see gears.shape
--- The checked part shape. --- The checked part shape.
-- If none is set, then the `shape` property will be used. -- If none is set, then the `shape` property will be used.
--@DOC_wibox_widget_checkbox_check_shape_EXAMPLE@ --@DOC_wibox_widget_checkbox_check_shape_EXAMPLE@
-- @property check_shape -- @property check_shape
-- @tparam gears.shape shape
-- @see gears.shape -- @see gears.shape
--- The padding between the outline and the progressbar. --- The padding between the outline and the progressbar.
@ -103,6 +120,7 @@ local checkbox = {}
-- filling color. Note that `check_color` and `border_color` have priority -- filling color. Note that `check_color` and `border_color` have priority
-- over this property. -- over this property.
-- @property color -- @property color
-- @param color
local function outline_workarea(self, width, height) local function outline_workarea(self, width, height)
local offset = (self._private.border_width or local offset = (self._private.border_width or
@ -210,9 +228,6 @@ for _, prop in ipairs {"border_width", "bg", "border_color", "check_border_color
end end
end end
--- The checkbox color.
-- @property color
function checkbox:set_paddings(val) function checkbox:set_paddings(val)
self._private.paddings = type(val) == "number" and { self._private.paddings = type(val) == "number" and {
left = val, left = val,

View File

@ -97,12 +97,15 @@ local graph = { mt = {} }
--- The graph background color. --- The graph background color.
-- @beautiful beautiful.graph_bg -- @beautiful beautiful.graph_bg
-- @param color
--- The graph foreground color. --- The graph foreground color.
-- @beautiful beautiful.graph_fg -- @beautiful beautiful.graph_fg
-- @param color
--- The graph border color. --- The graph border color.
-- @beautiful beautiful.graph_border_color -- @beautiful beautiful.graph_border_color
-- @param color
local properties = { "width", "height", "border_color", "stack", local properties = { "width", "height", "border_color", "stack",
"stack_colors", "color", "background_color", "stack_colors", "color", "background_color",

View File

@ -119,7 +119,7 @@ end
-- is trimmed. -- is trimmed.
-- --
-- @property clip_shape -- @property clip_shape
-- @tparam function clip_shape A `gears_shape` compatible shape function -- @tparam gears.shape clip_shape A `gears_shape` compatible shape function
-- @see gears.shape -- @see gears.shape
-- @see set_clip_shape -- @see set_clip_shape

View File

@ -41,6 +41,7 @@ local progressbar = { mt = {} }
--- The progressbar border width. --- The progressbar border width.
-- @property border_width -- @property border_width
-- @param number
--- The progressbar inner border color. --- The progressbar inner border color.
-- If the value is nil, no border will be drawn. -- If the value is nil, no border will be drawn.
@ -51,6 +52,7 @@ local progressbar = { mt = {} }
--- The progressbar inner border width. --- The progressbar inner border width.
-- @property bar_border_width -- @property bar_border_width
-- @param number
--- The progressbar foreground color. --- The progressbar foreground color.
-- --
@ -114,29 +116,37 @@ local progressbar = { mt = {} }
--- The progressbar background color. --- The progressbar background color.
-- @beautiful beautiful.progressbar_bg -- @beautiful beautiful.progressbar_bg
-- @param color
--- The progressbar foreground color. --- The progressbar foreground color.
-- @beautiful beautiful.progressbar_fg -- @beautiful beautiful.progressbar_fg
-- @param color
--- The progressbar shape. --- The progressbar shape.
-- @beautiful beautiful.progressbar_shape -- @beautiful beautiful.progressbar_shape
-- @tparam gears.shape shape
-- @see gears.shape -- @see gears.shape
--- The progressbar border color. --- The progressbar border color.
-- @beautiful beautiful.progressbar_border_color -- @beautiful beautiful.progressbar_border_color
-- @param color
--- The progressbar outer border width. --- The progressbar outer border width.
-- @beautiful beautiful.progressbar_border_width -- @beautiful beautiful.progressbar_border_width
-- @param number
--- The progressbar inner shape. --- The progressbar inner shape.
-- @beautiful beautiful.progressbar_bar_shape -- @beautiful beautiful.progressbar_bar_shape
-- @tparam gears.shape shape
-- @see gears.shape -- @see gears.shape
--- The progressbar bar border width. --- The progressbar bar border width.
-- @beautiful beautiful.progressbar_bar_border_width -- @beautiful beautiful.progressbar_bar_border_width
-- @param number
--- The progressbar bar border color. --- The progressbar bar border color.
-- @beautiful beautiful.progressbar_bar_border_color -- @beautiful beautiful.progressbar_bar_border_color
-- @param color
--- The progressbar margins. --- The progressbar margins.
-- Note that if the `clip` is disabled, this allows the background to be smaller -- Note that if the `clip` is disabled, this allows the background to be smaller

View File

@ -87,7 +87,7 @@ local separator = {}
--- The separator border color. --- The separator border color.
-- @beautiful beautiful.separator_border_color -- @beautiful beautiful.separator_border_color
-- @param gears.color -- @param color
-- @see border_color -- @see border_color
--- The separator border width. --- The separator border width.

View File

@ -20,6 +20,7 @@ local textbox = { mt = {} }
--- The textbox font. --- The textbox font.
-- @beautiful beautiful.font -- @beautiful beautiful.font
-- @param string
--- Set the DPI of a Pango layout --- Set the DPI of a Pango layout
local function setup_dpi(box, dpi) local function setup_dpi(box, dpi)