Package: gtk

Function gtk:print-context-set-cairo-context

Lambda List

gtk:print-context-set-cairo-context (context cr xdpi ydpi)

Arguments

context -- a gtk:print-context object
cr -- a cairo:context-t instance with the Cairo context
xdpi -- a number coerced to a double float with the horizontal resolution to use with cr
ydpi -- a number coerced to a double float with the vertical resolution to use with cr

Details

Sets a new Cairo context on a print context. This function is intended to be used when implementing an internal print preview, it is not needed for printing, since GTK itself creates a suitable Cairo context in that case.
 

See also

#2024-2-16