[][src]Struct gtk::PaperSize

pub struct PaperSize(_);

Implementations

impl PaperSize[src]

pub fn new(name: Option<&str>) -> PaperSize[src]

pub fn new_custom(
    name: &str,
    display_name: &str,
    width: f64,
    height: f64,
    unit: Unit
) -> PaperSize
[src]

pub fn from_gvariant(variant: &Variant) -> PaperSize[src]

pub fn from_ipp(ipp_name: &str, width: f64, height: f64) -> PaperSize[src]

pub fn from_key_file(
    key_file: &KeyFile,
    group_name: Option<&str>
) -> Result<PaperSize, Error>
[src]

pub fn from_ppd(
    ppd_name: &str,
    ppd_display_name: &str,
    width: f64,
    height: f64
) -> PaperSize
[src]

pub fn get_default_bottom_margin(&self, unit: Unit) -> f64[src]

pub fn get_default_left_margin(&self, unit: Unit) -> f64[src]

pub fn get_default_right_margin(&self, unit: Unit) -> f64[src]

pub fn get_default_top_margin(&self, unit: Unit) -> f64[src]

pub fn get_display_name(&self) -> Option<GString>[src]

pub fn get_height(&self, unit: Unit) -> f64[src]

pub fn get_name(&self) -> Option<GString>[src]

pub fn get_ppd_name(&self) -> Option<GString>[src]

pub fn get_width(&self, unit: Unit) -> f64[src]

pub fn is_custom(&self) -> bool[src]

pub fn is_ipp(&self) -> bool[src]

pub fn set_size(&mut self, width: f64, height: f64, unit: Unit)[src]

pub fn to_gvariant(&mut self) -> Option<Variant>[src]

pub fn to_key_file(&mut self, key_file: &KeyFile, group_name: &str)[src]

pub fn get_default() -> Option<GString>[src]

pub fn get_paper_sizes(include_custom: bool) -> Vec<PaperSize>[src]

Trait Implementations

impl Clone for PaperSize[src]

impl Debug for PaperSize[src]

impl Eq for PaperSize[src]

impl Hash for PaperSize[src]

impl Ord for PaperSize[src]

impl PartialEq<PaperSize> for PaperSize[src]

impl PartialOrd<PaperSize> for PaperSize[src]

impl StaticType for PaperSize[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.