Companion

object Companion

Functions

Link copied to clipboard

Returns the name of the default paper size, which depends on the current locale.

Link copied to clipboard
fun getPaperSizes(includeCustom: Boolean): <Error class: unknown class>

Creates a list of known paper sizes.

Link copied to clipboard
fun new(name: String? = null): PaperSize

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

Link copied to clipboard
fun newCustom(name: String, displayName: String, width: Double, height: Double, unit: Unit): PaperSize

Creates a new GtkPaperSize object with the given parameters.

Link copied to clipboard
fun newFromGvariant(variant: <Error class: unknown class>): PaperSize

Deserialize a paper size from a GVariant.

Link copied to clipboard
fun newFromIpp(ippName: String, width: Double, height: Double): PaperSize

Creates a new GtkPaperSize object by using IPP information.

Link copied to clipboard
fun newFromKeyFile(keyFile: <Error class: unknown class>, groupName: String? = null): <Error class: unknown class><PaperSize>

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

Link copied to clipboard
fun newFromPpd(ppdName: String, ppdDisplayName: String, width: Double, height: Double): PaperSize

Creates a new GtkPaperSize object by using PPD information.

Link copied to clipboard
open fun wrapRecordPointer(pointer: <Error class: unknown class><out <Error class: unknown class>>): PaperSize