![]() |
![]() |
You can get one of these from the page setup dialog and then pass it to the PrintOperation when printing. The benefit of splitting this out of the PrintSettings is that these affect the actual layout of the page, and thus need to be set long before the user prints.
The margins specified in this object are the "print margins", i.e. the parts of the page that the printer cannot print on. These are different from the layout margins that a word processor uses; they are typically used to determine the minimal size for the layout margins.
To obtain a PageSetup use PageSetup::create() to get the defaults, or use run_page_setup_dialog() to show the page setup dialog and receive the resulting page setup.
Public Member Functions | |
double | get_bottom_margin (Unit unit) const |
double | get_left_margin (Unit unit) const |
PageOrientation | get_orientation () const |
double | get_page_height (Unit unit) const |
double | get_page_width (Unit unit) const |
double | get_paper_height (Unit unit) const |
const PaperSize | get_paper_size () const |
PaperSize | get_paper_size () |
double | get_paper_width (Unit unit) const |
double | get_right_margin (Unit unit) const |
double | get_top_margin (Unit unit) const |
const GtkPageSetup* | gobj () const |
Provides access to the underlying C GObject. | |
GtkPageSetup* | gobj () |
Provides access to the underlying C GObject. | |
GtkPageSetup* | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
void | set_bottom_margin (double margin, Unit unit) |
void | set_left_margin (double margin, Unit unit) |
void | set_orientation (PageOrientation orientation) |
void | set_paper_size (const PaperSize& paper_size) |
void | set_paper_size_and_default_margins (const PaperSize& paper_size) |
void | set_right_margin (double margin, Unit unit) |
void | set_top_margin (double margin, Unit unit) |
virtual | ~PageSetup () |
Static Public Member Functions | |
static Glib::RefPtr<PageSetup> | create () |
Protected Member Functions | |
PageSetup () | |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr<Gtk::PageSetup> | wrap (GtkPageSetup* object, bool take_copy=false) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Provides access to the underlying C GObject.
Reimplemented from Glib::ObjectBase. |
|
Provides access to the underlying C GObject.
Reimplemented from Glib::ObjectBase. |
|
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|