Package: gtk
Class gtk:page-setup
Superclassesgobject:object, common-lisp:standard-object, common-lisp:t Documented Subclasses
None
Direct Slots
None
Details The 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". These are the parts of the page that the printer cannot print on. These are different from the layout margins used by a word processor. 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. Examples(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)) | Returned by
Inherited Slot Access FunctionsSee also |
2024-4-30