Docs: general C API fixes

This contains general C API fixes:

    1) Remove module declarations in LUA and use the @module directives

    2) Fix indentation/usage where necessary

Signed-off-by: Ignas Anikevicius (gns_ank) <anikevicius@gmail.com>
This commit is contained in:
Ignas Anikevicius (gns_ank) 2014-05-19 23:22:35 +01:00 committed by Daniel Hahler
parent a0051c7dc4
commit 0f27de8393
14 changed files with 218 additions and 226 deletions

View File

@ -1,74 +1,76 @@
--- awesome core API --- awesome core API
-- @author Julien Danjou &lt;julien@danjou.info&gt; -- @author Julien Danjou &lt;julien@danjou.info&gt;
-- @copyright 2008-2009 Julien Danjou -- @copyright 2008-2009 Julien Danjou
module("awesome") -- @module awesome
--- awesome global table. --- awesome global table.
--
-- @field version The version of awesome. -- @field version The version of awesome.
-- @field release The release name of awesome. -- @field release The release name of awesome.
-- @field conffile The configuration file which has been loaded. -- @field conffile The configuration file which has been loaded.
-- @field startup True if we are still in startup, false otherwise. -- @field startup True if we are still in startup, false otherwise.
-- @field startup_errors Error message for errors that occured during startup. -- @field startup_errors Error message for errors that occured during startup.
-- @field composite_manager_running True if a composite manager is running. -- @field composite_manager_running True if a composite manager is running.
-- @class table -- @table awesome
-- @name awesome
--- Quit awesome. --- Quit awesome.
-- @name quit --
-- @class function -- @function quit
--- Execute another application, probably a window manager, to replace --- Execute another application, probably a window manager, to replace
-- awesome. -- awesome.
--
-- @param cmd The command line to execute. -- @param cmd The command line to execute.
-- @name exec -- @function exec
-- @class function
--- Restart awesome. --- Restart awesome.
--
-- @name restart -- @name restart
-- @class function -- @class function
--- Spawn a program. --- Spawn a program.
--
-- @param cmd The command to launch. Either a string or a table of strings. -- @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. -- @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. -- @return Process ID if everything is OK, or an error string if an error occured.
--- Load an image --- Load an image
--
-- @param name The file name -- @param name The file name
-- @return A cairo image surface as light user datum -- @return A cairo image surface as light user datum
-- @name load_image -- @function load_image
-- @class function
--- Register a new xproperty. --- Register a new xproperty.
--
-- @param name The name of the X11 property -- @param name The name of the X11 property
-- @param type One of "string", "number" or "boolean" -- @param type One of "string", "number" or "boolean"
-- @name register_xproperty -- @function register_xproperty
-- @class function
--- Change a xproperty. --- Change a xproperty.
--
-- @param name The name of the X11 property -- @param name The name of the X11 property
-- @param value The new value for the property -- @param value The new value for the property
-- @name set_xproperty -- @function set_xproperty
-- @class function
--- Get the value of a xproperty. --- Get the value of a xproperty.
--
-- @param name The name of the X11 property -- @param name The name of the X11 property
-- @name get_xproperty -- @function get_xproperty
-- @class function
--- Add a global signal. --- Add a global signal.
--
-- @param name A string with the event name. -- @param name A string with the event name.
-- @param func The function to call. -- @param func The function to call.
-- @name connect_signal -- @function connect_signal
-- @class function
--- Remove a global signal. --- Remove a global signal.
--
-- @param name A string with the event name. -- @param name A string with the event name.
-- @param func The function to call. -- @param func The function to call.
-- @name disconnect_signal -- @function disconnect_signal
-- @class function
--- Emit a global signal. --- Emit a global signal.
--
-- @param name A string with the event name. -- @param name A string with the event name.
-- @param ... Signal arguments. -- @param ... Signal arguments.
-- @name emit_signal -- @function emit_signal
-- @class function

View File

