Skip to main content

QEasingCurve

Struct QEasingCurve 

Source
pub struct QEasingCurve { /* private fields */ }
Expand description

C++ class: QEasingCurve.

Implementations§

Source§

impl QEasingCurve

Source

pub unsafe fn add_cubic_bezier_segment( &self, c1: impl CastInto<Ref<QPointF>>, c2: impl CastInto<Ref<QPointF>>, end_point: impl CastInto<Ref<QPointF>>, )

Calls C++ function: void QEasingCurve::addCubicBezierSegment(const QPointF& c1, const QPointF& c2, const QPointF& endPoint).

Source

pub unsafe fn add_t_c_b_segment( &self, next_point: impl CastInto<Ref<QPointF>>, t: c_double, c: c_double, b: c_double, )

Calls C++ function: void QEasingCurve::addTCBSegment(const QPointF& nextPoint, double t, double c, double b).

Source

pub unsafe fn amplitude(&self) -> c_double

Calls C++ function: double QEasingCurve::amplitude() const.

Source

pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QEasingCurve>>, ) -> Ref<QEasingCurve>

Calls C++ function: QEasingCurve& QEasingCurve::operator=(const QEasingCurve& other).

Source

pub unsafe fn custom_type(&self) -> Option<extern "C" fn(c_double) -> c_double>

Calls C++ function: double (*FN_PTR)(double) QEasingCurve::customType() const.

Source

pub unsafe fn new_1a(type_: Type) -> CppBox<QEasingCurve>

Calls C++ function: [constructor] void QEasingCurve::QEasingCurve(QEasingCurve::Type type = …).

Source

pub unsafe fn new_0a() -> CppBox<QEasingCurve>

Calls C++ function: [constructor] void QEasingCurve::QEasingCurve().

Source

pub unsafe fn new_copy( other: impl CastInto<Ref<QEasingCurve>>, ) -> CppBox<QEasingCurve>

Calls C++ function: [constructor] void QEasingCurve::QEasingCurve(const QEasingCurve& other).

Source

pub unsafe fn overshoot(&self) -> c_double

Calls C++ function: double QEasingCurve::overshoot() const.

Source

pub unsafe fn period(&self) -> c_double

Calls C++ function: double QEasingCurve::period() const.

Source

pub unsafe fn set_amplitude(&self, amplitude: c_double)

Calls C++ function: void QEasingCurve::setAmplitude(double amplitude).

Source

pub unsafe fn set_custom_type( &self, func: Option<extern "C" fn(c_double) -> c_double>, )

Calls C++ function: void QEasingCurve::setCustomType(double (*FN_PTR)(double) func).

Source

pub unsafe fn set_overshoot(&self, overshoot: c_double)

Calls C++ function: void QEasingCurve::setOvershoot(double overshoot).

Source

pub unsafe fn set_period(&self, period: c_double)

Calls C++ function: void QEasingCurve::setPeriod(double period).

Source

pub unsafe fn set_type(&self, type_: Type)

Calls C++ function: void QEasingCurve::setType(QEasingCurve::Type type).

Source

pub unsafe fn static_meta_object() -> Ref<QMetaObject>

Returns a reference to the staticMetaObject field.

Source

pub unsafe fn swap(&self, other: impl CastInto<Ref<QEasingCurve>>)

Calls C++ function: void QEasingCurve::swap(QEasingCurve& other).

Source

pub unsafe fn to_cubic_spline(&self) -> CppBox<QVectorOfQPointF>

Calls C++ function: QVector<QPointF> QEasingCurve::toCubicSpline() const.

Source

pub unsafe fn type_(&self) -> Type

Calls C++ function: QEasingCurve::Type QEasingCurve::type() const.

Source

pub unsafe fn value_for_progress(&self, progress: c_double) -> c_double

Calls C++ function: double QEasingCurve::valueForProgress(double progress) const.

Trait Implementations§

Source§

impl CppDeletable for QEasingCurve

Source§

unsafe fn delete(&self)

Calls C++ function: [destructor] void QEasingCurve::~QEasingCurve().

Source§

impl PartialEq<Ref<QEasingCurve>> for QEasingCurve

Source§

fn eq(&self, other: &Ref<QEasingCurve>) -> bool

Calls C++ function: bool QEasingCurve::operator==(const QEasingCurve& other) const.

1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

Source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> StaticUpcast<T> for T

Source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.