Gnome Library Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
#include <gnome.h> typedef Paper; typedef Unit; GList* gnome_paper_name_list (void); const GnomePaper* gnome_paper_with_name (const gchar *papername); const GnomePaper* gnome_paper_with_size (double pswidth, double psheight); const gchar* gnome_paper_name (const GnomePaper *paper); gdouble gnome_paper_pswidth (const GnomePaper *paper); gdouble gnome_paper_psheight (const GnomePaper *paper); gdouble gnome_paper_lmargin (const GnomePaper *paper); gdouble gnome_paper_tmargin (const GnomePaper *paper); gdouble gnome_paper_rmargin (const GnomePaper *paper); gdouble gnome_paper_bmargin (const GnomePaper *paper); const gchar* gnome_paper_name_default (void); GList* gnome_unit_name_list (void); const GnomeUnit* gnome_unit_with_name (const gchar *unitname); gdouble gnome_paper_convert (double psvalue, const GnomeUnit *unit); double gnome_paper_convert_to_points (double othervalue, const GnomeUnit *unit); |
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.
GList* gnome_paper_name_list (void); |
grants access to the hardcoded internal list of paper specifications
const GnomePaper* gnome_paper_with_name (const gchar *papername); |
searches internal list of paper sizes, searching for one with the name 'papername'
const GnomePaper* gnome_paper_with_size (double pswidth, double psheight); |
create a custom paper type with given dimensions
gdouble gnome_paper_pswidth (const GnomePaper *paper); |
returns the width of the paper, including the margins
gdouble gnome_paper_psheight (const GnomePaper *paper); |
returns the height of the paper, including the margins
GList* gnome_unit_name_list (void); |
grants access to the hardcoded internal list of units
const GnomeUnit* gnome_unit_with_name (const gchar *unitname); |
searches internal list of units, searching for one with the name 'unitname'
gdouble gnome_paper_convert (double psvalue, const GnomeUnit *unit); |
converts from value represented in points to value represented in given units.