Package: gtk
Class gtk:print-context
Superclassesgobject:object, common-lisp:standard-object, common-lisp:t Documented Subclasses
None
Direct Slots
None
Details The gtk:print-context object 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 a pango:layout object and pango:context objects that match the font metrics of the Cairo
surface. The gtk:print-context object gets passed to the "begin-print", "end-print", "request-page-setup" and "draw-page" signals on the print operation. Examples(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 |
2023-2-11