[−]Struct gtk::PaperSize
Methods
impl PaperSize[src]
pub fn new(name: Option<&str>) -> 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_gvariant(variant: &Variant) -> PaperSize[src]
pub fn new_from_ipp(ipp_name: &str, width: f64, height: f64) -> PaperSize[src]
pub fn new_from_key_file(
key_file: &KeyFile,
group_name: Option<&str>
) -> Result<PaperSize, Error>[src]
key_file: &KeyFile,
group_name: Option<&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<GString>[src]
pub fn get_height(&self, unit: Unit) -> f64[src]
pub fn get_name(&self) -> Option<GString>[src]
pub fn get_ppd_name(&self) -> Option<GString>[src]
pub fn get_width(&self, unit: Unit) -> f64[src]
pub fn is_custom(&self) -> bool[src]
pub fn is_ipp(&self) -> bool[src]
pub fn set_size(&mut self, width: f64, height: f64, unit: Unit)[src]
pub fn to_gvariant(&mut self) -> Option<Variant>[src]
pub fn to_key_file(&mut self, key_file: &KeyFile, group_name: &str)[src]
pub fn get_default() -> Option<GString>[src]
pub fn get_paper_sizes(include_custom: bool) -> Vec<PaperSize>[src]
Trait Implementations
impl Clone for PaperSize
fn clone(&self) -> PaperSize
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for PaperSize[src]
impl Eq for PaperSize[src]
impl Hash for PaperSize[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl Ord for PaperSize[src]
fn cmp(&self, other: &PaperSize) -> Ordering[src]
fn max(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> Self1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self[src]
impl PartialEq<PaperSize> for PaperSize[src]
impl PartialOrd<PaperSize> for PaperSize[src]
fn partial_cmp(&self, other: &PaperSize) -> Option<Ordering>[src]
fn lt(&self, other: &PaperSize) -> bool[src]
fn le(&self, other: &PaperSize) -> bool[src]
fn gt(&self, other: &PaperSize) -> bool[src]
fn ge(&self, other: &PaperSize) -> bool[src]
impl StaticType for PaperSize
fn static_type() -> Type
Auto Trait Implementations
impl RefUnwindSafe for PaperSize
impl !Send for PaperSize
impl !Sync for PaperSize
impl Unpin for PaperSize
impl UnwindSafe for PaperSize
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> ToSendValue for T where
T: ToValue + SetValue + Send + ?Sized, [src]
T: ToValue + SetValue + Send + ?Sized,
fn to_send_value(&self) -> SendValue[src]
impl<T> ToValue for T where
T: SetValue + ?Sized, [src]
T: SetValue + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,