pub struct PrintSetup { /* private fields */ }
v4_14
only.Expand description
A PrintSetup
is an auxiliary object for printing that allows decoupling
the setup from the printing.
A print setup is obtained by calling PrintDialog::setup()
,
and can later be passed to print functions such as PrintDialog::print()
.
Print setups can be reused for multiple print calls.
Applications may wish to store the page_setup and print_settings from the print setup and copy them to the PrintDialog if they want to keep using them.
GLib type: Shared boxed type with reference counted clone semantics.
Implementations§
source§impl PrintSetup
impl PrintSetup
sourcepub fn as_ptr(&self) -> *mut GtkPrintSetup
pub fn as_ptr(&self) -> *mut GtkPrintSetup
Return the inner pointer to the underlying C value.
sourcepub unsafe fn from_glib_ptr_borrow(ptr: &*mut GtkPrintSetup) -> &Self
pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GtkPrintSetup) -> &Self
Borrows the underlying C value.
source§impl PrintSetup
impl PrintSetup
sourcepub fn page_setup(&self) -> PageSetup
pub fn page_setup(&self) -> PageSetup
Returns the page setup of @self.
It may be different from the PrintDialog
’s page setup
if the user changed it during the setup process.
§Returns
the page setup, or NULL
sourcepub fn print_settings(&self) -> PrintSettings
pub fn print_settings(&self) -> PrintSettings
Returns the print settings of @self.
They may be different from the PrintDialog
’s settings
if the user changed them during the setup process.
§Returns
the print settings, or NULL
Trait Implementations§
source§impl Clone for PrintSetup
impl Clone for PrintSetup
source§impl Debug for PrintSetup
impl Debug for PrintSetup
source§impl From<PrintSetup> for Value
impl From<PrintSetup> for Value
source§fn from(s: PrintSetup) -> Self
fn from(s: PrintSetup) -> Self
source§impl HasParamSpec for PrintSetup
impl HasParamSpec for PrintSetup
type ParamSpec = ParamSpecBoxed
source§type SetValue = PrintSetup
type SetValue = PrintSetup
type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, PrintSetup>
fn param_spec_builder() -> Self::BuilderFn
source§impl Hash for PrintSetup
impl Hash for PrintSetup
source§impl Ord for PrintSetup
impl Ord for PrintSetup
source§fn cmp(&self, other: &PrintSetup) -> Ordering
fn cmp(&self, other: &PrintSetup) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for PrintSetup
impl PartialEq for PrintSetup
source§impl PartialOrd for PrintSetup
impl PartialOrd for PrintSetup
source§impl StaticType for PrintSetup
impl StaticType for PrintSetup
source§fn static_type() -> Type
fn static_type() -> Type
Self
.impl Eq for PrintSetup
impl StructuralPartialEq for PrintSetup
Auto Trait Implementations§
impl Freeze for PrintSetup
impl RefUnwindSafe for PrintSetup
impl !Send for PrintSetup
impl !Sync for PrintSetup
impl Unpin for PrintSetup
impl UnwindSafe for PrintSetup
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)