Skip to main content

QDeadlineTimer

Struct QDeadlineTimer 

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

C++ class: QDeadlineTimer.

Implementations§

Source§

impl QDeadlineTimer

Source

pub unsafe fn add_assign(&self, msecs: c_longlong) -> Ref<QDeadlineTimer>

Calls C++ function: QDeadlineTimer& QDeadlineTimer::operator+=(long long msecs).

Source

pub unsafe fn add_n_secs( dt: impl CastInto<Ref<QDeadlineTimer>>, nsecs: c_longlong, ) -> CppBox<QDeadlineTimer>

Calls C++ function: static QDeadlineTimer QDeadlineTimer::addNSecs(QDeadlineTimer dt, long long nsecs).

Source

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

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

Source

pub unsafe fn current_1a(timer_type: TimerType) -> CppBox<QDeadlineTimer>

Calls C++ function: static QDeadlineTimer QDeadlineTimer::current(Qt::TimerType timerType = …).

Source

pub unsafe fn current_0a() -> CppBox<QDeadlineTimer>

Calls C++ function: static QDeadlineTimer QDeadlineTimer::current().

Source

pub unsafe fn deadline(&self) -> c_longlong

Calls C++ function: long long QDeadlineTimer::deadline() const.

Source

pub unsafe fn deadline_n_secs(&self) -> c_longlong

Calls C++ function: long long QDeadlineTimer::deadlineNSecs() const.

Source

pub unsafe fn has_expired(&self) -> bool

Calls C++ function: bool QDeadlineTimer::hasExpired() const.

Source

pub unsafe fn is_forever(&self) -> bool

Calls C++ function: bool QDeadlineTimer::isForever() const.

Source

pub unsafe fn from_timer_type(type_: TimerType) -> CppBox<QDeadlineTimer>

Calls C++ function: [constructor] void QDeadlineTimer::QDeadlineTimer(Qt::TimerType type_ = …).

Source

pub unsafe fn from_forever_constant_timer_type( arg1: ForeverConstant, type_: TimerType, ) -> CppBox<QDeadlineTimer>

Calls C++ function: [constructor] void QDeadlineTimer::QDeadlineTimer(QDeadlineTimer::ForeverConstant arg1, Qt::TimerType type_ = …).

Source

pub unsafe fn from_longlong_timer_type( msecs: c_longlong, type_: TimerType, ) -> CppBox<QDeadlineTimer>

Calls C++ function: [constructor] void QDeadlineTimer::QDeadlineTimer(long long msecs, Qt::TimerType type = …).

Source

pub unsafe fn new() -> CppBox<QDeadlineTimer>

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

Source

pub unsafe fn from_forever_constant( arg1: ForeverConstant, ) -> CppBox<QDeadlineTimer>

Calls C++ function: [constructor] void QDeadlineTimer::QDeadlineTimer(QDeadlineTimer::ForeverConstant arg1).

Source

pub unsafe fn from_longlong(msecs: c_longlong) -> CppBox<QDeadlineTimer>

Calls C++ function: [constructor] void QDeadlineTimer::QDeadlineTimer(long long msecs).

Source

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

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

Source

pub unsafe fn q_data(&self) -> CppBox<QPairOfLonglongUint>

Calls C++ function: QPair<long long, unsigned int> QDeadlineTimer::_q_data() const.

Source

pub unsafe fn remaining_time(&self) -> c_longlong

Calls C++ function: long long QDeadlineTimer::remainingTime() const.

Source

pub unsafe fn remaining_time_n_secs(&self) -> c_longlong

Calls C++ function: long long QDeadlineTimer::remainingTimeNSecs() const.

Source

pub unsafe fn set_deadline_2a(&self, msecs: c_longlong, timer_type: TimerType)

Calls C++ function: void QDeadlineTimer::setDeadline(long long msecs, Qt::TimerType timerType = …).

Source

pub unsafe fn set_deadline_1a(&self, msecs: c_longlong)

Calls C++ function: void QDeadlineTimer::setDeadline(long long msecs).

Source

pub unsafe fn set_precise_deadline_3a( &self, secs: c_longlong, nsecs: c_longlong, type_: TimerType, )

Calls C++ function: void QDeadlineTimer::setPreciseDeadline(long long secs, long long nsecs = …, Qt::TimerType type = …).

Source

pub unsafe fn set_precise_deadline_2a( &self, secs: c_longlong, nsecs: c_longlong, )

Calls C++ function: void QDeadlineTimer::setPreciseDeadline(long long secs, long long nsecs = …).

Source

pub unsafe fn set_precise_deadline_1a(&self, secs: c_longlong)

Calls C++ function: void QDeadlineTimer::setPreciseDeadline(long long secs).

Source

pub unsafe fn set_precise_remaining_time_3a( &self, secs: c_longlong, nsecs: c_longlong, type_: TimerType, )

Calls C++ function: void QDeadlineTimer::setPreciseRemainingTime(long long secs, long long nsecs = …, Qt::TimerType type = …).

Source

pub unsafe fn set_precise_remaining_time_2a( &self, secs: c_longlong, nsecs: c_longlong, )

Calls C++ function: void QDeadlineTimer::setPreciseRemainingTime(long long secs, long long nsecs = …).

Source

pub unsafe fn set_precise_remaining_time_1a(&self, secs: c_longlong)

Calls C++ function: void QDeadlineTimer::setPreciseRemainingTime(long long secs).

Source

pub unsafe fn set_remaining_time_2a(&self, msecs: c_longlong, type_: TimerType)

Calls C++ function: void QDeadlineTimer::setRemainingTime(long long msecs, Qt::TimerType type = …).

Source

pub unsafe fn set_remaining_time_1a(&self, msecs: c_longlong)

Calls C++ function: void QDeadlineTimer::setRemainingTime(long long msecs).

Source

pub unsafe fn set_timer_type(&self, type_: TimerType)

Calls C++ function: void QDeadlineTimer::setTimerType(Qt::TimerType type).

Source

pub unsafe fn sub_assign(&self, msecs: c_longlong) -> Ref<QDeadlineTimer>

Calls C++ function: QDeadlineTimer& QDeadlineTimer::operator-=(long long msecs).

Source

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

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

Source

pub unsafe fn timer_type(&self) -> TimerType

Calls C++ function: Qt::TimerType QDeadlineTimer::timerType() const.

Trait Implementations§

Source§

impl CppDeletable for QDeadlineTimer

Source§

unsafe fn delete(&self)

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

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.