Trait gtk::prelude::PrintSettingsExt [] [src]

pub trait PrintSettingsExt {
    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>; 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_gvariant(&self) -> Option<Variant>; fn to_key_file(&self, key_file: &KeyFile, group_name: &str); fn unset(&self, key: &str); }

Required Methods

Implementors