PrintSettings

constructor()

Creates a new GtkPrintSettings object.

Return

a new GtkPrintSettings object


constructor(fileName: String)

Reads the print settings from @file_name.

Returns a new GtkPrintSettings object with the restored settings, or null if an error occurred. If the file could not be loaded then error is set to either a GFileError or GKeyFileError.

See method@Gtk.PrintSettings.to_file.

Return

the restored GtkPrintSettings

Parameters

fileName

the filename to read the settings from


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

Deserialize print settings from an a{sv} variant.

The variant must be in the format produced by method@Gtk.PrintSettings.to_gvariant.

Return

a new GtkPrintSettings object

Parameters

variant

an a{sv} GVariant


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

Reads the print settings from the group @group_name in @key_file.

Returns a new GtkPrintSettings object with the restored settings, or null if an error occurred. If the file could not be loaded then error is set to either GFileError or GKeyFileError.

Return

the restored GtkPrintSettings

Parameters

keyFile

the GKeyFile to retrieve the settings from

groupName

the name of the group to use, or null to use the default “Print Settings”


constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)