[][src]Struct qt_gui::q_page_layout::Unit

#[repr(transparent)]
pub struct Unit(_);

This enum type is used to specify the measurement unit for page layout and margins.

C++ enum: QPageLayout::Unit.

C++ documentation:

This enum type is used to specify the measurement unit for page layout and margins.

Methods

impl Unit[src]

pub fn to_int(&self) -> c_int[src]

impl Unit[src]

pub const Millimeter: Unit[src]

  (C++ enum variant: Millimeter = 0)

pub const Point: Unit[src]

1/72th of an inch (C++ enum variant: Point = 1)

pub const Inch: Unit[src]

  (C++ enum variant: Inch = 2)

pub const Pica: Unit[src]

1/72th of a foot, 1/6th of an inch, 12 Points (C++ enum variant: Pica = 3)

pub const Didot: Unit[src]

1/72th of a French inch, 0.375 mm (C++ enum variant: Didot = 4)

pub const Cicero: Unit[src]

1/6th of a French inch, 12 Didot, 4.5mm (C++ enum variant: Cicero = 5)

Trait Implementations

impl Clone for Unit[src]

impl Copy for Unit[src]

impl Debug for Unit[src]

impl Eq for Unit[src]

impl From<Unit> for c_int[src]

impl From<i32> for Unit[src]

impl PartialEq<Unit> for Unit[src]

impl StructuralEq for Unit[src]

impl StructuralPartialEq for Unit[src]

Auto Trait Implementations

impl RefUnwindSafe for Unit

impl Send for Unit

impl Sync for Unit

impl Unpin for Unit

impl UnwindSafe for Unit

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.