Module wibox.layout.base
Info:
- Author: Uli Schlachter
- Copyright: 2010 Uli Schlachter
- Release: v3.5.1
Functions
rect_to_device_geometry (cr, x, y, width, height) | Figure out the geometry in device coordinate space. |
draw_widget (wibox, cr, widget, x, y, width, height) | Draw a widget via a cairo context |
Functions
- rect_to_device_geometry (cr, x, y, width, height)
-
Figure out the geometry in device coordinate space. This will break if
someone rotates the coordinate space by a non-multiple of 90°.
Parameters:
- cr
- x
- y
- width
- height
- draw_widget (wibox, cr, widget, x, y, width, height)
-
Draw a widget via a cairo context
Parameters:
- wibox The wibox on which we are drawing
- cr The cairo context used
- widget The widget to draw (this uses widget:draw(cr, width, height)).
- x The position that the widget should get
- y The position that the widget should get
- width The widget's width
- height The widget's height