Package: gtk

Function gtk-print-settings-length

Lambda List

gtk-print-settings-length (settings key unit)

Syntax

(gtk-print-settings-length settings key unit) => value
(setf (gtk-print-settings-length settings key unit) value)

Arguments

settings -- a gtk-print-settings object
key -- a string with a key
unit -- the unit of type gtk-unit of the return value
value -- a number with the length

Details

Accessor of the length value of a key in a print setting.

The function gtk-print-settings-length returns the length value of key, converted to unit. The function (setf gtk-print-settings-length) associates a length in units of unit with key.

Example

 (setq settings (make-instance 'gtk-print-settings))
=> #<GTK-PRINT-SETTINGS {1004A34623}>
 (setf (gtk-print-settings-length settings "paper-width" :mm) 100.0d0)
 (gtk-print-settings-length settings "paper-width" :mm)
=> 100.0d0    
 

See also

2020-4-13