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 getType(): <Error class: unknown class>

Get the GType of PaperSize

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: <Error class: unknown class>, height: <Error class: unknown class>, 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: <Error class: unknown class>, height: <Error class: unknown class>): 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: <Error class: unknown class>, height: <Error class: unknown class>): PaperSize

Creates a new GtkPaperSize object by using PPD information.