[]Struct gtk::PrintSettings

pub struct PrintSettings(_, _);

Methods

impl PrintSettings[src]

pub fn new() -> PrintSettings[src]

pub fn new_from_file<P: AsRef<Path>>(
    file_name: P
) -> Result<PrintSettings, Error>
[src]

pub fn new_from_key_file<'a, P: Into<Option<&'a str>>>(
    key_file: &KeyFile,
    group_name: P
) -> Result<PrintSettings, Error>
[src]

pub fn copy(&self) -> Option<PrintSettings>[src]

pub fn foreach<P: FnMut(&str, &str)>(&self, func: P)[src]

pub fn get(&self, key: &str) -> Option<GString>[src]

pub fn get_bool(&self, key: &str) -> bool[src]

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

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

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

pub fn get_double(&self, key: &str) -> f64[src]

pub fn get_double_with_default(&self, key: &str, def: f64) -> f64[src]

pub fn get_duplex(&self) -> PrintDuplex[src]

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

pub fn get_int(&self, key: &str) -> i32[src]

pub fn get_int_with_default(&self, key: &str, def: i32) -> i32[src]

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

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

pub fn get_n_copies(&self) -> i32[src]

pub fn get_number_up(&self) -> i32[src]

pub fn get_number_up_layout(&self) -> NumberUpLayout[src]

pub fn get_orientation(&self) -> PageOrientation[src]

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

pub fn get_page_ranges(&self) -> Vec<PageRange>[src]

pub fn get_page_set(&self) -> PageSet[src]

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

pub fn get_paper_size(&self) -> PaperSize[src]

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

pub fn get_print_pages(&self) -> PrintPages[src]

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

pub fn get_printer_lpi(&self) -> f64[src]

pub fn get_quality(&self) -> PrintQuality[src]

pub fn get_resolution(&self) -> i32[src]

pub fn get_resolution_x(&self) -> i32[src]

pub fn get_resolution_y(&self) -> i32[src]

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

pub fn get_scale(&self) -> f64[src]

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

pub fn has_key(&self, key: &str) -> bool[src]

pub fn load_file<P: AsRef<Path>>(&self, file_name: P) -> Result<(), Error>[src]

pub fn load_key_file<'a, P: Into<Option<&'a str>>>(
    &self,
    key_file: &KeyFile,
    group_name: P
) -> Result<(), Error>
[src]

pub fn set<'a, P: Into<Option<&'a str>>>(&self, key: &str, value: P)[src]

pub fn set_bool(&self, key: &str, value: bool)[src]

pub fn set_collate(&self, collate: bool)[src]

pub fn set_default_source(&self, default_source: &str)[src]

pub fn set_dither(&self, dither: &str)[src]

pub fn set_double(&self, key: &str, value: f64)[src]

pub fn set_duplex(&self, duplex: PrintDuplex)[src]

pub fn set_finishings(&self, finishings: &str)[src]

pub fn set_int(&self, key: &str, value: i32)[src]

pub fn set_length(&self, key: &str, value: f64, unit: Unit)[src]

pub fn set_media_type(&self, media_type: &str)[src]

pub fn set_n_copies(&self, num_copies: i32)[src]

pub fn set_number_up(&self, number_up: i32)[src]

pub fn set_number_up_layout(&self, number_up_layout: NumberUpLayout)[src]

pub fn set_orientation(&self, orientation: PageOrientation)[src]

pub fn set_output_bin(&self, output_bin: &str)[src]

pub fn set_page_set(&self, page_set: PageSet)[src]

pub fn set_paper_height(&self, height: f64, unit: Unit)[src]

pub fn set_paper_size(&self, paper_size: &PaperSize)[src]

pub fn set_paper_width(&self, width: f64, unit: Unit)[src]

pub fn set_print_pages(&self, pages: PrintPages)[src]

pub fn set_printer(&self, printer: &str)[src]

pub fn set_printer_lpi(&self, lpi: f64)[src]

pub fn set_quality(&self, quality: PrintQuality)[src]

pub fn set_resolution(&self, resolution: i32)[src]

pub fn set_resolution_xy(&self, resolution_x: i32, resolution_y: i32)[src]

pub fn set_reverse(&self, reverse: bool)[src]

pub fn set_scale(&self, scale: f64)[src]

pub fn set_use_color(&self, use_color: bool)[src]

pub fn to_file<P: AsRef<Path>>(&self, file_name: P) -> Result<(), Error>[src]

pub fn to_key_file<'a, P: Into<Option<&'a str>>>(
    &self,
    key_file: &KeyFile,
    group_name: P
)
[src]

pub fn unset(&self, key: &str)[src]

impl PrintSettings[src]

pub fn set_page_ranges(&self, page_ranges: &[PageRange])[src]

Trait Implementations

impl<T: ObjectType> PartialEq<T> for PrintSettings

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Default for PrintSettings[src]

impl Ord for PrintSettings

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Clone for PrintSettings

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

Performs copy-assignment from source. Read more

impl Eq for PrintSettings

impl<T: ObjectType> PartialOrd<T> for PrintSettings

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Display for PrintSettings[src]

impl Hash for PrintSettings

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 PrintSettings

impl StaticType for PrintSettings

Auto Trait Implementations

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

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

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

type Owned = T

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

type Error = !

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

The type returned in the event of a conversion error.

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

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

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

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

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

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

The type returned in the event of a conversion error.

impl<'a, T> ToGlibContainerFromSlice for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<T> Cast for T where
    T: ObjectType
[src]

fn upcast<T>(self) -> T where
    Self: IsA<T>,
    T: ObjectType
[src]

Upcasts an object to a superclass or interface T. Read more

fn upcast_ref<T>(&self) -> &T where
    Self: IsA<T>,
    T: ObjectType
[src]

Upcasts an object to a reference of its superclass or interface T. Read more

fn downcast<T>(self) -> Result<T, Self> where
    Self: CanDowncast<T>,
    T: ObjectType
[src]

Tries to downcast to a subclass or interface implementor T. Read more

fn downcast_ref<T>(&self) -> Option<&T> where
    Self: CanDowncast<T>,
    T: ObjectType
[src]

Tries to downcast to a reference of its subclass or interface implementor T. Read more

fn dynamic_cast<T>(self) -> Result<T, Self> where
    T: ObjectType
[src]

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 more

fn dynamic_cast_ref<T>(&self) -> Option<&T> where
    T: ObjectType
[src]

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 more

unsafe fn unsafe_cast<T>(self) -> T where
    T: ObjectType
[src]

Casts to T unconditionally. Read more

unsafe fn unsafe_cast_ref<T>(&self) -> &T where
    T: ObjectType
[src]

Casts to &T unconditionally. Read more

impl<Super, Sub> CanDowncast for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 
[src]

impl<T> ObjectExt for T where
    T: ObjectType
[src]

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