[][src]Struct qt_gui::q_gradient::Spread

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

Specifies how the area outside the gradient area should be filled.

C++ enum: QGradient::Spread.

C++ documentation:

Specifies how the area outside the gradient area should be filled.

See also spread() and setSpread().

Methods

impl Spread[src]

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

impl Spread[src]

pub const PadSpread: Spread[src]

The area is filled with the closest stop color. This is the default. (C++ enum variant: PadSpread = 0)

pub const ReflectSpread: Spread[src]

The gradient is reflected outside the gradient area. (C++ enum variant: ReflectSpread = 1)

pub const RepeatSpread: Spread[src]

The gradient is repeated outside the gradient area. (C++ enum variant: RepeatSpread = 2)

Trait Implementations

impl Clone for Spread[src]

impl Copy for Spread[src]

impl Debug for Spread[src]

impl Eq for Spread[src]

impl From<Spread> for c_int[src]

impl From<i32> for Spread[src]

impl PartialEq<Spread> for Spread[src]

impl StructuralEq for Spread[src]

impl StructuralPartialEq for Spread[src]

Auto Trait Implementations

impl RefUnwindSafe for Spread

impl Send for Spread

impl Sync for Spread

impl Unpin for Spread

impl UnwindSafe for Spread

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.