pub trait PrintOperationExt: 'static {
Show 68 methods
// Required methods
fn cancel(&self);
fn draw_page_finish(&self);
fn get_default_page_setup(&self) -> Option<PageSetup>;
fn get_embed_page_setup(&self) -> bool;
fn get_error(&self) -> Result<(), Error>;
fn get_has_selection(&self) -> bool;
fn get_n_pages_to_print(&self) -> i32;
fn get_print_settings(&self) -> Option<PrintSettings>;
fn get_status(&self) -> PrintStatus;
fn get_status_string(&self) -> Option<GString>;
fn get_support_selection(&self) -> bool;
fn is_finished(&self) -> bool;
fn run<P: IsA<Window>>(
&self,
action: PrintOperationAction,
parent: Option<&P>,
) -> Result<PrintOperationResult, Error>;
fn set_allow_async(&self, allow_async: bool);
fn set_current_page(&self, current_page: i32);
fn set_custom_tab_label(&self, label: Option<&str>);
fn set_default_page_setup(&self, default_page_setup: Option<&PageSetup>);
fn set_defer_drawing(&self);
fn set_embed_page_setup(&self, embed: bool);
fn set_export_filename<P: AsRef<Path>>(&self, filename: P);
fn set_has_selection(&self, has_selection: bool);
fn set_job_name(&self, job_name: &str);
fn set_n_pages(&self, n_pages: i32);
fn set_print_settings(&self, print_settings: Option<&PrintSettings>);
fn set_show_progress(&self, show_progress: bool);
fn set_support_selection(&self, support_selection: bool);
fn set_track_print_status(&self, track_status: bool);
fn set_unit(&self, unit: Unit);
fn set_use_full_page(&self, full_page: bool);
fn get_property_allow_async(&self) -> bool;
fn get_property_current_page(&self) -> i32;
fn get_property_custom_tab_label(&self) -> Option<GString>;
fn get_property_export_filename(&self) -> Option<GString>;
fn get_property_job_name(&self) -> Option<GString>;
fn get_property_n_pages(&self) -> i32;
fn get_property_show_progress(&self) -> bool;
fn get_property_track_print_status(&self) -> bool;
fn get_property_unit(&self) -> Unit;
fn get_property_use_full_page(&self) -> bool;
fn connect_begin_print<F: Fn(&Self, &PrintContext) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_create_custom_widget<F: Fn(&Self) -> Object + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_custom_widget_apply<F: Fn(&Self, &Widget) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_done<F: Fn(&Self, PrintOperationResult) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_draw_page<F: Fn(&Self, &PrintContext, i32) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_end_print<F: Fn(&Self, &PrintContext) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_paginate<F: Fn(&Self, &PrintContext) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_preview<F: Fn(&Self, &PrintOperationPreview, &PrintContext, Option<&Window>) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_request_page_setup<F: Fn(&Self, &PrintContext, i32, &PageSetup) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_status_changed<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_update_custom_widget<F: Fn(&Self, &Widget, &PageSetup, &PrintSettings) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_allow_async_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_current_page_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_custom_tab_label_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_default_page_setup_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_embed_page_setup_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_export_filename_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_has_selection_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_job_name_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_n_pages_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_n_pages_to_print_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_print_settings_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_show_progress_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_status_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_status_string_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_support_selection_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_track_print_status_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_unit_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_use_full_page_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
}
Required Methods§
fn cancel(&self)
fn draw_page_finish(&self)
fn get_default_page_setup(&self) -> Option<PageSetup>
fn get_embed_page_setup(&self) -> bool
fn get_error(&self) -> Result<(), Error>
fn get_has_selection(&self) -> bool
fn get_n_pages_to_print(&self) -> i32
fn get_print_settings(&self) -> Option<PrintSettings>
fn get_status(&self) -> PrintStatus
fn get_status_string(&self) -> Option<GString>
fn get_support_selection(&self) -> bool
fn is_finished(&self) -> bool
fn run<P: IsA<Window>>( &self, action: PrintOperationAction, parent: Option<&P>, ) -> Result<PrintOperationResult, Error>
fn set_allow_async(&self, allow_async: bool)
fn set_current_page(&self, current_page: i32)
fn set_custom_tab_label(&self, label: Option<&str>)
fn set_default_page_setup(&self, default_page_setup: Option<&PageSetup>)
fn set_defer_drawing(&self)
fn set_embed_page_setup(&self, embed: bool)
fn set_export_filename<P: AsRef<Path>>(&self, filename: P)
fn set_has_selection(&self, has_selection: bool)
fn set_job_name(&self, job_name: &str)
fn set_n_pages(&self, n_pages: i32)
fn set_print_settings(&self, print_settings: Option<&PrintSettings>)
fn set_show_progress(&self, show_progress: bool)
fn set_support_selection(&self, support_selection: bool)
fn set_track_print_status(&self, track_status: bool)
fn set_unit(&self, unit: Unit)
fn set_use_full_page(&self, full_page: bool)
fn get_property_allow_async(&self) -> bool
fn get_property_current_page(&self) -> i32
fn get_property_custom_tab_label(&self) -> Option<GString>
fn get_property_export_filename(&self) -> Option<GString>
fn get_property_job_name(&self) -> Option<GString>
fn get_property_n_pages(&self) -> i32
fn get_property_show_progress(&self) -> bool
fn get_property_track_print_status(&self) -> bool
fn get_property_unit(&self) -> Unit
fn get_property_use_full_page(&self) -> bool
fn connect_begin_print<F: Fn(&Self, &PrintContext) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_create_custom_widget<F: Fn(&Self) -> Object + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_custom_widget_apply<F: Fn(&Self, &Widget) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_done<F: Fn(&Self, PrintOperationResult) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_draw_page<F: Fn(&Self, &PrintContext, i32) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_end_print<F: Fn(&Self, &PrintContext) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_paginate<F: Fn(&Self, &PrintContext) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_preview<F: Fn(&Self, &PrintOperationPreview, &PrintContext, Option<&Window>) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_request_page_setup<F: Fn(&Self, &PrintContext, i32, &PageSetup) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_status_changed<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_update_custom_widget<F: Fn(&Self, &Widget, &PageSetup, &PrintSettings) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_allow_async_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_current_page_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_custom_tab_label_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_default_page_setup_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_embed_page_setup_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_export_filename_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_has_selection_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_job_name_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_n_pages_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_n_pages_to_print_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_print_settings_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_show_progress_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_status_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_status_string_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_support_selection_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_track_print_status_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_unit_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_use_full_page_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.