diff --git a/luadoc/awesome.lua b/luadoc/awesome.lua index ec6c61d64..0aae3fd95 100644 --- a/luadoc/awesome.lua +++ b/luadoc/awesome.lua @@ -1,74 +1,76 @@ --- awesome core API -- @author Julien Danjou <julien@danjou.info> -- @copyright 2008-2009 Julien Danjou -module("awesome") +-- @module awesome --- awesome global table. +-- -- @field version The version of awesome. -- @field release The release name of awesome. -- @field conffile The configuration file which has been loaded. -- @field startup True if we are still in startup, false otherwise. -- @field startup_errors Error message for errors that occured during startup. -- @field composite_manager_running True if a composite manager is running. --- @class table --- @name awesome +-- @table awesome --- Quit awesome. --- @name quit --- @class function +-- +-- @function quit --- Execute another application, probably a window manager, to replace -- awesome. +-- -- @param cmd The command line to execute. --- @name exec --- @class function +-- @function exec --- Restart awesome. +-- -- @name restart -- @class function --- Spawn a program. +-- -- @param cmd The command to launch. Either a string or a table of strings. -- @param use_sn Use startup-notification, true or false, default to true. -- @return Process ID if everything is OK, or an error string if an error occured. --- Load an image +-- -- @param name The file name -- @return A cairo image surface as light user datum --- @name load_image --- @class function +-- @function load_image --- Register a new xproperty. +-- -- @param name The name of the X11 property -- @param type One of "string", "number" or "boolean" --- @name register_xproperty --- @class function +-- @function register_xproperty --- Change a xproperty. +-- -- @param name The name of the X11 property -- @param value The new value for the property --- @name set_xproperty --- @class function +-- @function set_xproperty --- Get the value of a xproperty. +-- -- @param name The name of the X11 property --- @name get_xproperty --- @class function +-- @function get_xproperty --- Add a global signal. +-- -- @param name A string with the event name. -- @param func The function to call. --- @name connect_signal --- @class function +-- @function connect_signal --- Remove a global signal. +-- -- @param name A string with the event name. -- @param func The function to call. --- @name disconnect_signal --- @class function +-- @function disconnect_signal --- Emit a global signal. +-- -- @param name A string with the event name. -- @param ... Signal arguments. --- @name emit_signal --- @class function +-- @function emit_signal diff --git a/luadoc/button.lua b/luadoc/button.lua index 124dc84d0..4f2a7563c 100644 --- a/luadoc/button.lua +++ b/luadoc/button.lua @@ -1,34 +1,30 @@ --- awesome button API -- @author Julien Danjou <julien@danjou.info> -- @copyright 2008-2009 Julien Danjou -module("button") +-- @classmod button --- Button object. --- @field button The mouse button number, or 0 for any button. --- @field modifiers The modifier key table that should be pressed while the --- button is pressed. --- @class table --- @name button +-- +-- @tfield int button The mouse button number, or 0 for any button. +-- @tfield table modifiers The modifier key table that should be pressed while the +-- button is pressed. +-- @table button --- Add a signal. --- @param name A signal name. --- @param func A function to call when the signal is emitted. --- @name connect_signal --- @class function +-- @tparam string name A signal name. +-- @tparam func func A function to call when the signal is emitted. +-- @function connect_signal --- Remove a signal. --- @param name A signal name. --- @param func A function to remove. --- @name disconnect_signal --- @class function +-- @tparam string name A signal name. +-- @tparam func func A function to remove. +-- @function disconnect_signal --- Emit a signal. --- @param name A signal name. +-- @tparam string name A signal name. -- @param ... Various arguments, optional. --- @name emit_signal --- @class function +-- @function emit_signal --- Get the number of instances. --- @return The number of button objects alive. --- @name instances --- @class function +-- @treturn int The number of button objects alive. +-- @function instances diff --git a/luadoc/client.lua b/luadoc/client.lua index ee56394f4..0de0ff34c 100644 --- a/luadoc/client.lua +++ b/luadoc/client.lua @@ -1,9 +1,10 @@ --- awesome client API -- @author Julien Danjou <julien@danjou.info> -- @copyright 2008-2009 Julien Danjou -module("client") +-- @classmod client --- Client object. +-- -- @field window The X window id. -- @field name The client title. -- @field skip_taskbar True if the client does not want to be in taskbar. @@ -17,9 +18,9 @@ module("client") -- @field icon The client icon. -- @field screen Client screen. -- @field hidden Define if the client must be hidden, i.e. never mapped, --- invisible in taskbar. +-- invisible in taskbar. -- @field minimized Define it the client must be iconify, i.e. only visible in --- taskbar. +-- taskbar. -- @field size_hints_honor Honor size hints, i.e. respect size ratio. -- @field border_width The client border width. -- @field border_color The client border color. @@ -38,7 +39,7 @@ module("client") -- @field group_window Window identification unique to a group of windows. -- @field leader_window Identification unique to windows spawned by the same command. -- @field size_hints A table with size hints of the client: user_position, --- user_size, program_position, program_size, etc. +-- user_size, program_position, program_size, etc. -- @field sticky Set the client sticky, i.e. available on all tags. -- @field modal Indicate if the client is modal. -- @field focusable True if the client can receive the input focus. @@ -48,25 +49,24 @@ module("client") -- @field shape_client_clip The client's clip shape as set by the program as a (native) cairo surface. -- @field startup_id The FreeDesktop StartId. -- @field valid If the client that this object refers to is still managed by awesome. --- @class table --- @name client +-- @table client --- Get all clients into a table. +-- -- @param screen An optional screen number. -- @return A table with all clients. --- @name get --- @class function +-- @function get --- Check if a client is visible on its screen. +-- -- @return A boolean value, true if the client is visible, false otherwise. --- @name isvisible --- @class function +-- @function isvisible --- Return client geometry. +-- -- @param arg1 A table with new coordinates, or none. -- @return A table with client coordinates. --- @name geometry --- @class function +-- @function geometry --- Apply size hints to a size. -- @param width Desired width of client @@ -77,80 +77,79 @@ module("client") -- @class function --- Return client struts (reserved space at the edge of the screen). +-- -- @param struts A table with new strut values, or none. -- @return A table with strut values. --- @name struts --- @class function +-- @function struts --- Get or set mouse buttons bindings for a client. +-- -- @param buttons_table An array of mouse button bindings objects, or nothing. -- @return A table with all buttons. --- @name buttons --- @class function +-- @function buttons --- Get or set keys bindings for a client. +-- -- @param keys_table An array of key bindings objects, or nothing. -- @return A table with all keys. --- @name keys --- @class function +-- @function keys --- Access or set the client tags. +-- -- @param tags_table A table with tags to set, or none to get the current tags table. -- @return A table with all tags. --- @name tags --- @class function +-- @function tags --- Kill a client. --- @name kill --- @class function +-- +-- @function kill --- Swap a client with another one in global client list. -- @client A client to swap with. --- @name swap --- @class function +-- @function swap --- Raise a client on top of others which are on the same layer. --- @name raise --- @class function +-- +-- @function raise --- Lower a client on bottom of others which are on the same layer. --- @name lower --- @class function +-- +-- @function lower --- Stop managing a client. --- @name unmanage --- @class function +-- +-- @function unmanage --- Change a xproperty. +-- -- @param name The name of the X11 property -- @param value The new value for the property --- @name set_xproperty --- @class function +-- @function set_xproperty --- Get the value of a xproperty. +-- -- @param name The name of the X11 property --- @name get_xproperty --- @class function +-- @function get_xproperty --- Add a signal. +-- -- @param name A signal name. -- @param func A function to call when the signal is emitted. --- @name connect_signal --- @class function +-- @function connect_signal --- Remove a signal. +-- -- @param name A signal name. -- @param func A function to remove. --- @name disconnect_signal --- @class function +-- @function disconnect_signal --- Emit a signal. +-- -- @param name A signal name. -- @param ... Various arguments, optional. --- @name emit_signal --- @class function +-- @function emit_signal --- Get the number of instances. +-- -- @return The number of client objects alive. --- @name instances --- @class function +-- @function instances diff --git a/luadoc/dbus.lua b/luadoc/dbus.lua index b5b7c3da6..5f4bcb020 100644 --- a/luadoc/dbus.lua +++ b/luadoc/dbus.lua @@ -1,46 +1,46 @@ --- awesome D-Bus API -- @author Julien Danjou <julien@danjou.info> -- @copyright 2008-2009 Julien Danjou -module("dbus") +-- @module dbus --- Register a D-Bus name to receive message from. +-- -- @param bus A string indicating if we are using system or session bus. -- @param name A string with the name of the D-Bus name to register. -- @return True if everything worked fine, false otherwise. --- @name request_name --- @class function +-- @function request_name --- Release a D-Bus name. +-- -- @param bus A string indicating if we are using system or session bus. -- @param name A string with the name of the D-Bus name to unregister. -- @return True if everything worked fine, false otherwise. --- @name release_name --- @class function +-- @function release_name --- Add a match rule to match messages going through the message bus. +-- -- @param bus A string indicating if we are using system or session bus. -- @param name A string with the name of the match rule. --- @name add_match --- @class function +-- @function add_match --- Remove a previously added match rule "by value" -- (the most recently-added identical rule gets removed). +-- -- @param bus A string indicating if we are using system or session bus. -- @param name A string with the name of the match rule. --- @name remove_match --- @class function +-- @function remove_match --- Add a signal receiver on the D-Bus. +-- -- @param interface A string with the interface name. -- @param func The function to call. --- @name connect_signal --- @class function +-- @function connect_signal --- Remove a signal receiver on the D-Bus. +-- -- @param interface A string with the interface name. -- @param func The function to call. --- @name disconnect_signal --- @class function +-- @function disconnect_signal -- Emit a signal on the D-Bus. -- @param bus A string indicating if we are using system or session bus. @@ -52,6 +52,4 @@ module("dbus") -- @param type_2nd_arg type of 2nd argument -- @param value_2nd_arg value of 2nd argument -- ... etc --- @name emit_signal --- @class function --- +-- @function emit_signal diff --git a/luadoc/drawable.lua b/luadoc/drawable.lua index f53591dc6..39fd28ca6 100644 --- a/luadoc/drawable.lua +++ b/luadoc/drawable.lua @@ -1,42 +1,42 @@ --- awesome drawable API -- @author Uli Schlachter <psychon@znc.in> -- @copyright 2012 Uli Schlachter -module("drawable") +-- @classmod drawable --- Drawable object. +-- -- @field surface The drawable's cairo surface. --- @name drawable --- @class table +-- @function drawable --- Get drawable geometry. The geometry consists of x, y, width and height. +-- -- @return A table with drawable coordinates and geometry. --- @name geometry --- @class function +-- @function geometry --- Refresh the drawable. When you are drawing to the surface, you have -- call this function when you are done to make the result visible. --- @name refresh --- @class function +-- +-- @function refresh --- Add a signal. +-- -- @param name A signal name. -- @param func A function to call when the signal is emitted. --- @name connect_signal --- @class function +-- @function connect_signal --- Remove a signal. +-- -- @param name A signal name. -- @param func A function to remove. --- @name disconnect_signal --- @class function +-- @function disconnect_signal --- Emit a signal. +-- -- @param name A signal name. -- @param ... Various arguments, optional. --- @name emit_signal --- @class function +-- @function emit_signal --- Get the number of instances. +-- -- @return The number of drawable objects alive. --- @name instances --- @class function +-- @function instances diff --git a/luadoc/drawin.lua b/luadoc/drawin.lua index 7679c6b9b..2303f2d01 100644 --- a/luadoc/drawin.lua +++ b/luadoc/drawin.lua @@ -1,9 +1,10 @@ --- awesome drawin API -- @author Julien Danjou <julien@danjou.info> -- @copyright 2008-2009 Julien Danjou -module("drawin") +-- @classmod drawin --- Drawin object. +-- -- @field border_width Border width. -- @field border_color Border color. -- @field ontop On top of other windows. @@ -19,57 +20,56 @@ module("drawin") -- @field window The X window id. -- @field shape_bounding The drawin's bounding shape as a (native) cairo surface. -- @field shape_clip The drawin's clip shape as a (native) cairo surface. --- @class table --- @name drawin +-- @table drawin --- Get or set mouse buttons bindings to a drawin. +-- -- @param buttons_table A table of buttons objects, or nothing. --- @name buttons --- @class function +-- @function buttons --- Get or set drawin struts. +-- -- @param strut A table with new strut, or nothing -- @return The drawin strut in a table. --- @name struts --- @class function +-- @function struts --- Get or set drawin geometry. That's the same as accessing or setting the x, y, width or height -- properties of a drawin. +-- -- @param A table with coordinates to modify. -- @return A table with drawin coordinates and geometry. --- @name geometry --- @class function +-- @function geometry --- Change a xproperty. +-- -- @param name The name of the X11 property -- @param value The new value for the property --- @name set_xproperty --- @class function +-- @function set_xproperty --- Get the value of a xproperty. +-- -- @param name The name of the X11 property --- @name get_xproperty --- @class function +-- @function get_xproperty --- Add a signal. +-- -- @param name A signal name. -- @param func A function to call when the signal is emitted. --- @name connect_signal --- @class function +-- @function connect_signal --- Remove a signal. +-- -- @param name A signal name. -- @param func A function to remove. --- @name disconnect_signal --- @class function +-- @function disconnect_signal --- Emit a signal. +-- -- @param name A signal name. -- @param ... Various arguments, optional. --- @name emit_signal --- @class function +-- @function emit_signal --- Get the number of instances. +-- -- @return The number of drawin objects alive. --- @name instances --- @class function +-- @function instances diff --git a/luadoc/key.lua b/luadoc/key.lua index c4a6a4e30..d7945995e 100644 --- a/luadoc/key.lua +++ b/luadoc/key.lua @@ -1,37 +1,37 @@ --- awesome key API -- @author Julien Danjou <julien@danjou.info> -- @copyright 2008-2009 Julien Danjou -module("key") +-- @classmod key --- Key object. +-- -- @field key The key to press to triggers an event. -- @field keysym Same as key, but return the name of the key symbol. It can --- be identical to key, but for characters like '.' it will return 'period'. +-- be identical to key, but for characters like '.' it will return 'period'. -- @field modifiers The modifier key that should be pressed while the key is --- pressed. An array with all the modifiers. Valid modifiers are: Any, Mod1, --- Mod2, Mod3, Mod4, Mod5, Shift, Lock and Control. --- @class table --- @name key +-- pressed. An array with all the modifiers. Valid modifiers are: Any, Mod1, +-- Mod2, Mod3, Mod4, Mod5, Shift, Lock and Control. +-- @table key --- Add a signal. +-- -- @param name A signal name. -- @param func A function to call when the signal is emitted. --- @name connect_signal --- @class function +-- @function connect_signal --- Remove a signal. +-- -- @param name A signal name. -- @param func A function to remove. --- @name disconnect_signal --- @class function +-- @function disconnect_signal --- Emit a signal. +-- -- @param name A signal name. -- @param ... Various arguments, optional. --- @name emit_signal --- @class function +-- @function emit_signal --- Get the number of instances. +-- -- @return The number of key objects alive. --- @name instances --- @class function +-- @function instances diff --git a/luadoc/keygrabber.lua b/luadoc/keygrabber.lua index 278b82cf3..d4edd3c7c 100644 --- a/luadoc/keygrabber.lua +++ b/luadoc/keygrabber.lua @@ -1,12 +1,11 @@ --- awesome keygrabber API -- @author Julien Danjou <julien@danjou.info> -- @copyright 2008-2009 Julien Danjou -module("keygrabber") +-- @module keygrabber --- -- Grab keyboard input and read pressed keys, calling a callback function at --- each keypress, until @{keygrabber.stop} is called. --- +-- each keypress, until `keygrabber.stop` is called. -- The callback function receives three arguments: --