@ -1,34 +1,30 @@
--- awesome button API --- awesome button API
-- @author Julien Danjou &lt;julien@danjou.info&gt; -- @author Julien Danjou &lt;julien@danjou.info&gt;
-- @copyright 2008-2009 Julien Danjou -- @copyright 2008-2009 Julien Danjou
module("button") -- @classmod button
--- Button object. --- 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 -- @tfield int button The mouse button number, or 0 for any button.
-- button is pressed. -- @tfield table modifiers The modifier key table that should be pressed while the
-- @class table -- button is pressed.
-- @name button -- @table button
--- Add a signal. --- Add a signal.
-- @param name A signal name. -- @tparam string name A signal name.
-- @param func A function to call when the signal is emitted. -- @tparam func func A function to call when the signal is emitted.
-- @name connect_signal -- @function connect_signal
-- @class function
--- Remove a signal. --- Remove a signal.
-- @param name A signal name. -- @tparam string name A signal name.
-- @param func A function to remove. -- @tparam func func A function to remove.
-- @name disconnect_signal -- @function disconnect_signal
-- @class function
--- Emit a signal. --- Emit a signal.
-- @param name A signal name. -- @tparam string name A signal name.
-- @param ... Various arguments, optional. -- @param ... Various arguments, optional.
-- @name emit_signal -- @function emit_signal
-- @class function
--- Get the number of instances. --- Get the number of instances.
-- @return The number of button objects alive. -- @treturn int The number of button objects alive.
-- @name instances -- @function instances
-- @class function

View File

@ -1,9 +1,10 @@
--- awesome client API --- awesome client API
-- @author Julien Danjou &lt;julien@danjou.info&gt; -- @author Julien Danjou &lt;julien@danjou.info&gt;
-- @copyright 2008-2009 Julien Danjou -- @copyright 2008-2009 Julien Danjou
module("client") -- @classmod client
--- Client object. --- Client object.
--
-- @field window The X window id. -- @field window The X window id.
-- @field name The client title. -- @field name The client title.
-- @field skip_taskbar True if the client does not want to be in taskbar. -- @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 icon The client icon.
-- @field screen Client screen. -- @field screen Client screen.
-- @field hidden Define if the client must be hidden, i.e. never mapped, -- @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 -- @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 size_hints_honor Honor size hints, i.e. respect size ratio.
-- @field border_width The client border width. -- @field border_width The client border width.
-- @field border_color The client border color. -- @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 group_window Window identification unique to a group of windows.
-- @field leader_window Identification unique to windows spawned by the same command. -- @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, -- @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 sticky Set the client sticky, i.e. available on all tags.
-- @field modal Indicate if the client is modal. -- @field modal Indicate if the client is modal.
-- @field focusable True if the client can receive the input focus. -- @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 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 startup_id The FreeDesktop StartId.
-- @field valid If the client that this object refers to is still managed by awesome. -- @field valid If the client that this object refers to is still managed by awesome.
-- @class table -- @table client
-- @name client
--- Get all clients into a table. --- Get all clients into a table.
--
-- @param screen An optional screen number. -- @param screen An optional screen number.
-- @return A table with all clients. -- @return A table with all clients.
-- @name get -- @function get
-- @class function
--- Check if a client is visible on its screen. --- Check if a client is visible on its screen.
--
-- @return A boolean value, true if the client is visible, false otherwise. -- @return A boolean value, true if the client is visible, false otherwise.
-- @name isvisible -- @function isvisible
-- @class function
--- Return client geometry. --- Return client geometry.
--
-- @param arg1 A table with new coordinates, or none. -- @param arg1 A table with new coordinates, or none.
-- @return A table with client coordinates. -- @return A table with client coordinates.
-- @name geometry -- @function geometry
-- @class function
--- Apply size hints to a size. --- Apply size hints to a size.
-- @param width Desired width of client -- @param width Desired width of client
@ -77,80 +77,79 @@ module("client")
-- @class function -- @class function
--- Return client struts (reserved space at the edge of the screen). --- Return client struts (reserved space at the edge of the screen).
--
-- @param struts A table with new strut values, or none. -- @param struts A table with new strut values, or none.
-- @return A table with strut values. -- @return A table with strut values.
-- @name struts -- @function struts
-- @class function
--- Get or set mouse buttons bindings for a client. --- Get or set mouse buttons bindings for a client.
--
-- @param buttons_table An array of mouse button bindings objects, or nothing. -- @param buttons_table An array of mouse button bindings objects, or nothing.
-- @return A table with all buttons. -- @return A table with all buttons.
-- @name buttons -- @function buttons
-- @class function
--- Get or set keys bindings for a client. --- Get or set keys bindings for a client.
--
-- @param keys_table An array of key bindings objects, or nothing. -- @param keys_table An array of key bindings objects, or nothing.
-- @return A table with all keys. -- @return A table with all keys.
-- @name keys -- @function keys
-- @class function
--- Access or set the client tags. --- Access or set the client tags.
--
-- @param tags_table A table with tags to set, or none to get the current tags table. -- @param tags_table A table with tags to set, or none to get the current tags table.
-- @return A table with all tags. -- @return A table with all tags.
-- @name tags -- @function tags
-- @class function
--- Kill a client. --- Kill a client.
-- @name kill --
-- @class function -- @function kill
--- Swap a client with another one in global client list. --- Swap a client with another one in global client list.
-- @client A client to swap with. -- @client A client to swap with.
-- @name swap -- @function swap
-- @class function
--- Raise a client on top of others which are on the same layer. --- 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. --- Lower a client on bottom of others which are on the same layer.
-- @name lower --
-- @class function -- @function lower
--- Stop managing a client. --- Stop managing a client.
-- @name unmanage --
-- @class function -- @function unmanage
--- Change a xproperty. --- Change a xproperty.
--
-- @param name The name of the X11 property -- @param name The name of the X11 property
-- @param value The new value for the property -- @param value The new value for the property
-- @name set_xproperty -- @function set_xproperty
-- @class function
--- Get the value of a xproperty. --- Get the value of a xproperty.
--
-- @param name The name of the X11 property -- @param name The name of the X11 property
-- @name get_xproperty -- @function get_xproperty
-- @class function
--- Add a signal. --- Add a signal.
--
-- @param name A signal name. -- @param name A signal name.
-- @param func A function to call when the signal is emitted. -- @param func A function to call when the signal is emitted.
-- @name connect_signal -- @function connect_signal
-- @class function
--- Remove a signal. --- Remove a signal.
--
-- @param name A signal name. -- @param name A signal name.
-- @param func A function to remove. -- @param func A function to remove.
-- @name disconnect_signal -- @function disconnect_signal
-- @class function
--- Emit a signal. --- Emit a signal.
--
-- @param name A signal name. -- @param name A signal name.
-- @param ... Various arguments, optional. -- @param ... Various arguments, optional.
-- @name emit_signal -- @function emit_signal
-- @class function
--- Get the number of instances. --- Get the number of instances.
--
-- @return The number of client objects alive. -- @return The number of client objects alive.
-- @name instances -- @function instances
-- @class function

