PaperSize

constructor(name: String? = null)(source)

Creates a new GtkPaperSize object by parsing a PWG 5101.1-2002 paper name.

If @name is null, the default paper size is returned, see func@Gtk.PaperSize.get_default.

Return

a new GtkPaperSize, use method@Gtk.PaperSize.free to free it

Parameters

name

a paper size name


constructor(name: String, displayName: String, width: <Error class: unknown class>, height: <Error class: unknown class>, unit: Unit)(source)

Creates a new GtkPaperSize object with the given parameters.

Return

a new GtkPaperSize object, use method@Gtk.PaperSize.free to free it

Parameters

name

the paper name

displayName

the human-readable name

width

the paper width, in units of @unit

height

the paper height, in units of @unit

unit

the unit for @width and @height. not %GTK_UNIT_NONE.


constructor(variant: <Error class: unknown class>)(source)

Deserialize a paper size from a GVariant.

The `GVariant must be in the format produced by method@Gtk.PaperSize.to_gvariant.

Return

a new GtkPaperSize object

Parameters

variant

an a{sv} GVariant


constructor(ippName: String, width: <Error class: unknown class>, height: <Error class: unknown class>)(source)

Creates a new GtkPaperSize object by using IPP information.

If @ipp_name is not a recognized paper name,

Return

a new GtkPaperSize, use method@Gtk.PaperSize.free to free it

Parameters

ippName

an IPP paper name

width

the paper width, in points

height

the paper height in points


constructor(keyFile: <Error class: unknown class>, groupName: String? = null)(source)

Reads a paper size from the group @group_name in the key file

Return

a new GtkPaperSize object with the restored paper size

Parameters

keyFile

the GKeyFile to retrieve the papersize from

groupName

the name of the group in the key file to read, or null to read the first group


constructor(ppdName: String, ppdDisplayName: String, width: <Error class: unknown class>, height: <Error class: unknown class>)(source)

Creates a new GtkPaperSize object by using PPD information.

If @ppd_name is not a recognized PPD paper name,

Return

a new GtkPaperSize, use method@Gtk.PaperSize.free to free it

Parameters

ppdName

a PPD paper name

ppdDisplayName

the corresponding human-readable name

width

the paper width, in points

height

the paper height in points


constructor(gtkPaperSizePointer: <Error class: unknown class><<Error class: unknown class>>)(source)