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
.