Struct gtk::PaperSize
[−]
pub struct PaperSize(_);
Methods
impl PaperSize
[src]
fn new<'a, P: Into<Option<&'a str>>>(name: P) -> PaperSize
fn new_custom(
name: &str,
display_name: &str,
width: f64,
height: f64,
unit: Unit
) -> PaperSize
name: &str,
display_name: &str,
width: f64,
height: f64,
unit: Unit
) -> PaperSize
fn new_from_gvariant(variant: &Variant) -> PaperSize
fn new_from_ipp(ipp_name: &str, width: f64, height: f64) -> PaperSize
fn new_from_key_file(
key_file: &KeyFile,
group_name: &str
) -> Result<PaperSize, Error>
key_file: &KeyFile,
group_name: &str
) -> Result<PaperSize, Error>
fn new_from_ppd(
ppd_name: &str,
ppd_display_name: &str,
width: f64,
height: f64
) -> PaperSize
ppd_name: &str,
ppd_display_name: &str,
width: f64,
height: f64
) -> PaperSize
fn get_default_bottom_margin(&self, unit: Unit) -> f64
fn get_default_left_margin(&self, unit: Unit) -> f64
fn get_default_right_margin(&self, unit: Unit) -> f64
fn get_default_top_margin(&self, unit: Unit) -> f64
fn get_display_name(&self) -> Option<String>
fn get_height(&self, unit: Unit) -> f64
fn get_name(&self) -> Option<String>
fn get_ppd_name(&self) -> Option<String>
fn get_width(&self, unit: Unit) -> f64
fn is_custom(&self) -> bool
fn is_ipp(&self) -> bool
fn set_size(&mut self, width: f64, height: f64, unit: Unit)
fn to_gvariant(&mut self) -> Option<Variant>
fn to_key_file(&mut self, key_file: &KeyFile, group_name: &str)
fn get_default() -> Option<String>
fn get_paper_sizes(include_custom: bool) -> Vec<PaperSize>
Trait Implementations
impl Clone for PaperSize
fn clone(&self) -> PaperSize
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 PaperSize
impl PartialEq for PaperSize
[src]
fn eq(&self, other: &Self) -> 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 !=
.