[][src]Struct qt_gui::q_gradient::CoordinateMode

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

This enum specifies how gradient coordinates map to the paint device on which the gradient is used.

C++ enum: QGradient::CoordinateMode.

C++ documentation:

This enum specifies how gradient coordinates map to the paint device on which the gradient is used.

This enum was introduced or modified in Qt 4.4.

Methods

impl CoordinateMode[src]

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

impl CoordinateMode[src]

pub const LogicalMode: CoordinateMode[src]

This is the default mode. The gradient coordinates are specified logical space just like the object coordinates. (C++ enum variant: LogicalMode = 0)

pub const StretchToDeviceMode: CoordinateMode[src]

In this mode the gradient coordinates are relative to the bounding rectangle of the paint device, with (0,0) in the top left corner, and (1,1) in the bottom right corner of the paint device. (C++ enum variant: StretchToDeviceMode = 1)

pub const ObjectBoundingMode: CoordinateMode[src]

In this mode the gradient coordinates are relative to the bounding rectangle of the object being drawn, with (0,0) in the top left corner, and (1,1) in the bottom right corner of the object's bounding rectangle. (C++ enum variant: ObjectBoundingMode = 2)

pub const ObjectMode: CoordinateMode[src]

In this mode the gradient coordinates are relative to the bounding rectangle of the object being drawn, with (0,0) in the top left corner, and (1,1) in the bottom right corner of the object's bounding rectangle. This value was added in Qt 5.12. (C++ enum variant: ObjectMode = 3)

Trait Implementations

impl Clone for CoordinateMode[src]

impl Copy for CoordinateMode[src]

impl Debug for CoordinateMode[src]

impl Eq for CoordinateMode[src]

impl From<CoordinateMode> for c_int[src]

impl From<i32> for CoordinateMode[src]

impl PartialEq<CoordinateMode> for CoordinateMode[src]

impl StructuralEq for CoordinateMode[src]

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