Struct gtk::PaperSize
[−]
pub struct PaperSize(_);
Methods
impl PaperSize
[src]
pub fn new<'a, P: Into<Option<&'a str>>>(name: P) -> PaperSize
[src]
pub fn new_custom(
name: &str,
display_name: &str,
width: f64,
height: f64,
unit: Unit
) -> PaperSize
[src]
name: &str,
display_name: &str,
width: f64,
height: f64,
unit: Unit
) -> PaperSize
pub fn new_from_key_file(
key_file: &KeyFile,
group_name: &str
) -> Result<PaperSize, Error>
[src]
key_file: &KeyFile,
group_name: &str
) -> Result<PaperSize, Error>
pub fn new_from_ppd(
ppd_name: &str,
ppd_display_name: &str,
width: f64,
height: f64
) -> PaperSize
[src]
ppd_name: &str,
ppd_display_name: &str,
width: f64,
height: f64
) -> PaperSize
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<String>
[src]
pub fn get_height(&self, unit: Unit) -> f64
[src]
pub fn get_name(&self) -> Option<String>
[src]
pub fn get_ppd_name(&self) -> Option<String>
[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<String>
[src]
pub fn get_paper_sizes(include_custom: bool) -> Vec<PaperSize>
[src]
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[src]
Performs copy-assignment from source
. Read more
impl Debug for PaperSize
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl StaticType for PaperSize
fn static_type() -> Type
Returns the type identifier of Self
.
impl PartialEq for PaperSize
[src]
fn eq(&self, other: &Self) -> bool
[src]
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[src]
This method tests for !=
.