Package: gtk
Class gtk-page-setup
Superclassesg-object, common-lisp:standard-object, common-lisp:t Documented Subclasses
None
Direct Slots
None
Details A gtk-page-setup object stores the page size, orientation and margins.
The idea is that you can get one of these from the page setup dialog and then pass it to the gtk-print-operation object when printing. The benefit of splitting this out of the gtk-print-settings object is that these
affect the actual layout of the page, and thus need to be set long before
user prints. The margins specified in this object are the "print margins", i.e. the parts of the page that the printer cannot print on. These are different from the layout margins that a word processor uses. They are typically used to determine the minimal size for the layout margins. To obtain a gtk-page-setup object use the function gtk-page-setup-new to get the defaults, or use the function gtk-print-run-page-setup-dialog to show the page setup dialog and receive the resulting page setup. Example(defun do-page-setup (settings page-setup) (when (not settings) ;; Set default print settings (setf settings (gtk-print-settings-new))) ;; Return the new page setup from the dialog (gtk-print-run-page-setup-dialog window page-setup settings)) | Inherited Slot Access FunctionsSee also |
2021-3-17