PaperSize
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
a paper size name
Creates a new GtkPaperSize
object with the given parameters.
Return
a new GtkPaperSize
object, use method@Gtk.PaperSize.free to free it
Parameters
the paper name
the human-readable name
the paper width, in units of @unit
the paper height, in units of @unit
the unit for @width and @height. not %GTK_UNIT_NONE.
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
an a{sv} GVariant
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
an IPP paper name
the paper width, in points
the paper height in points
Reads a paper size from the group @group_name in the key file
Return
a new GtkPaperSize
object with the restored paper size
Parameters
the GKeyFile
to retrieve the papersize from
the name of the group in the key file to read, or null to read the first group
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
a PPD paper name
the corresponding human-readable name
the paper width, in points
the paper height in points