[]Struct gtk::PaperSize

pub struct PaperSize(_);

Methods

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 new_from_key_file(
    key_file: &KeyFile,
    group_name: Option<&str>
) -> Result<PaperSize, Error>
[src]

pub fn new_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 set_size(&mut self, width: f64, height: f64, unit: Unit)[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 PartialOrd<PaperSize> for PaperSize[src]

impl PartialEq<PaperSize> for PaperSize[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl Ord for PaperSize[src]

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl Eq for PaperSize[src]

impl Clone for PaperSize

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Hash for PaperSize[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for PaperSize[src]

impl StaticType for PaperSize

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.

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

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

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

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

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