[][src]Struct qt_gui::q_text_char_format::VerticalAlignment

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

This enum describes the ways that adjacent characters can be vertically aligned.

C++ enum: QTextCharFormat::VerticalAlignment.

C++ documentation:

This enum describes the ways that adjacent characters can be vertically aligned.

Methods

impl VerticalAlignment[src]

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

impl VerticalAlignment[src]

pub const AlignNormal: VerticalAlignment[src]

Adjacent characters are positioned in the standard way for text in the writing system in use. (C++ enum variant: AlignNormal = 0)

pub const AlignSuperScript: VerticalAlignment[src]

Characters are placed above the base line for normal text. (C++ enum variant: AlignSuperScript = 1)

pub const AlignSubScript: VerticalAlignment[src]

Characters are placed below the base line for normal text. (C++ enum variant: AlignSubScript = 2)

pub const AlignMiddle: VerticalAlignment[src]

The center of the object is vertically aligned with the base line. Currently, this is only implemented for inline objects. (C++ enum variant: AlignMiddle = 3)

pub const AlignTop: VerticalAlignment[src]

The top edge of the object is vertically aligned with the base line. (C++ enum variant: AlignTop = 4)

pub const AlignBottom: VerticalAlignment[src]

The bottom edge of the object is vertically aligned with the base line. (C++ enum variant: AlignBottom = 5)

pub const AlignBaseline: VerticalAlignment[src]

The base lines of the characters are aligned. (C++ enum variant: AlignBaseline = 6)

Trait Implementations

impl Clone for VerticalAlignment[src]

impl Copy for VerticalAlignment[src]

impl Debug for VerticalAlignment[src]

impl Eq for VerticalAlignment[src]

impl From<VerticalAlignment> for c_int[src]

impl From<i32> for VerticalAlignment[src]

impl PartialEq<VerticalAlignment> for VerticalAlignment[src]

impl StructuralEq for VerticalAlignment[src]

impl StructuralPartialEq for VerticalAlignment[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.