View File

@ -1,46 +1,46 @@
--- awesome D-Bus API --- awesome D-Bus API
-- @author Julien Danjou &lt;julien@danjou.info&gt; -- @author Julien Danjou &lt;julien@danjou.info&gt;
-- @copyright 2008-2009 Julien Danjou -- @copyright 2008-2009 Julien Danjou
module("dbus") -- @module dbus
--- Register a D-Bus name to receive message from. --- Register a D-Bus name to receive message from.
--
-- @param bus A string indicating if we are using system or session bus. -- @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. -- @param name A string with the name of the D-Bus name to register.
-- @return True if everything worked fine, false otherwise. -- @return True if everything worked fine, false otherwise.
-- @name request_name -- @function request_name
-- @class function
--- Release a D-Bus name. --- Release a D-Bus name.
--
-- @param bus A string indicating if we are using system or session bus. -- @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. -- @param name A string with the name of the D-Bus name to unregister.
-- @return True if everything worked fine, false otherwise. -- @return True if everything worked fine, false otherwise.
-- @name release_name -- @function release_name
-- @class function
--- Add a match rule to match messages going through the message bus. --- 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 bus A string indicating if we are using system or session bus.
-- @param name A string with the name of the match rule. -- @param name A string with the name of the match rule.
-- @name add_match -- @function add_match
-- @class function
--- Remove a previously added match rule "by value" --- Remove a previously added match rule "by value"
-- (the most recently-added identical rule gets removed). -- (the most recently-added identical rule gets removed).
--
-- @param bus A string indicating if we are using system or session 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. -- @param name A string with the name of the match rule.
-- @name remove_match -- @function remove_match
-- @class function
--- Add a signal receiver on the D-Bus. --- Add a signal receiver on the D-Bus.
--
-- @param interface A string with the interface name. -- @param interface A string with the interface name.
-- @param func The function to call. -- @param func The function to call.
-- @name connect_signal -- @function connect_signal
-- @class function
--- Remove a signal receiver on the D-Bus. --- Remove a signal receiver on the D-Bus.
--
-- @param interface A string with the interface name. -- @param interface A string with the interface name.
-- @param func The function to call. -- @param func The function to call.
-- @name disconnect_signal -- @function disconnect_signal
-- @class function
-- Emit a signal on the D-Bus. -- Emit a signal on the D-Bus.
-- @param bus A string indicating if we are using system or session 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 type_2nd_arg type of 2nd argument
-- @param value_2nd_arg value of 2nd argument -- @param value_2nd_arg value of 2nd argument
-- ... etc -- ... etc
-- @name emit_signal -- @function emit_signal
-- @class function
--

