Struct gtk4::builders::PrintDialogBuilder
source · 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