Struct gtk4::builders::PrintOperationBuilder
source · [−]pub struct PrintOperationBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct PrintOperation
objects.
Implementations
sourceimpl PrintOperationBuilder
impl PrintOperationBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new PrintOperationBuilder
.
sourcepub fn build(self) -> PrintOperation
pub fn build(self) -> PrintOperation
Build the PrintOperation
.
pub fn allow_async(self, allow_async: bool) -> Self
pub fn current_page(self, current_page: i32) -> Self
pub fn custom_tab_label(self, custom_tab_label: &str) -> Self
pub fn default_page_setup(self, default_page_setup: &PageSetup) -> Self
pub fn embed_page_setup(self, embed_page_setup: bool) -> Self
pub fn export_filename(self, export_filename: &str) -> Self
pub fn has_selection(self, has_selection: bool) -> Self
pub fn job_name(self, job_name: &str) -> Self
pub fn n_pages(self, n_pages: i32) -> Self
pub fn print_settings(self, print_settings: &PrintSettings) -> Self
pub fn show_progress(self, show_progress: bool) -> Self
pub fn support_selection(self, support_selection: bool) -> Self
pub fn track_print_status(self, track_print_status: bool) -> Self
pub fn unit(self, unit: Unit) -> Self
pub fn use_full_page(self, use_full_page: bool) -> Self
Trait Implementations
sourceimpl Clone for PrintOperationBuilder
impl Clone for PrintOperationBuilder
sourcefn clone(&self) -> PrintOperationBuilder
fn clone(&self) -> PrintOperationBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for PrintOperationBuilder
impl Default for PrintOperationBuilder
sourcefn default() -> PrintOperationBuilder
fn default() -> PrintOperationBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for PrintOperationBuilder
impl !Send for PrintOperationBuilder
impl !Sync for PrintOperationBuilder
impl Unpin for PrintOperationBuilder
impl UnwindSafe for PrintOperationBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more