Tags: Remove screen property
[awesome.git] / luadoc / drawin.lua
blob9694f080600a06d4ca6f74c1808475d98ea44cfb
1 --- awesome drawin API
2 -- @author Julien Danjou <julien@danjou.info>
3 -- @copyright 2008-2009 Julien Danjou
4 module("drawin")
6 --- Drawin object.
7 -- @field screen Screen number.
8 -- @field border_width Border width.
9 -- @field border_color Border color.
10 -- @field ontop On top of other windows.
11 -- @field cursor The mouse cursor.
12 -- @field visible Visibility.
13 -- @field opacity The opacity of the drawin, between 0 and 1.
14 -- @field x The x coordinates.
15 -- @field y The y coordinates.
16 -- @field width The width of the drawin.
17 -- @field height The height of the drawin.
18 -- @field drawable The drawin's drawable.
19 -- @class table
20 -- @name drawin
22 --- Get or set mouse buttons bindings to a drawin.
23 -- @param buttons_table A table of buttons objects, or nothing.
24 -- @name buttons
25 -- @class function
27 --- Get or set drawin struts.
28 -- @param strut A table with new strut, or nothing
29 -- @return The drawin strut in a table.
30 -- @name struts
31 -- @class function
33 --- Get or set drawin geometry. That's the same as accessing or setting the x, y, width or height
34 -- properties of a drawin.
35 -- @param A table with coordinates to modify.
36 -- @return A table with drawin coordinates and geometry.
37 -- @name geometry
38 -- @class function
40 --- Add a signal.
41 -- @param name A signal name.
42 -- @param func A function to call when the signal is emitted.
43 -- @name connect_signal
44 -- @class function
46 --- Remove a signal.
47 -- @param name A signal name.
48 -- @param func A function to remove.
49 -- @name disconnect_signal
50 -- @class function
52 --- Emit a signal.
53 -- @param name A signal name.
54 -- @param ... Various arguments, optional.
55 -- @name emit_signal
56 -- @class function
58 --- Get the number of instances.
59 -- @param no_params luadoc is buggy.
60 -- @return The number of drawin objects alive.
61 -- @name instances
62 -- @class function