Struct
GtkPaperSize
Description [src]
struct GtkPaperSize {
/* No available fields */
}
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.
Constructors
gtk_paper_size_new
Creates a new GtkPaperSize
object by parsing a
PWG 5101.1-2002
paper name.
since: 2.10
gtk_paper_size_new_from_gvariant
Deserialize a paper size from an a{sv} variant in the format produced by gtk_paper_size_to_gvariant().
since: 3.22
gtk_paper_size_new_from_key_file
Reads a paper size from the group group_name
in the key file
key_file
.
since: 2.12
Functions
gtk_paper_size_get_default
Returns the name of the default paper size, which depends on the current locale.
since: 2.10
Instance methods
gtk_paper_size_get_default_bottom_margin
Gets the default bottom margin for the GtkPaperSize
.
since: 2.10
gtk_paper_size_get_default_left_margin
Gets the default left margin for the GtkPaperSize
.
since: 2.10
gtk_paper_size_get_default_right_margin
Gets the default right margin for the GtkPaperSize
.
since: 2.10