pub struct PrintSettings(/* private fields */);
Implementations§
Source§impl PrintSettings
impl PrintSettings
pub fn new() -> PrintSettings
pub fn new_from_file<P: AsRef<Path>>( file_name: P, ) -> Result<PrintSettings, Error>
pub fn new_from_gvariant(variant: &Variant) -> PrintSettings
pub fn new_from_key_file( key_file: &KeyFile, group_name: Option<&str>, ) -> Result<PrintSettings, Error>
pub fn copy(&self) -> Option<PrintSettings>
pub fn foreach<P: FnMut(&str, &str)>(&self, func: P)
pub fn get(&self, key: &str) -> Option<GString>
pub fn get_bool(&self, key: &str) -> bool
pub fn get_collate(&self) -> bool
pub fn get_default_source(&self) -> Option<GString>
pub fn get_dither(&self) -> Option<GString>
pub fn get_double(&self, key: &str) -> f64
pub fn get_double_with_default(&self, key: &str, def: f64) -> f64
pub fn get_duplex(&self) -> PrintDuplex
pub fn get_finishings(&self) -> Option<GString>
pub fn get_int(&self, key: &str) -> i32
pub fn get_int_with_default(&self, key: &str, def: i32) -> i32
pub fn get_length(&self, key: &str, unit: Unit) -> f64
pub fn get_media_type(&self) -> Option<GString>
pub fn get_n_copies(&self) -> i32
pub fn get_number_up(&self) -> i32
pub fn get_number_up_layout(&self) -> NumberUpLayout
pub fn get_orientation(&self) -> PageOrientation
pub fn get_output_bin(&self) -> Option<GString>
pub fn get_page_ranges(&self) -> Vec<PageRange>
pub fn get_page_set(&self) -> PageSet
pub fn get_paper_height(&self, unit: Unit) -> f64
pub fn get_paper_size(&self) -> PaperSize
pub fn get_paper_width(&self, unit: Unit) -> f64
pub fn get_print_pages(&self) -> PrintPages
pub fn get_printer(&self) -> Option<GString>
pub fn get_printer_lpi(&self) -> f64
pub fn get_quality(&self) -> PrintQuality
pub fn get_resolution(&self) -> i32
pub fn get_resolution_x(&self) -> i32
pub fn get_resolution_y(&self) -> i32
pub fn get_reverse(&self) -> bool
pub fn get_scale(&self) -> f64
pub fn get_use_color(&self) -> bool
pub fn has_key(&self, key: &str) -> bool
pub fn load_file<P: AsRef<Path>>(&self, file_name: P) -> Result<(), Error>
pub fn load_key_file( &self, key_file: &KeyFile, group_name: Option<&str>, ) -> Result<(), Error>
pub fn set(&self, key: &str, value: Option<&str>)
pub fn set_bool(&self, key: &str, value: bool)
pub fn set_collate(&self, collate: bool)
pub fn set_default_source(&self, default_source: &str)
pub fn set_dither(&self, dither: &str)
pub fn set_double(&self, key: &str, value: f64)
pub fn set_duplex(&self, duplex: PrintDuplex)
pub fn set_finishings(&self, finishings: &str)
pub fn set_int(&self, key: &str, value: i32)
pub fn set_length(&self, key: &str, value: f64, unit: Unit)
pub fn set_media_type(&self, media_type: &str)
pub fn set_n_copies(&self, num_copies: i32)
pub fn set_number_up(&self, number_up: i32)
pub fn set_number_up_layout(&self, number_up_layout: NumberUpLayout)
pub fn set_orientation(&self, orientation: PageOrientation)
pub fn set_output_bin(&self, output_bin: &str)
pub fn set_page_set(&self, page_set: PageSet)
pub fn set_paper_height(&self, height: f64, unit: Unit)
pub fn set_paper_size(&self, paper_size: &PaperSize)
pub fn set_paper_width(&self, width: f64, unit: Unit)
pub fn set_print_pages(&self, pages: PrintPages)
pub fn set_printer(&self, printer: &str)
pub fn set_printer_lpi(&self, lpi: f64)
pub fn set_quality(&self, quality: PrintQuality)
pub fn set_resolution(&self, resolution: i32)
pub fn set_resolution_xy(&self, resolution_x: i32, resolution_y: i32)
pub fn set_reverse(&self, reverse: bool)
pub fn set_scale(&self, scale: f64)
pub fn set_use_color(&self, use_color: bool)
pub fn to_file<P: AsRef<Path>>(&self, file_name: P) -> Result<(), Error>
pub fn to_gvariant(&self) -> Option<Variant>
pub fn to_key_file(&self, key_file: &KeyFile, group_name: Option<&str>)
pub fn unset(&self, key: &str)
Source§impl PrintSettings
impl PrintSettings
pub fn set_page_ranges(&self, page_ranges: &[PageRange])
Trait Implementations§
Source§impl Clone for PrintSettings
impl Clone for PrintSettings
Source§fn clone(&self) -> PrintSettings
fn clone(&self) -> PrintSettings
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PrintSettings
impl Debug for PrintSettings
Source§impl Default for PrintSettings
impl Default for PrintSettings
Source§impl Display for PrintSettings
impl Display for PrintSettings
Source§impl Hash for PrintSettings
impl Hash for PrintSettings
Source§impl Ord for PrintSettings
impl Ord for PrintSettings
Source§fn cmp(&self, other: &PrintSettings) -> Ordering
fn cmp(&self, other: &PrintSettings) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: ObjectType> PartialEq<T> for PrintSettings
impl<T: ObjectType> PartialEq<T> for PrintSettings
Source§impl<T: ObjectType> PartialOrd<T> for PrintSettings
impl<T: ObjectType> PartialOrd<T> for PrintSettings
Source§impl StaticType for PrintSettings
impl StaticType for PrintSettings
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for PrintSettings
Auto Trait Implementations§
impl Freeze for PrintSettings
impl RefUnwindSafe for PrintSettings
impl !Send for PrintSettings
impl !Sync for PrintSettings
impl Unpin for PrintSettings
impl UnwindSafe for PrintSettings
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
Source§impl<T> Cast for Twhere
T: ObjectType,
impl<T> Cast for Twhere
T: ObjectType,
Source§fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
Upcasts an object to a superclass or interface
T
. Read moreSource§fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
Upcasts an object to a reference of its superclass or interface
T
. Read moreSource§fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: CanDowncast<T>,
fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: CanDowncast<T>,
Tries to downcast to a subclass or interface implementor
T
. Read moreSource§fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: CanDowncast<T>,
fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: CanDowncast<T>,
Tries to downcast to a reference of its subclass or interface implementor
T
. Read moreSource§fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
Tries to cast to an object of type
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read moreSource§fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Tries to cast to reference to an object of type
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read moreSource§unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
Casts to
T
unconditionally. Read moreSource§unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
Casts to
&T
unconditionally. Read moreSource§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> ObjectExt for Twhere
T: ObjectType,
impl<T> ObjectExt for Twhere
T: ObjectType,
Source§fn is<U>(&self) -> boolwhere
U: StaticType,
fn is<U>(&self) -> boolwhere
U: StaticType,
Returns
true
if the object is an instance of (can be cast to) T
.