pub struct PrintDialogBuilder { /* private fields */ }
Available on crate feature
v4_14
only.Expand description
A builder-pattern type to construct PrintDialog
objects.
Implementations§
Source§impl PrintDialogBuilder
impl PrintDialogBuilder
Sourcepub fn accept_label(self, accept_label: impl Into<GString>) -> Self
pub fn accept_label(self, accept_label: impl Into<GString>) -> Self
A label that may be shown on the accept button of a print dialog
that is presented by PrintDialog::setup()
.
Sourcepub fn page_setup(self, page_setup: &PageSetup) -> Self
pub fn page_setup(self, page_setup: &PageSetup) -> Self
The page setup to use.
Sourcepub fn print_settings(self, print_settings: &PrintSettings) -> Self
pub fn print_settings(self, print_settings: &PrintSettings) -> Self
The print settings to use.
Sourcepub fn title(self, title: impl Into<GString>) -> Self
pub fn title(self, title: impl Into<GString>) -> Self
A title that may be shown on the print dialog that is
presented by PrintDialog::setup()
.
Sourcepub fn build(self) -> PrintDialog
pub fn build(self) -> PrintDialog
Build the PrintDialog
.
Auto Trait Implementations§
impl Freeze for PrintDialogBuilder
impl RefUnwindSafe for PrintDialogBuilder
impl !Send for PrintDialogBuilder
impl !Sync for PrintDialogBuilder
impl Unpin for PrintDialogBuilder
impl UnwindSafe for PrintDialogBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more