|
| PageSetup (PageSetup &&src) noexcept |
|
PageSetup & | operator= (PageSetup &&src) noexcept |
|
| ~PageSetup () noexcept override |
|
GtkPageSetup * | gobj () |
| Provides access to the underlying C GObject.
|
|
const GtkPageSetup * | gobj () const |
| 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.
|
|
Glib::RefPtr< PageSetup > | copy () const |
| Copies a Gtk::PageSetup .
|
|
bool | load_from_file (const std::string &file_name) |
| Reads the page setup from the file file_name.
|
|
bool | load_from_key_file (const Glib::RefPtr< const Glib::KeyFile > &key_file, const Glib::ustring &group_name) |
| Reads the page setup from the group group_name in the key file key_file.
|
|
bool | load_from_key_file (const Glib::RefPtr< const Glib::KeyFile > &key_file) |
| Reads the page setup from the "Page Setup" group in the key file key_file.
|
|
PageOrientation | get_orientation () const |
| Gets the page orientation of the Gtk::PageSetup .
|
|
void | set_orientation (PageOrientation orientation) |
| Sets the page orientation of the Gtk::PageSetup .
|
|
PaperSize | get_paper_size () |
| Gets the paper size of the Gtk::PageSetup .
|
|
const PaperSize | get_paper_size () const |
| Gets the paper size of the Gtk::PageSetup .
|
|
void | set_paper_size (const PaperSize &size) |
| Sets the paper size of the Gtk::PageSetup without changing the margins.
|
|
double | get_top_margin (Unit unit) const |
| Gets the top margin in units of unit.
|
|
void | set_top_margin (double margin, Unit unit) |
| Sets the top margin of the Gtk::PageSetup .
|
|
double | get_bottom_margin (Unit unit) const |
| Gets the bottom margin in units of unit.
|
|
void | set_bottom_margin (double margin, Unit unit) |
| Sets the bottom margin of the Gtk::PageSetup .
|
|
double | get_left_margin (Unit unit) const |
| Gets the left margin in units of unit.
|
|
void | set_left_margin (double margin, Unit unit) |
| Sets the left margin of the Gtk::PageSetup .
|
|
double | get_right_margin (Unit unit) const |
| Gets the right margin in units of unit.
|
|
void | set_right_margin (double margin, Unit unit) |
| Sets the right margin of the Gtk::PageSetup .
|
|
void | set_paper_size_and_default_margins (const PaperSize &size) |
| Sets the paper size of the Gtk::PageSetup and modifies the margins according to the new paper size.
|
|
double | get_paper_width (Unit unit) const |
| Returns the paper width in units of unit.
|
|
double | get_paper_height (Unit unit) const |
| Returns the paper height in units of unit.
|
|
double | get_page_width (Unit unit) const |
| Returns the page width in units of unit.
|
|
double | get_page_height (Unit unit) const |
| Returns the page height in units of unit.
|
|
bool | save_to_file (const std::string &file_name) const |
| This function saves the information from setup to file_name.
|
|
void | save_to_key_file (const Glib::RefPtr< Glib::KeyFile > &key_file, const Glib::ustring &group_name) const |
| This function adds the page setup from setup to key_file.
|
|
void | save_to_key_file (const Glib::RefPtr< Glib::KeyFile > &key_file) const |
| This function adds the page setup from setup to key_file, in the group "Page Setup".
|
|
| Object (const Object &)=delete |
|
Object & | operator= (const Object &)=delete |
|
| Object (Object &&src) noexcept |
|
Object & | operator= (Object &&src) noexcept |
|
void * | get_data (const QueryQuark &key) |
|
void | set_data (const Quark &key, void *data) |
|
void | set_data_with_c_callback (const Quark &key, void *data, GDestroyNotify notify) |
|
void | set_data (const Quark &key, void *data, DestroyNotify notify) |
|
void | remove_data (const QueryQuark &quark) |
|
void * | steal_data (const QueryQuark &quark) |
|
Glib::RefPtr< Glib::Object > | wrap (GObject *object, bool take_copy=false) |
|
| ObjectBase (const ObjectBase &)=delete |
|
ObjectBase & | operator= (const ObjectBase &)=delete |
|
void | set_property_value (const Glib::ustring &property_name, const Glib::ValueBase &value) |
|
void | get_property_value (const Glib::ustring &property_name, Glib::ValueBase &value) const |
|
void | set_property (const Glib::ustring &property_name, const PropertyType &value) |
|
void | get_property (const Glib::ustring &property_name, PropertyType &value) const |
|
PropertyType | get_property (const Glib::ustring &property_name) const |
|
sigc::connection | connect_property_changed (const Glib::ustring &property_name, const sigc::slot< void()> &slot) |
|
sigc::connection | connect_property_changed (const Glib::ustring &property_name, sigc::slot< void()> &&slot) |
|
void | freeze_notify () |
|
void | thaw_notify () |
|
virtual void | reference () const |
|
virtual void | unreference () const |
|
GObject * | gobj () |
|
const GObject * | gobj () const |
|
GObject * | gobj_copy () const |
|
| trackable () noexcept |
|
| trackable (const trackable &src) noexcept |
|
| trackable (trackable &&src) noexcept |
|
| ~trackable () |
|
void | add_destroy_notify_callback (notifiable *data, func_destroy_notify func) const |
|
void | notify_callbacks () |
|
trackable & | operator= (const trackable &src) |
|
trackable & | operator= (trackable &&src) noexcept |
|
void | remove_destroy_notify_callback (notifiable *data) const |
|
A PageSetup object stores the page size, orientation and margins.
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.