View File

@ -1,42 +1,42 @@
--- awesome drawable API --- awesome drawable API
-- @author Uli Schlachter &lt;psychon@znc.in&gt; -- @author Uli Schlachter &lt;psychon@znc.in&gt;
-- @copyright 2012 Uli Schlachter -- @copyright 2012 Uli Schlachter
module("drawable") -- @classmod drawable
--- Drawable object. --- Drawable object.
--
-- @field surface The drawable's cairo surface. -- @field surface The drawable's cairo surface.
-- @name drawable -- @function drawable
-- @class table
--- Get drawable geometry. The geometry consists of x, y, width and height. --- Get drawable geometry. The geometry consists of x, y, width and height.
--
-- @return A table with drawable coordinates and geometry. -- @return A table with drawable coordinates and geometry.
-- @name geometry -- @function geometry
-- @class function
--- Refresh the drawable. When you are drawing to the surface, you have --- Refresh the drawable. When you are drawing to the surface, you have
-- call this function when you are done to make the result visible. -- call this function when you are done to make the result visible.
-- @name refresh --
-- @class function -- @function refresh
--- Add a signal. --- Add a signal.
--
-- @param name A signal name. -- @param name A signal name.
-- @param func A function to call when the signal is emitted. -- @param func A function to call when the signal is emitted.
-- @name connect_signal -- @function connect_signal
-- @class function
--- Remove a signal. --- Remove a signal.
--
-- @param name A signal name. -- @param name A signal name.
-- @param func A function to remove. -- @param func A function to remove.
-- @name disconnect_signal -- @function disconnect_signal
-- @class function
--- Emit a signal. --- Emit a signal.
--
-- @param name A signal name. -- @param name A signal name.
-- @param ... Various arguments, optional. -- @param ... Various arguments, optional.
-- @name emit_signal -- @function emit_signal
-- @class function
--- Get the number of instances. --- Get the number of instances.
--
-- @return The number of drawable objects alive. -- @return The number of drawable objects alive.
-- @name instances -- @function instances
-- @class function

View File

