Function gtk::print_run_page_setup_dialog_async
source · [−]pub fn print_run_page_setup_dialog_async<P: FnOnce(&PageSetup) + Send + Sync + 'static>(
parent: Option<&impl IsA<Window>>,
page_setup: Option<&PageSetup>,
settings: &PrintSettings,
done_cb: P
)
Expand description
Runs a page setup dialog, letting the user modify the values from page_setup
.
In contrast to print_run_page_setup_dialog()
, this function returns after
showing the page setup dialog on platforms that support this, and calls done_cb
from a signal handler for the ::response signal of the dialog.
parent
transient parent, or None
page_setup
an existing PageSetup
, or None
settings
done_cb
a function to call when the user saves the modified page setup