Package: gtk
Function gtk:widget-draw
Lambda Listgtk:widget-draw (widget cr) ArgumentsDetails
Draws the widget to a Cairo Context. The widget must be drawable, see the gtk:widget-is-drawable function,
and a size must have been allocated. The top left corner of the widget will
be drawn to the currently set origin point of the Cairo context. You should pass a Cairo context as cr argument that is in an original state. Otherwise the resulting drawing is undefined. For example changing the operator using the cairo:operator function or the line width using the cairo:line-width function might have unwanted side effects. You may however change the transform matrix of the Cairo context - like with the cairo:scale, cairo:translate or cairo:matrix functions and clip region with the cairo:clip function prior to calling this function. Also, it is fine to modify the Cairo context with the cairo:save and cairo:push-group functions prior to calling this function. Notes | See also |
#2023-3-8