[][src]Struct qt_gui::q_text_block_format::LineHeightTypes

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

This enum describes the various types of line spacing support paragraphs can have.

C++ enum: QTextBlockFormat::LineHeightTypes.

C++ documentation:

This enum describes the various types of line spacing support paragraphs can have.

This enum was introduced or modified in Qt 4.8.

See also lineHeight(), lineHeightType(), and setLineHeight().

Methods

impl LineHeightTypes[src]

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

impl LineHeightTypes[src]

pub const SingleHeight: LineHeightTypes[src]

This is the default line height: single spacing. (C++ enum variant: SingleHeight = 0)

pub const ProportionalHeight: LineHeightTypes[src]

This sets the spacing proportional to the line (in percentage). For example, set to 200 for double spacing. (C++ enum variant: ProportionalHeight = 1)

pub const FixedHeight: LineHeightTypes[src]

This sets the line height to a fixed line height (in pixels). (C++ enum variant: FixedHeight = 2)

pub const MinimumHeight: LineHeightTypes[src]

This sets the minimum line height (in pixels). (C++ enum variant: MinimumHeight = 3)

pub const LineDistanceHeight: LineHeightTypes[src]

This adds the specified height between lines (in pixels). (C++ enum variant: LineDistanceHeight = 4)

Trait Implementations

impl Clone for LineHeightTypes[src]

impl Copy for LineHeightTypes[src]

impl Debug for LineHeightTypes[src]

impl Eq for LineHeightTypes[src]

impl From<LineHeightTypes> for c_int[src]

impl From<i32> for LineHeightTypes[src]

impl PartialEq<LineHeightTypes> for LineHeightTypes[src]

impl StructuralEq for LineHeightTypes[src]

impl StructuralPartialEq for LineHeightTypes[src]

Auto Trait Implementations

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.