pub struct PaperSize(/* private fields */);
Implementations§
Source§impl PaperSize
impl PaperSize
pub fn new(name: Option<&str>) -> PaperSize
pub fn new_custom( name: &str, display_name: &str, width: f64, height: f64, unit: Unit, ) -> PaperSize
pub fn new_from_gvariant(variant: &Variant) -> PaperSize
pub fn new_from_ipp(ipp_name: &str, width: f64, height: f64) -> PaperSize
pub fn new_from_key_file( key_file: &KeyFile, group_name: Option<&str>, ) -> Result<PaperSize, Error>
pub fn new_from_ppd( ppd_name: &str, ppd_display_name: &str, width: f64, height: f64, ) -> PaperSize
pub fn get_default_bottom_margin(&self, unit: Unit) -> f64
pub fn get_default_left_margin(&self, unit: Unit) -> f64
pub fn get_default_right_margin(&self, unit: Unit) -> f64
pub fn get_default_top_margin(&self, unit: Unit) -> f64
pub fn get_display_name(&self) -> Option<GString>
pub fn get_height(&self, unit: Unit) -> f64
pub fn get_name(&self) -> Option<GString>
pub fn get_ppd_name(&self) -> Option<GString>
pub fn get_width(&self, unit: Unit) -> f64
pub fn is_custom(&self) -> bool
pub fn is_ipp(&self) -> bool
pub fn set_size(&mut self, width: f64, height: f64, unit: Unit)
pub fn to_gvariant(&mut self) -> Option<Variant>
pub fn to_key_file(&mut self, key_file: &KeyFile, group_name: &str)
pub fn get_default() -> Option<GString>
pub fn get_paper_sizes(include_custom: bool) -> Vec<PaperSize>
Trait Implementations§
Source§impl Ord for PaperSize
impl Ord for PaperSize
Source§impl PartialOrd for PaperSize
impl PartialOrd for PaperSize
Source§impl StaticType for PaperSize
impl StaticType for PaperSize
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for PaperSize
Auto Trait Implementations§
impl Freeze for PaperSize
impl RefUnwindSafe for PaperSize
impl !Send for PaperSize
impl !Sync for PaperSize
impl Unpin for PaperSize
impl UnwindSafe for PaperSize
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