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 gtk_paper_size_get_default().
a paper size name, or %NULL
Free the given #GtkPaperSize object.
Gets the human-readable name of the #GtkPaperSize.
Gets the name of the #GtkPaperSize.
Gets the PPD name of the #GtkPaperSize, which may be %NULL.
Returns %TRUE if size
is not a standard paper size.
Returns %TRUE if size
is an IPP standard paper size.
Returns the name of the default paper size, which depends on the current locale.
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 gtk_paper_size_get_default().
a paper size name, or %NULL
Creates a new #GtkPaperSize object with the given 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.
Creates a new #GtkPaperSize object by using IPP information.
If ipp_name
is not a recognized paper name,
width
and height
are used to
construct a custom #GtkPaperSize object.
an IPP paper name
the paper width, in points
the paper height in points
Creates a new #GtkPaperSize object by using PPD information.
If ppd_name
is not a recognized PPD paper name,
ppd_display_name,
width
and height
are used to
construct a custom #GtkPaperSize object.
a PPD paper name
the corresponding human-readable name
the paper width, in points
the paper height in points
GtkPaperSize handles paper sizes. It uses the standard called PWG 5101.1-2002 PWG: Standard for Media Standardized Names to name the paper sizes (and to get the data for the page sizes). In addition to standard paper sizes, GtkPaperSize allows to construct custom paper sizes with arbitrary dimensions.
The #GtkPaperSize object stores not only the dimensions (width and height) of a paper size and its name, it also provides default [print margins][print-margins].
Printing support has been added in GTK+ 2.10.