pub struct CoordinateMode(/* private fields */);
Expand description
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.
Implementations§
Source§impl CoordinateMode
impl CoordinateMode
Sourcepub const LogicalMode: CoordinateMode
pub const LogicalMode: CoordinateMode
This is the default mode. The gradient coordinates are specified logical space just like the object coordinates. (C++ enum variant: LogicalMode = 0
)
Sourcepub const StretchToDeviceMode: CoordinateMode
pub const StretchToDeviceMode: CoordinateMode
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
)
Sourcepub const ObjectBoundingMode: CoordinateMode
pub const ObjectBoundingMode: CoordinateMode
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
)
Sourcepub const ObjectMode: CoordinateMode
pub const ObjectMode: CoordinateMode
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§
Source§impl Clone for CoordinateMode
impl Clone for CoordinateMode
Source§fn clone(&self) -> CoordinateMode
fn clone(&self) -> CoordinateMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more