Struct gtk::PageSetup
[−]
pub struct PageSetup(_, _);
Methods
impl PageSetup
[src]
fn new() -> PageSetup
fn new_from_file<T: AsRef<Path>>(file_name: T) -> Result<PageSetup, Error>
fn new_from_key_file<'a, T: Into<Option<&'a str>>>(key_file: &KeyFile,
group_name: T)
-> Result<PageSetup, Error>
group_name: T)
-> Result<PageSetup, Error>
fn copy(&self) -> Option<PageSetup>
fn get_bottom_margin(&self, unit: Unit) -> f64
fn get_left_margin(&self, unit: Unit) -> f64
fn get_orientation(&self) -> PageOrientation
fn get_page_height(&self, unit: Unit) -> f64
fn get_page_width(&self, unit: Unit) -> f64
fn get_paper_height(&self, unit: Unit) -> f64
fn get_paper_size(&self) -> PaperSize
fn get_paper_width(&self, unit: Unit) -> f64
fn get_right_margin(&self, unit: Unit) -> f64
fn get_top_margin(&self, unit: Unit) -> f64
fn load_file<T: AsRef<Path>>(&self, file_name: T) -> Result<(), Error>
fn load_key_file<'a, T: Into<Option<&'a str>>>(&self,
key_file: &KeyFile,
group_name: T)
-> Result<(), Error>
key_file: &KeyFile,
group_name: T)
-> Result<(), Error>
fn set_bottom_margin(&self, margin: f64, unit: Unit)
fn set_left_margin(&self, margin: f64, unit: Unit)
fn set_orientation(&self, orientation: PageOrientation)
fn set_paper_size(&self, size: &PaperSize)
fn set_paper_size_and_default_margins(&self, size: &PaperSize)
fn set_right_margin(&self, margin: f64, unit: Unit)
fn set_top_margin(&self, margin: f64, unit: Unit)
fn to_file<T: AsRef<Path>>(&self, file_name: T) -> Result<(), Error>
fn to_key_file(&self, key_file: &KeyFile, group_name: &str)
Trait Implementations
impl Clone for PageSetup
fn clone(&self) -> PageSetup
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 PageSetup
impl Hash for PageSetup
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl StaticType for PageSetup
fn static_type() -> Type
Returns the type identifier of Self
.
impl<T: IsA<Object>> PartialEq<T> for PageSetup
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 !=
.