Package: gtk

Function gtk-print-settings-paper-size

Lambda List

gtk-print-settings-paper-size (settings)

Syntax

(gtk-print-settings-paper-size settings) => paper-size
(setf (gtk-print-settings-paper-size settings) paper-size)

Arguments

settings -- a gtk-print-settings object
paper-size -- a paper size of type gtk-paper-size

Details

Accessor of the "paper-format" of a print setting.

The function gtk-print-settings-paper-size gets the value of "paper-format", converted to a gtk-paper-size. The function (setf gtk-print-settings-paper-size) sets the value of "paper-format", "paper-width", and "paper-height".

Example

 (setq settings (make-instance 'gtk-print-settings))
=> #<GTK-PRINT-SETTINGS {1001A0F643}>
 (setf (gtk-print-settings-paper-size settings) (gtk-paper-size-new "iso_a4"))
=> #<GTK-PAPER-SIZE {1001A244C3}>
 (gtk-print-settings-paper-size settings)
=> #<GTK-PAPER-SIZE {1001A24B63}>    
 

See also

2020-4-5