@ -1,9 +1,10 @@
--- awesome drawin API --- awesome drawin API
-- @author Julien Danjou &lt;julien@danjou.info&gt; -- @author Julien Danjou &lt;julien@danjou.info&gt;
-- @copyright 2008-2009 Julien Danjou -- @copyright 2008-2009 Julien Danjou
module("drawin") -- @classmod drawin
--- Drawin object. --- Drawin object.
--
-- @field border_width Border width. -- @field border_width Border width.
-- @field border_color Border color. -- @field border_color Border color.
-- @field ontop On top of other windows. -- @field ontop On top of other windows.
@ -19,57 +20,56 @@ module("drawin")
-- @field window The X window id. -- @field window The X window id.
-- @field shape_bounding The drawin's bounding shape as a (native) cairo surface. -- @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. -- @field shape_clip The drawin's clip shape as a (native) cairo surface.
-- @class table -- @table drawin
-- @name drawin
--- Get or set mouse buttons bindings to a drawin. --- Get or set mouse buttons bindings to a drawin.
--
-- @param buttons_table A table of buttons objects, or nothing. -- @param buttons_table A table of buttons objects, or nothing.
-- @name buttons -- @function buttons
-- @class function
--- Get or set drawin struts. --- Get or set drawin struts.
--
-- @param strut A table with new strut, or nothing -- @param strut A table with new strut, or nothing
-- @return The drawin strut in a table. -- @return The drawin strut in a table.
-- @name struts -- @function struts
-- @class function
--- Get or set drawin geometry. That's the same as accessing or setting the x, y, width or height --- Get or set drawin geometry. That's the same as accessing or setting the x, y, width or height
-- properties of a drawin. -- properties of a drawin.
--
-- @param A table with coordinates to modify. -- @param A table with coordinates to modify.
-- @return A table with drawin coordinates and geometry. -- @return A table with drawin coordinates and geometry.
-- @name geometry -- @function geometry
-- @class function
--- Change a xproperty. --- Change a xproperty.
--
-- @param name The name of the X11 property -- @param name The name of the X11 property
-- @param value The new value for the property -- @param value The new value for the property
-- @name set_xproperty -- @function set_xproperty
-- @class function
--- Get the value of a xproperty. --- Get the value of a xproperty.
--
-- @param name The name of the X11 property -- @param name The name of the X11 property
-- @name get_xproperty -- @function get_xproperty
-- @class function
--- Add a signal. --- Add a signal.
--
-- @param name A signal name. -- @param name A signal name.
-- @param func A function to call when the signal is emitted. -- @param func A function to call when the signal is emitted.
-- @name connect_signal -- @function connect_signal
-- @class function
--- Remove a signal. --- Remove a signal.
--
-- @param name A signal name. -- @param name A signal name.
-- @param func A function to remove. -- @param func A function to remove.
-- @name disconnect_signal -- @function disconnect_signal
-- @class function
--- Emit a signal. --- Emit a signal.
--
-- @param name A signal name. -- @param name A signal name.
-- @param ... Various arguments, optional. -- @param ... Various arguments, optional.
-- @name emit_signal -- @function emit_signal
-- @class function
--- Get the number of instances. --- Get the number of instances.
--
-- @return The number of drawin objects alive. -- @return The number of drawin objects alive.
-- @name instances -- @function instances
-- @class function

View File

@ -1,37 +1,37 @@
--- awesome key API --- awesome key API
-- @author Julien Danjou &lt;julien@danjou.info&gt; -- @author Julien Danjou &lt;julien@danjou.info&gt;
-- @copyright 2008-2009 Julien Danjou -- @copyright 2008-2009 Julien Danjou
module("key") -- @classmod key
--- Key object. --- Key object.
--
-- @field key The key to press to triggers an event. -- @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 -- @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 -- @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, -- pressed. An array with all the modifiers. Valid modifiers are: Any, Mod1,
-- Mod2, Mod3, Mod4, Mod5, Shift, Lock and Control. -- Mod2, Mod3, Mod4, Mod5, Shift, Lock and Control.
-- @class table -- @table key
-- @name key
--- Add a signal. --- Add a signal.
--
-- @param name A signal name. -- @param name A signal name.
-- @param func A function to call when the signal is emitted. -- @param func A function to call when the signal is emitted.
-- @name connect_signal -- @function connect_signal
-- @class function
--- Remove a signal. --- Remove a signal.
--
-- @param name A signal name. -- @param name A signal name.
-- @param func A function to remove. -- @param func A function to remove.
-- @name disconnect_signal -- @function disconnect_signal
-- @class function
--- Emit a signal. --- Emit a signal.
--
-- @param name A signal name. -- @param name A signal name.
-- @param ... Various arguments, optional. -- @param ... Various arguments, optional.
-- @name emit_signal -- @function emit_signal
-- @class function
--- Get the number of instances. --- Get the number of instances.
--
-- @return The number of key objects alive. -- @return The number of key objects alive.
-- @name instances -- @function instances
-- @class function

View File

