A Gtk::PrintDialog object collects the arguments that are needed to present a print dialog to the user, such as a title for the dialog and whether it should be modal.
More...
|
| | PrintDialog (PrintDialog &&src) noexcept |
| |
| PrintDialog & | operator= (PrintDialog &&src) noexcept |
| |
| | ~PrintDialog () noexcept override |
| |
| GtkPrintDialog * | gobj () |
| | Provides access to the underlying C GObject.
|
| |
| const GtkPrintDialog * | gobj () const |
| | Provides access to the underlying C GObject.
|
| |
| GtkPrintDialog * | gobj_copy () |
| | Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
|
| |
| Glib::ustring | get_title () const |
| | Returns the title that will be shown on the print dialog.
|
| |
| void | set_title (const Glib::ustring &title) |
| | Sets the title that will be shown on the print dialog.
|
| |
| Glib::ustring | get_accept_label () const |
| | Returns the label that will be shown on the accept button of the print dialog.
|
| |
| void | set_accept_label (const Glib::ustring &accept_label) |
| | Sets the label that will be shown on the accept button of the print dialog shown for setup().
|
| |
| bool | get_modal () const |
| | Returns whether the print dialog blocks interaction with the parent window while it is presented.
|
| |
| void | set_modal (bool modal=true) |
| | Sets whether the print dialog blocks interaction with the parent window while it is presented.
|
| |
| Glib::RefPtr< PageSetup > | get_page_setup () |
| | Returns the page setup.
|
| |
| Glib::RefPtr< const PageSetup > | get_page_setup () const |
| | Returns the page setup.
|
| |
| void | set_page_setup (const Glib::RefPtr< PageSetup > &page_setup) |
| | Set the page setup for the print dialog.
|
| |
| Glib::RefPtr< PrintSettings > | get_print_settings () |
| | Returns the print settings for the print dialog.
|
| |
| Glib::RefPtr< const PrintSettings > | get_print_settings () const |
| | Returns the print settings for the print dialog.
|
| |
| void | set_print_settings (const Glib::RefPtr< PrintSettings > &print_settings) |
| | Sets the print settings for the print dialog.
|
| |
| void | setup (Window & parent, const Gio::SlotAsyncReady & slot, const Glib::RefPtr< Gio::Cancellable > &cancellable={}) |
| | This function presents a print dialog to let the user select a printer, and set up print settings and page setup.
|
| |
| void | setup (const Gio::SlotAsyncReady & slot, const Glib::RefPtr< Gio::Cancellable > &cancellable={}) |
| | A setup() convenience overload.
|
| |
| Glib::RefPtr< PrintSetup > | setup_finish (const Glib::RefPtr< Gio::AsyncResult > &result) |
| | Finishes the setup() call.
|
| |
| void | print (Window & parent, const Gio::SlotAsyncReady & slot, const Glib::RefPtr< PrintSetup > &setup={}, const Glib::RefPtr< Gio::Cancellable > &cancellable={}) |
| | This function prints content from a stream.
|
| |
| void | print (const Gio::SlotAsyncReady & slot, const Glib::RefPtr< PrintSetup > &setup={}, const Glib::RefPtr< Gio::Cancellable > &cancellable={}) |
| | A print() convenience overload.
|
| |
| Glib::RefPtr< Gio::OutputStream > | print_finish (const Glib::RefPtr< Gio::AsyncResult > &result) |
| | Finishes the print() call and returns the results.
|
| |
| void | print_file (Window & parent, const Gio::SlotAsyncReady & slot, const Glib::RefPtr< Gio::File > & file, const Glib::RefPtr< PrintSetup > &setup={}, const Glib::RefPtr< Gio::Cancellable > &cancellable={}) |
| | This function prints a file.
|
| |
| void | print_file (const Gio::SlotAsyncReady & slot, const Glib::RefPtr< Gio::File > & file, const Glib::RefPtr< PrintSetup > &setup={}, const Glib::RefPtr< Gio::Cancellable > &cancellable={}) |
| | A print_file() convenience overload.
|
| |
| bool | print_file_finish (const Glib::RefPtr< Gio::AsyncResult > &result) |
| | Finishes the print_file() call and returns the results.
|
| |
| Glib::PropertyProxy< Glib::ustring > | property_title () |
| | A title that may be shown on the print dialog that is presented by Gtk::PrintDialog::setup().
|
| |
| Glib::PropertyProxy_ReadOnly< Glib::ustring > | property_title () const |
| | A title that may be shown on the print dialog that is presented by Gtk::PrintDialog::setup().
|
| |
| Glib::PropertyProxy< Glib::ustring > | property_accept_label () |
| | A label that may be shown on the accept button of a print dialog that is presented by Gtk::PrintDialog::setup().
|
| |
| Glib::PropertyProxy_ReadOnly< Glib::ustring > | property_accept_label () const |
| | A label that may be shown on the accept button of a print dialog that is presented by Gtk::PrintDialog::setup().
|
| |
| Glib::PropertyProxy< bool > | property_modal () |
| | Whether the print dialog is modal.
|
| |
| Glib::PropertyProxy_ReadOnly< bool > | property_modal () const |
| | Whether the print dialog is modal.
|
| |
| Glib::PropertyProxy< Glib::RefPtr< PageSetup > > | property_page_setup () |
| | The page setup to use.
|
| |
| Glib::PropertyProxy_ReadOnly< Glib::RefPtr< PageSetup > > | property_page_setup () const |
| | The page setup to use.
|
| |
| Glib::PropertyProxy< Glib::RefPtr< PrintSettings > > | property_print_settings () |
| | The print settings to use.
|
| |
| Glib::PropertyProxy_ReadOnly< Glib::RefPtr< PrintSettings > > | property_print_settings () const |
| | The print settings to use.
|
| |
| | 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 Gtk::PrintDialog object collects the arguments that are needed to present a print dialog to the user, such as a title for the dialog and whether it should be modal.
The dialog is shown with the setup() function. The actual printing can be done with print() or print_file(). These APIs follow the GIO async pattern, and the results can be obtained by calling the corresponding finish methods.
- Since gtkmm 4.14: