2 -- @author Julien Danjou <julien@danjou.info>
3 -- @copyright 2008-2009 Julien Danjou
7 -- @field border_width Border width.
8 -- @field border_color Border color.
9 -- @field ontop On top of other windows.
10 -- @field cursor The mouse cursor.
11 -- @field visible Visibility.
12 -- @field opacity The opacity of the drawin, between 0 and 1.
13 -- @field type The window type (desktop, normal, dock, …).
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 -- @field window The X window id.
20 -- @field shape_bounding The drawin's bounding shape as a (native) cairo surface.
21 -- @field shape_clip The drawin's clip shape as a (native) cairo surface.
25 --- Get or set mouse buttons bindings to a drawin.
26 -- @param buttons_table A table of buttons objects, or nothing.
30 --- Get or set drawin struts.
31 -- @param strut A table with new strut, or nothing
32 -- @return The drawin strut in a table.
36 --- Get or set drawin geometry. That's the same as accessing or setting the x, y, width or height
37 -- properties of a drawin.
38 -- @param A table with coordinates to modify.
39 -- @return A table with drawin coordinates and geometry.
44 -- @param name A signal name.
45 -- @param func A function to call when the signal is emitted.
46 -- @name connect_signal
50 -- @param name A signal name.
51 -- @param func A function to remove.
52 -- @name disconnect_signal
56 -- @param name A signal name.
57 -- @param ... Various arguments, optional.
61 --- Get the number of instances.
62 -- @return The number of drawin objects alive.