Package: gtk
Class gtk-print-context
Superclassesg-object, common-lisp:standard-object, common-lisp:t Documented Subclasses
None
Direct Slots
None
Details A gtk-print-context encapsulates context information that is required
when drawing pages for printing, such as the Cairo context and important
parameters like page size and resolution. It also lets you easily create pango-layout and pango-context
objects that match the font metrics of the cairo surface. gtk-print-context objects gets passed to the "begin-print", "end-print", "request-page-setup" and "draw-page" signals on the print operation. Example(defun draw-page (operation context page-nr) (declare (ignore operation page-nr)) (let ((cr (gtk-print-context-get-cairo-context context)) (layout (gtk-print-context-create-pango-layout context))) | Inherited Slot Access FunctionsSee also |
2020-4-9