Whole document tree
gnome-paper
Name gnome-paper -- Paper dimensions, printing unit conversions.
Description The gnome-paper module provides a way of querying a database of
existing paper dimensions, as well as the known or user-configured
values for the margins.
Support for converting values to and from PostScript points is
also supported.
Details Papertypedef GnomePaper Paper;
gnome_paper_name_list ()GList* gnome_paper_name_list (void);
grants access to the hardcoded internal list of paper specifications
gnome_paper_with_name ()const GnomePaper* gnome_paper_with_name (const gchar *papername);
searches internal list of paper sizes, searching
for one with the name 'papername'
gnome_paper_with_size ()const GnomePaper* gnome_paper_with_size (double pswidth,
double psheight);
create a custom paper type with given dimensions
gnome_paper_name ()const gchar* gnome_paper_name (const GnomePaper *paper);
gnome_paper_pswidth ()gdouble gnome_paper_pswidth (const GnomePaper *paper);
returns the width of the paper, including the margins
gnome_paper_psheight ()gdouble gnome_paper_psheight (const GnomePaper *paper);
returns the height of the paper, including the margins
gnome_paper_lmargin ()gdouble gnome_paper_lmargin (const GnomePaper *paper);
gnome_paper_tmargin ()gdouble gnome_paper_tmargin (const GnomePaper *paper);
gnome_paper_rmargin ()gdouble gnome_paper_rmargin (const GnomePaper *paper);
gnome_paper_bmargin ()gdouble gnome_paper_bmargin (const GnomePaper *paper);
gnome_paper_name_default ()const gchar* gnome_paper_name_default (void);
gnome_unit_name_list ()GList* gnome_unit_name_list (void);
grants access to the hardcoded internal list
of units
gnome_unit_with_name ()const GnomeUnit* gnome_unit_with_name (const gchar *unitname);
searches internal list of units, searching
for one with the name 'unitname'
gnome_paper_convert ()gdouble gnome_paper_convert (double psvalue,
const GnomeUnit *unit);
converts from value represented in points
to value represented in given units.
gnome_paper_convert_to_points ()double gnome_paper_convert_to_points (double othervalue,
const GnomeUnit *unit);
Needed for gnome-paper-selector.
converts from value represented in points
to value represented in given units.