2009-08-20 16:18:52 +02:00
|
|
|
--- awesome wibox API
|
|
|
|
-- @author Julien Danjou <julien@danjou.info>
|
|
|
|
-- @copyright 2008-2009 Julien Danjou
|
|
|
|
module("wibox")
|
|
|
|
|
|
|
|
--- Wibox object.
|
|
|
|
-- @field screen Screen number.
|
|
|
|
-- @field border_width Border width.
|
|
|
|
-- @field border_color Border color.
|
|
|
|
-- @field fg Foreground color.
|
|
|
|
-- @field bg Background color.
|
|
|
|
-- @field bg_image Background image.
|
|
|
|
-- @field ontop On top of other windows.
|
|
|
|
-- @field cursor The mouse cursor.
|
|
|
|
-- @field visible Visibility.
|
|
|
|
-- @field orientation The drawing orientation: east, north or south.
|
|
|
|
-- @field widgets A table with all widgets drawn on this wibox.
|
|
|
|
-- @field opacity The opacity of the wibox, between 0 and 1.
|
|
|
|
-- @field x The x coordinates.
|
|
|
|
-- @field y The y coordinates.
|
|
|
|
-- @field width The width of the wibox.
|
|
|
|
-- @field height The height of the wibox.
|
|
|
|
-- @class table
|
|
|
|
-- @name wibox
|
|
|
|
|
|
|
|
--- Get or set mouse buttons bindings to a wibox.
|
|
|
|
-- @param buttons_table A table of buttons objects, or nothing.
|
|
|
|
-- @name buttons
|
|
|
|
-- @class function
|
|
|
|
|
|
|
|
--- Get or set wibox struts.
|
|
|
|
-- @param strut A table with new strut, or nothing
|
|
|
|
-- @return The wibox strut in a table.
|
|
|
|
-- @name struts
|
|
|
|
-- @class function
|
|
|
|
|
|
|
|
--- Get or set wibox geometry. That's the same as accessing or setting the x, y, width or height
|
|
|
|
-- properties of a wibox.
|
|
|
|
-- @param A table with coordinates to modify.
|
|
|
|
-- @return A table with wibox coordinates and geometry.
|
|
|
|
-- @name geometry
|
|
|
|
-- @class function
|
|
|
|
|
|
|
|
--- Add a signal.
|
|
|
|
-- @param name A signal name.
|
2009-08-30 06:20:52 +02:00
|
|
|
-- @param func A function to call when the signal is emitted.
|
2010-08-25 20:37:49 +02:00
|
|
|
-- @name connect_signal
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @class function
|
|
|
|
|
|
|
|
--- Remove a signal.
|
|
|
|
-- @param name A signal name.
|
|
|
|
-- @param func A function to remove.
|
2010-08-25 20:37:49 +02:00
|
|
|
-- @name disconnect_signal
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @class function
|
|
|
|
|
|
|
|
--- Emit a signal.
|
|
|
|
-- @param name A signal name.
|
|
|
|
-- @param ... Various arguments, optional.
|
|
|
|
-- @name emit_signal
|
|
|
|
-- @class function
|
2010-09-17 17:10:53 +02:00
|
|
|
|
|
|
|
--- Get the number of instances.
|
2010-09-28 11:12:02 +02:00
|
|
|
-- @param no_params luadoc is buggy.
|
2010-09-17 17:10:53 +02:00
|
|
|
-- @return The number of wibox objects alive.
|
|
|
|
-- @name instances
|
|
|
|
-- @class function
|