Struct gtk4::PrintSetup
source · 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.
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<'a>(
ptr: *const *const GtkPrintSetup
) -> &'a Self
pub unsafe fn from_glib_ptr_borrow<'a>( ptr: *const *const GtkPrintSetup ) -> &'a Self
Borrows the underlying C value.
source§impl PrintSetup
impl PrintSetup
sourcepub fn page_setup(&self) -> Option<PageSetup>
pub fn page_setup(&self) -> Option<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) -> Option<PrintSettings>
pub fn print_settings(&self) -> Option<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
§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§fn eq(&self, other: &PrintSetup) -> bool
fn eq(&self, other: &PrintSetup) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PrintSetup
impl PartialOrd for PrintSetup
source§fn partial_cmp(&self, other: &PrintSetup) -> Option<Ordering>
fn partial_cmp(&self, other: &PrintSetup) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl StaticType for PrintSetup
impl StaticType for PrintSetup
source§fn static_type() -> Type
fn static_type() -> Type
Self
.