Struct gtk::PrintSettings
[−]
pub struct PrintSettings(_, _);
Methods
impl PrintSettings
[src]
fn new() -> PrintSettings
fn new_from_file<P: AsRef<Path>>(file_name: P) -> Result<PrintSettings, Error>
fn new_from_key_file<'a, P: Into<Option<&'a str>>>(
key_file: &KeyFile,
group_name: P
) -> Result<PrintSettings, Error>
key_file: &KeyFile,
group_name: P
) -> Result<PrintSettings, Error>
fn copy(&self) -> Option<PrintSettings>
fn get(&self, key: &str) -> Option<String>
fn get_bool(&self, key: &str) -> bool
fn get_collate(&self) -> bool
fn get_default_source(&self) -> Option<String>
fn get_dither(&self) -> Option<String>
fn get_double(&self, key: &str) -> f64
fn get_double_with_default(&self, key: &str, def: f64) -> f64
fn get_duplex(&self) -> PrintDuplex
fn get_finishings(&self) -> Option<String>
fn get_int(&self, key: &str) -> i32
fn get_int_with_default(&self, key: &str, def: i32) -> i32
fn get_length(&self, key: &str, unit: Unit) -> f64
fn get_media_type(&self) -> Option<String>
fn get_n_copies(&self) -> i32
fn get_number_up(&self) -> i32
fn get_number_up_layout(&self) -> NumberUpLayout
fn get_orientation(&self) -> PageOrientation
fn get_output_bin(&self) -> Option<String>
fn get_page_set(&self) -> PageSet
fn get_paper_height(&self, unit: Unit) -> f64
fn get_paper_size(&self) -> PaperSize
fn get_paper_width(&self, unit: Unit) -> f64
fn get_print_pages(&self) -> PrintPages
fn get_printer(&self) -> Option<String>
fn get_printer_lpi(&self) -> f64
fn get_quality(&self) -> PrintQuality
fn get_resolution(&self) -> i32
fn get_resolution_x(&self) -> i32
fn get_resolution_y(&self) -> i32
fn get_reverse(&self) -> bool
fn get_scale(&self) -> f64
fn get_use_color(&self) -> bool
fn has_key(&self, key: &str) -> bool
fn load_file<P: AsRef<Path>>(&self, file_name: P) -> Result<(), Error>
fn load_key_file<'a, P: Into<Option<&'a str>>>(
&self,
key_file: &KeyFile,
group_name: P
) -> Result<(), Error>
&self,
key_file: &KeyFile,
group_name: P
) -> Result<(), Error>
fn set<'a, P: Into<Option<&'a str>>>(&self, key: &str, value: P)
fn set_bool(&self, key: &str, value: bool)
fn set_collate(&self, collate: bool)
fn set_default_source(&self, default_source: &str)
fn set_dither(&self, dither: &str)
fn set_double(&self, key: &str, value: f64)
fn set_duplex(&self, duplex: PrintDuplex)
fn set_finishings(&self, finishings: &str)
fn set_int(&self, key: &str, value: i32)
fn set_length(&self, key: &str, value: f64, unit: Unit)
fn set_media_type(&self, media_type: &str)
fn set_n_copies(&self, num_copies: i32)
fn set_number_up(&self, number_up: i32)
fn set_number_up_layout(&self, number_up_layout: NumberUpLayout)
fn set_orientation(&self, orientation: PageOrientation)
fn set_output_bin(&self, output_bin: &str)
fn set_page_set(&self, page_set: PageSet)
fn set_paper_height(&self, height: f64, unit: Unit)
fn set_paper_size(&self, paper_size: &PaperSize)
fn set_paper_width(&self, width: f64, unit: Unit)
fn set_print_pages(&self, pages: PrintPages)
fn set_printer(&self, printer: &str)
fn set_printer_lpi(&self, lpi: f64)
fn set_quality(&self, quality: PrintQuality)
fn set_resolution(&self, resolution: i32)
fn set_resolution_xy(&self, resolution_x: i32, resolution_y: i32)
fn set_reverse(&self, reverse: bool)
fn set_scale(&self, scale: f64)
fn set_use_color(&self, use_color: bool)
fn to_file<P: AsRef<Path>>(&self, file_name: P) -> Result<(), Error>
fn to_key_file(&self, key_file: &KeyFile, group_name: &str)
fn unset(&self, key: &str)
Trait Implementations
impl Clone for PrintSettings
fn clone(&self) -> PrintSettings
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for PrintSettings
impl Hash for PrintSettings
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl StaticType for PrintSettings
fn static_type() -> Type
Returns the type identifier of Self
.
impl<T: IsA<Object>> PartialEq<T> for PrintSettings
fn eq(&self, other: &T) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.