@ -1,12 +1,11 @@
--- awesome keygrabber API --- awesome keygrabber API
-- @author Julien Danjou &lt;julien@danjou.info&gt; -- @author Julien Danjou &lt;julien@danjou.info&gt;
-- @copyright 2008-2009 Julien Danjou -- @copyright 2008-2009 Julien Danjou
module("keygrabber") -- @module keygrabber
--- ---
-- Grab keyboard input and read pressed keys, calling a callback function at -- 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: -- The callback function receives three arguments:
-- <ul> -- <ul>
-- <li>a table containing modifiers keys</li> -- <li>a table containing modifiers keys</li>
@ -14,29 +13,26 @@ module("keygrabber")
-- <li>a string with either "press" or "release" to indicate the event type.</li> -- <li>a string with either "press" or "release" to indicate the event type.</li>
-- </ul> -- </ul>
-- @param callback A callback function as described above. -- @param callback A callback function as described above.
-- @name run -- @function run
-- @class function -- @usage The following function can be bound to a key, and will be used to
-- @usage -- resize a client using keyboard.
-- -- The following function can be bound to a key, and used to resize a client
-- -- using the keyboard.
-- function resize(c)
-- keygrabber.run(function(mod, key, event)
-- if event == "release" then return end
-- --
-- if key == 'Up' then awful.client.moveresize(0, 0, 0, 5, c) -- function resize(c)
-- elseif key == 'Down' then awful.client.moveresize(0, 0, 0, -5, c) -- keygrabber.run(function(mod, key, event)
-- elseif key == 'Right' then awful.client.moveresize(0, 0, 5, 0, c) -- if event == "release" then return end
-- elseif key == 'Left' then awful.client.moveresize(0, 0, -5, 0, c) --
-- else keygrabber.stop() -- if key == 'Up' then awful.client.moveresize(0, 0, 0, 5, c)
-- elseif key == 'Down' then awful.client.moveresize(0, 0, 0, -5, c)
-- elseif key == 'Right' then awful.client.moveresize(0, 0, 5, 0, c)
-- elseif key == 'Left' then awful.client.moveresize(0, 0, -5, 0, c)
-- else keygrabber.stop()
-- end
-- end)
-- end -- end
-- end)
-- end
--- Stop grabbing the keyboard. --- Stop grabbing the keyboard.
-- @name stop -- @function stop
-- @class function
--- Check if the keygrabber is running. --- Check if the keygrabber is running.
-- @return A boolean value, true if running, false otherwise. -- @return A boolean value, true if running, false otherwise.
-- @name isrunning -- @function isrunning
-- @class function

View File

@ -1,9 +1,10 @@
--- awesome mouse API --- awesome mouse API
-- @author Julien Danjou &lt;julien@danjou.info&gt; -- @author Julien Danjou &lt;julien@danjou.info&gt;
-- @copyright 2008-2009 Julien Danjou -- @copyright 2008-2009 Julien Danjou
module("mouse") -- @module mouse
--- Mouse library. --- Mouse library.
--
-- @field screen Mouse screen number. -- @field screen Mouse screen number.
-- @table mouse -- @table mouse

View File

@ -1,23 +1,23 @@
--- awesome mousegrabber API --- awesome mousegrabber API
-- @author Julien Danjou &lt;julien@danjou.info&gt; -- @author Julien Danjou &lt;julien@danjou.info&gt;
-- @copyright 2008-2009 Julien Danjou -- @copyright 2008-2009 Julien Danjou
module("mousegrabber") -- @module mousegrabber
--- Grab the mouse pointer and list motions, calling callback function at each --- Grab the mouse pointer and list motions, calling callback function at each
-- motion. The callback function must return a boolean value: true to -- motion. The callback function must return a boolean value: true to
-- continue grabbing, false to stop. -- continue grabbing, false to stop.
-- The function is called with one argument: -- The function is called with one argument:
-- a table containing modifiers pointer coordinates. -- a table containing modifiers pointer coordinates.
--
-- @param func A callback function as described above. -- @param func A callback function as described above.
-- @param cursor The name of a X cursor to use while grabbing. -- @param cursor The name of a X cursor to use while grabbing.
-- @name run -- @function run
-- @class function
--- Stop grabbing the mouse pointer. --- Stop grabbing the mouse pointer.
-- @name stop --
-- @class function -- @function stop
--- Check if the mousegrabber is running. --- Check if the mousegrabber is running.
--
-- @return A boolean value, true if running, false otherwise. -- @return A boolean value, true if running, false otherwise.
-- @name isrunning -- @function isrunning
-- @class function

