Trait gtk4::subclass::print_operation::PrintOperationImpl
source · pub trait PrintOperationImpl: PrintOperationImplExt + PrintOperationPreviewImpl {
// Provided methods
fn begin_print(&self, context: &PrintContext) { ... }
fn create_custom_widget(&self) -> Option<Widget> { ... }
fn custom_widget_apply(&self, widget: &Widget) { ... }
fn done(&self, result: PrintOperationResult) { ... }
fn draw_page(&self, context: &PrintContext, page_nr: i32) { ... }
fn end_print(&self, context: &PrintContext) { ... }
fn paginate(&self, context: &PrintContext) -> bool { ... }
fn preview(
&self,
preview: &PrintOperationPreview,
context: &PrintContext,
parent: Option<&Window>
) -> bool { ... }
fn request_page_setup(
&self,
context: &PrintContext,
page_nr: i32,
setup: &PageSetup
) { ... }
fn status_changed(&self) { ... }
fn update_custom_widget(
&self,
widget: &Widget,
setup: &PageSetup,
settings: &PrintSettings
) { ... }
}
Provided Methods§
sourcefn begin_print(&self, context: &PrintContext)
fn begin_print(&self, context: &PrintContext)
Signal emitted after the user has finished changing print settings in the dialog, before the actual rendering starts.
sourcefn create_custom_widget(&self) -> Option<Widget>
fn create_custom_widget(&self) -> Option<Widget>
Signal emitted when displaying the print dialog.
sourcefn custom_widget_apply(&self, widget: &Widget)
fn custom_widget_apply(&self, widget: &Widget)
Signal emitted right before “begin-print” if you added a custom widget in the “create-custom-widget” handler.
sourcefn done(&self, result: PrintOperationResult)
fn done(&self, result: PrintOperationResult)
Signal emitted when the print operation run has finished doing everything required for printing.
sourcefn draw_page(&self, context: &PrintContext, page_nr: i32)
fn draw_page(&self, context: &PrintContext, page_nr: i32)
Signal emitted for every page that is printed.
sourcefn end_print(&self, context: &PrintContext)
fn end_print(&self, context: &PrintContext)
Signal emitted after all pages have been rendered.
sourcefn paginate(&self, context: &PrintContext) -> bool
fn paginate(&self, context: &PrintContext) -> bool
Signal emitted after the “begin-print” signal, but before the actual rendering starts.
sourcefn preview(
&self,
preview: &PrintOperationPreview,
context: &PrintContext,
parent: Option<&Window>
) -> bool
fn preview( &self, preview: &PrintOperationPreview, context: &PrintContext, parent: Option<&Window> ) -> bool
Signal emitted when a preview is requested from the native dialog.
sourcefn request_page_setup(
&self,
context: &PrintContext,
page_nr: i32,
setup: &PageSetup
)
fn request_page_setup( &self, context: &PrintContext, page_nr: i32, setup: &PageSetup )
Emitted once for every page that is printed, to give the application a chance to modify the page setup.
sourcefn status_changed(&self)
fn status_changed(&self)
Emitted at between the various phases of the print operation.
sourcefn update_custom_widget(
&self,
widget: &Widget,
setup: &PageSetup,
settings: &PrintSettings
)
fn update_custom_widget( &self, widget: &Widget, setup: &PageSetup, settings: &PrintSettings )
Emitted after change of selected printer.