[−][src]Struct qt_gui::q_gradient::CoordinateMode
This enum specifies how gradient coordinates map to the paint device on which the gradient is used.
C++ enum: QGradient::CoordinateMode
.
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]
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]
fn clone(&self) -> CoordinateMode
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for CoordinateMode
[src]
impl Debug for CoordinateMode
[src]
impl Eq for CoordinateMode
[src]
impl From<CoordinateMode> for c_int
[src]
fn from(value: CoordinateMode) -> Self
[src]
impl From<i32> for CoordinateMode
[src]
impl PartialEq<CoordinateMode> for CoordinateMode
[src]
fn eq(&self, other: &CoordinateMode) -> bool
[src]
fn ne(&self, other: &CoordinateMode) -> bool
[src]
impl StructuralEq for CoordinateMode
[src]
impl StructuralPartialEq for CoordinateMode
[src]
Auto Trait Implementations
impl RefUnwindSafe for CoordinateMode
impl Send for CoordinateMode
impl Sync for CoordinateMode
impl Unpin for CoordinateMode
impl UnwindSafe for CoordinateMode
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,