View File

@ -1,50 +1,50 @@
--- awesome root window API --- awesome root window API
-- @author Julien Danjou &lt;julien@danjou.info&gt; -- @author Julien Danjou &lt;julien@danjou.info&gt;
-- @copyright 2008-2009 Julien Danjou -- @copyright 2008-2009 Julien Danjou
module("root") -- @module root
--- Get or set global mouse bindings. --- Get or set global mouse bindings.
-- This binding will be available when you'll click on root window. -- This binding will be available when you'll click on root window.
--
-- @param button_table An array of mouse button bindings objects, or nothing. -- @param button_table An array of mouse button bindings objects, or nothing.
-- @return The array of mouse button bindings objects. -- @return The array of mouse button bindings objects.
-- @name buttons -- @function buttons
-- @class function
--- Get or set global key bindings. --- Get or set global key bindings.
-- These binding will be available when you press keys on the root window. -- These binding will be available when you press keys on the root window.
-- @param keys_array An array of key binding objects, or nothing. -- @tparam table|nil keys_array An array of key binding objects, or nothing.
-- @return The array of key bindings objects of this client. -- @return The array of key bindings objects of this client.
-- @name keys -- @function keys
-- @class function
--- Set the root cursor. --- Set the root cursor.
--
-- @param cursor_name A X cursor name. -- @param cursor_name A X cursor name.
-- @name cursor -- @function cursor
-- @class function
--- Send fake events. Usually the current focused client will get it. --- Send fake events. Usually the current focused client will get it.
--
-- @param event_type The event type: key_press, key_release, button_press, button_release -- @param event_type The event type: key_press, key_release, button_press, button_release
-- or motion_notify. -- or motion_notify.
-- @param detail The detail: in case of a key event, this is the keycode to send, in -- @param detail The detail: in case of a key event, this is the keycode to send, in
-- case of a button event this is the number of the button. In case of a motion -- case of a button event this is the number of the button. In case of a
-- event, this is a boolean value which if true make the coordinates relatives. -- motion event, this is a boolean value which if true make the coordinates
-- relatives.
-- @param x In case of a motion event, this is the X coordinate. -- @param x In case of a motion event, this is the X coordinate.
-- @param y In case of a motion event, this is the Y coordinate. -- @param y In case of a motion event, this is the Y coordinate.
-- @name fake_input -- @function fake_input
-- @class function
--- Get the drawins attached to a screen. --- Get the drawins attached to a screen.
--
-- @return A table with all drawins. -- @return A table with all drawins.
-- @name drawins -- @function drawins
-- @class function
--- Get the wallpaper as a cairo surface or set it as a cairo pattern. --- Get the wallpaper as a cairo surface or set it as a cairo pattern.
--
-- @param pattern A cairo pattern as light userdata -- @param pattern A cairo pattern as light userdata
-- @return A cairo surface or nothing. -- @return A cairo surface or nothing.
-- @name wallpaper -- @function wallpaper
-- @class function
--- Get the attached tags. --- Get the attached tags.
--
-- @return A table with all tags. -- @return A table with all tags.
-- @name tags -- @function tags
-- @class function

View File

