gtkmm 4.17.0
|
An auxiliary object for printing that allows decoupling the setup from the printing. More...
#include <gtkmm/printsetup.h>
Public Member Functions | |
void | reference () const |
Increment the reference count for this object. | |
void | unreference () const |
Decrement the reference count for this object. | |
GtkPrintSetup * | gobj () |
Provides access to the underlying C instance. | |
const GtkPrintSetup * | gobj () const |
Provides access to the underlying C instance. | |
GtkPrintSetup * | gobj_copy () const |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
PrintSetup ()=delete | |
PrintSetup (const PrintSetup &)=delete | |
PrintSetup & | operator= (const PrintSetup &)=delete |
Glib::RefPtr< PrintSettings > | get_print_settings () |
Returns the print settings of setup. | |
Glib::RefPtr< const PrintSettings > | get_print_settings () const |
Returns the print settings of setup. | |
Glib::RefPtr< PageSetup > | get_page_setup () |
Returns the page setup of setup. | |
Glib::RefPtr< const PageSetup > | get_page_setup () const |
Returns the page setup of setup. | |
Protected Member Functions | |
void | operator delete (void *, std::size_t) |
Related Symbols | |
(Note that these are not member symbols.) | |
Glib::RefPtr< Gtk::PrintSetup > | wrap (GtkPrintSetup *object, bool take_copy=false) |
A Glib::wrap() method for this object. | |
An auxiliary object for printing that allows decoupling the setup from the printing.
A print setup is obtained by calling Gtk::PrintDialog::setup_finish(), and can later be passed to print functions such as Gtk::PrintDialog::print().
Print setups can be reused for multiple print calls.
Applications may wish to store the page_setup and print_settings from the print setup and copy them to the PrintDialog if they want to keep using them.
|
delete |
|
delete |
Glib::RefPtr< PageSetup > Gtk::PrintSetup::get_page_setup | ( | ) |
Returns the page setup of setup.
It may be different from the Gtk::PrintDialog
's page setup if the user changed it during the setup process.
nullptr
. Glib::RefPtr< const PageSetup > Gtk::PrintSetup::get_page_setup | ( | ) | const |
Returns the page setup of setup.
It may be different from the Gtk::PrintDialog
's page setup if the user changed it during the setup process.
nullptr
. Glib::RefPtr< PrintSettings > Gtk::PrintSetup::get_print_settings | ( | ) |
Returns the print settings of setup.
They may be different from the Gtk::PrintDialog
's settings if the user changed them during the setup process.
nullptr
. Glib::RefPtr< const PrintSettings > Gtk::PrintSetup::get_print_settings | ( | ) | const |
Returns the print settings of setup.
They may be different from the Gtk::PrintDialog
's settings if the user changed them during the setup process.
nullptr
. GtkPrintSetup * Gtk::PrintSetup::gobj | ( | ) |
Provides access to the underlying C instance.
const GtkPrintSetup * Gtk::PrintSetup::gobj | ( | ) | const |
Provides access to the underlying C instance.
GtkPrintSetup * Gtk::PrintSetup::gobj_copy | ( | ) | const |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
|
delete |
void Gtk::PrintSetup::reference | ( | ) | const |
Increment the reference count for this object.
You should never need to do this manually - use the object via a RefPtr instead.
void Gtk::PrintSetup::unreference | ( | ) | const |
Decrement the reference count for this object.
You should never need to do this manually - use the object via a RefPtr instead.
|
related |
A Glib::wrap() method for this object.
object | The C instance. |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |