Package: gtk

Class gtk:page-setup

Superclasses

gobject: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 gtk:page-setup-new function to get the defaults, or use the gtk:print-run-page-setup-dialog function to show the page setup dialog and receive the resulting page setup.

Examples

A page setup dialog.
(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 Functions

See also

#2023-3-21