pub struct PageSetup(_, _);Implementations
sourceimpl PageSetup
impl PageSetup
pub fn new() -> PageSetup
pub fn new_from_file<P: AsRef<Path>>(file_name: P) -> Result<PageSetup, Error>
pub fn new_from_gvariant(variant: &Variant) -> PageSetup
pub fn new_from_key_file(
key_file: &KeyFile,
group_name: Option<&str>
) -> Result<PageSetup, Error>
pub fn copy(&self) -> Option<PageSetup>
pub fn get_bottom_margin(&self, unit: Unit) -> f64
pub fn get_left_margin(&self, unit: Unit) -> f64
pub fn get_orientation(&self) -> PageOrientation
pub fn get_page_height(&self, unit: Unit) -> f64
pub fn get_page_width(&self, unit: Unit) -> f64
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_right_margin(&self, unit: Unit) -> f64
pub fn get_top_margin(&self, unit: Unit) -> f64
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_bottom_margin(&self, margin: f64, unit: Unit)
pub fn set_left_margin(&self, margin: f64, unit: Unit)
pub fn set_orientation(&self, orientation: PageOrientation)
pub fn set_paper_size(&self, size: &PaperSize)
pub fn set_paper_size_and_default_margins(&self, size: &PaperSize)
pub fn set_right_margin(&self, margin: f64, unit: Unit)
pub fn set_top_margin(&self, margin: f64, unit: Unit)
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>)
Trait Implementations
sourceimpl Ord for PageSetup
impl Ord for PageSetup
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<T: ObjectType> PartialOrd<T> for PageSetup
impl<T: ObjectType> PartialOrd<T> for PageSetup
sourcefn partial_cmp(&self, other: &T) -> Option<Ordering>
fn partial_cmp(&self, other: &T) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresourceimpl StaticType for PageSetup
impl StaticType for PageSetup
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.impl Eq for PageSetup
Auto Trait Implementations
impl RefUnwindSafe for PageSetup
impl !Send for PageSetup
impl !Sync for PageSetup
impl Unpin for PageSetup
impl UnwindSafe for PageSetup
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Cast for Twhere
T: ObjectType,
impl<T> Cast for Twhere
T: ObjectType,
sourcefn 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 moresourcefn 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 moresourcefn 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 moresourcefn 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 moresourcefn 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 moresourcefn 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 moresourceunsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
Casts to
T unconditionally. Read moresourceunsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
Casts to
&T unconditionally. Read moresourceimpl<T> ObjectExt for Twhere
T: ObjectType,
impl<T> ObjectExt for Twhere
T: ObjectType,
sourcefn 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.