[][src]Enum pango::GravityHint

#[non_exhaustive]pub enum GravityHint {
    // some variants omitted

The GravityHint defines how horizontal scripts should behave in a vertical context. That is, English excerpt in a vertical paragraph for example.

See Gravity.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.

scripts will take their natural gravity based on the base gravity and the script. This is the default.


always use the base gravity set, regardless of the script.


for scripts not in their natural direction (eg. Latin in East gravity), choose per-script gravity such that every script respects the line progression. This means, Latin and Arabic will take opposite gravities and both flow top-to-bottom for example.

Trait Implementations

impl Clone for GravityHint[src]

impl Copy for GravityHint[src]

impl Debug for GravityHint[src]

impl Display for GravityHint[src]

impl Eq for GravityHint[src]

impl<'a> FromValue<'a> for GravityHint[src]

impl<'a> FromValueOptional<'a> for GravityHint[src]

impl Hash for GravityHint[src]

impl Ord for GravityHint[src]

impl PartialEq<GravityHint> for GravityHint[src]

impl PartialOrd<GravityHint> for GravityHint[src]

impl SetValue for GravityHint[src]

impl StaticType for GravityHint[src]

impl StructuralEq for GravityHint[src]

impl StructuralPartialEq for GravityHint[src]

Auto Trait Implementations

impl RefUnwindSafe for GravityHint

impl Send for GravityHint

impl Sync for GravityHint

impl Unpin for GravityHint

impl UnwindSafe for GravityHint

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized

impl<T> ToString for T where
    T: Display + ?Sized

impl<T> ToValue for T where
    T: SetValue + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.