Struct qt_core::q_time_line::CurveShape
source · pub struct CurveShape(/* private fields */);
Expand description
This enum describes the default shape of QTimeLine's value curve. The default, shape is EaseInOutCurve. The curve defines the relation between the value and the timeline.
C++ enum: QTimeLine::CurveShape
.
This enum describes the default shape of QTimeLine’s value curve. The default, shape is EaseInOutCurve. The curve defines the relation between the value and the timeline.
See also setCurveShape().
Implementations§
source§impl CurveShape
impl CurveShape
sourcepub const EaseInCurve: CurveShape = _
pub const EaseInCurve: CurveShape = _
The value starts growing slowly, then increases in speed. (C++ enum variant: EaseInCurve = 0
)
sourcepub const EaseOutCurve: CurveShape = _
pub const EaseOutCurve: CurveShape = _
The value starts growing steadily, then ends slowly. (C++ enum variant: EaseOutCurve = 1
)
sourcepub const EaseInOutCurve: CurveShape = _
pub const EaseInOutCurve: CurveShape = _
The value starts growing slowly, then runs steadily, then grows slowly again. (C++ enum variant: EaseInOutCurve = 2
)
sourcepub const LinearCurve: CurveShape = _
pub const LinearCurve: CurveShape = _
The value grows linearly (e.g., if the duration is 1000 ms, the value at time 500 ms is 0.5). (C++ enum variant: LinearCurve = 3
)
sourcepub const SineCurve: CurveShape = _
pub const SineCurve: CurveShape = _
The value grows sinusoidally. (C++ enum variant: SineCurve = 4
)
sourcepub const CosineCurve: CurveShape = _
pub const CosineCurve: CurveShape = _
The value grows cosinusoidally. (C++ enum variant: CosineCurve = 5
)
Trait Implementations§
source§impl Clone for CurveShape
impl Clone for CurveShape
source§fn clone(&self) -> CurveShape
fn clone(&self) -> CurveShape
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CurveShape
impl Debug for CurveShape
source§impl From<CurveShape> for c_int
impl From<CurveShape> for c_int
source§fn from(value: CurveShape) -> Self
fn from(value: CurveShape) -> Self
source§impl From<i32> for CurveShape
impl From<i32> for CurveShape
source§impl PartialEq for CurveShape
impl PartialEq for CurveShape
source§fn eq(&self, other: &CurveShape) -> bool
fn eq(&self, other: &CurveShape) -> bool
self
and other
values to be equal, and is used
by ==
.