@ -1,39 +1,39 @@
--- awesome screen API --- awesome screen API
-- @author Julien Danjou &lt;julien@danjou.info&gt; -- @author Julien Danjou &lt;julien@danjou.info&gt;
-- @copyright 2008-2009 Julien Danjou -- @copyright 2008-2009 Julien Danjou
module("screen") -- @module screen
--- Screen is a table where indexes are screen number. You can use screen[1] --- Screen is a table where indexes are screen number. You can use screen[1]
-- to get access to the first screen, etc. Alternatively, if RANDR information -- to get access to the first screen, etc. Alternatively, if RANDR information
-- is available, you can use output names for finding screen objects. -- is available, you can use output names for finding screen objects.
-- Each screen has a set of properties. -- Each screen has a set of properties.
--
-- @field geometry The screen coordinates. Immutable. -- @field geometry The screen coordinates. Immutable.
-- @field workarea The screen workarea. -- @field workarea The screen workarea.
-- @field index The screen number. -- @field index The screen number.
-- @field outputs If RANDR information is available, a list of outputs for this -- @field outputs If RANDR information is available, a list of outputs for this
-- screen and their size in mm. -- screen and their size in mm.
-- @class table -- @table screen
-- @name screen
--- Get the number of screen. --- Get the number of screen.
--
-- @return The screen count, at least 1. -- @return The screen count, at least 1.
-- @name count -- @function count
-- @class function
--- Add a signal to a screen. --- Add a signal to a screen.
--
-- @param name A signal name. -- @param name A signal name.
-- @param func A function to call when the signal is emitted. -- @param func A function to call when the signal is emitted.
-- @name connect_signal -- @function connect_signal
-- @class function
--- Remove a signal to a screen. --- Remove a signal to a screen.
--
-- @param name A signal name. -- @param name A signal name.
-- @param func A function to remove -- @param func A function to remove
-- @name disconnect_signal -- @function disconnect_signal
-- @class function
--- Emit a signal to a screen. --- Emit a signal to a screen.
--
-- @param name A signal name. -- @param name A signal name.
-- @param ... Various arguments, optional. -- @param ... Various arguments, optional.
-- @name emit_signal -- @function emit_signal
-- @class function

View File

@ -1,9 +1,9 @@
--- awesome selection (clipboard) API --- awesome selection (clipboard) API
-- @author Julien Danjou &lt;julien@danjou.info&gt; -- @author Julien Danjou &lt;julien@danjou.info&gt;
-- @copyright 2008-2009 Julien Danjou -- @copyright 2008-2009 Julien Danjou
module("selection") -- @module selection
--- Get the selection (clipboard) content. --- Get the selection (clipboard) content.
--
-- @return A string with the selection (clipboard) content. -- @return A string with the selection (clipboard) content.
-- @name selection -- @function selection
-- @class function

View File

@ -1,40 +1,40 @@
--- awesome tag API --- awesome tag API
-- @author Julien Danjou &lt;julien@danjou.info&gt; -- @author Julien Danjou &lt;julien@danjou.info&gt;
-- @copyright 2008-2009 Julien Danjou -- @copyright 2008-2009 Julien Danjou
module("tag") -- @classmod tag
--- Tag object. --- Tag object.
--
-- @field name Tag name. -- @field name Tag name.
-- @field selected True if the tag is selected to be viewed. -- @field selected True if the tag is selected to be viewed.
-- @field activated True if the tag is active and can be used. -- @field activated True if the tag is active and can be used.
-- @class table -- @table tag
-- @name tag
--- Get or set the clients attached to this tag. --- Get or set the clients attached to this tag.
--
-- @param clients_table None or a table of clients to set as being tagged with this tag. -- @param clients_table None or a table of clients to set as being tagged with this tag.
-- @return A table with the clients attached to this tags. -- @return A table with the clients attached to this tags.
-- @name clients -- @function clients
-- @class function
--- Add a signal. --- Add a signal.
--
-- @param name A signal name. -- @param name A signal name.
-- @param func A function to call when the signal is emitted. -- @param func A function to call when the signal is emitted.
-- @name connect_signal -- @function connect_signal
-- @class function
--- Remove a signal. --- Remove a signal.
--
-- @param name A signal name. -- @param name A signal name.
-- @param func A function to remove. -- @param func A function to remove.
-- @name disconnect_signal -- @function disconnect_signal
-- @class function
--- Emit a signal. --- Emit a signal.
--
-- @param name A signal name. -- @param name A signal name.
-- @param ... Various arguments, optional. -- @param ... Various arguments, optional.
-- @name emit_signal -- @function emit_signal
-- @class function
--- Get the number of instances. --- Get the number of instances.
--
-- @return The number of tag objects alive. -- @return The number of tag objects alive.
-- @name instances -- @function instances
-- @class function