Skip to main content

QTime

Struct QTime 

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

C++ class: QTime.

Implementations§

Source§

impl QTime

Source

pub unsafe fn add_m_secs(&self, ms: c_int) -> CppBox<QTime>

Calls C++ function: QTime QTime::addMSecs(int ms) const.

Source

pub unsafe fn add_secs(&self, secs: c_int) -> CppBox<QTime>

Calls C++ function: QTime QTime::addSecs(int secs) const.

Source

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

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

Source

pub unsafe fn current_time() -> CppBox<QTime>

Calls C++ function: static QTime QTime::currentTime().

Source

pub unsafe fn elapsed(&self) -> c_int

Calls C++ function: int QTime::elapsed() const.

Source

pub unsafe fn from_m_secs_since_start_of_day(msecs: c_int) -> CppBox<QTime>

Calls C++ function: static QTime QTime::fromMSecsSinceStartOfDay(int msecs).

Source

pub unsafe fn from_string_q_string_date_format( s: impl CastInto<Ref<QString>>, f: DateFormat, ) -> CppBox<QTime>

Calls C++ function: static QTime QTime::fromString(const QString& s, Qt::DateFormat f = …).

Source

pub unsafe fn from_string_2_q_string( s: impl CastInto<Ref<QString>>, format: impl CastInto<Ref<QString>>, ) -> CppBox<QTime>

Calls C++ function: static QTime QTime::fromString(const QString& s, const QString& format).

Source

pub unsafe fn from_string_q_string( s: impl CastInto<Ref<QString>>, ) -> CppBox<QTime>

Calls C++ function: static QTime QTime::fromString(const QString& s).

Source

pub unsafe fn hour(&self) -> c_int

Calls C++ function: int QTime::hour() const.

Source

pub unsafe fn is_null(&self) -> bool

Calls C++ function: bool QTime::isNull() const.

Source

pub unsafe fn is_valid_0a(&self) -> bool

Calls C++ function: bool QTime::isValid() const.

Source

pub unsafe fn is_valid_4a(h: c_int, m: c_int, s: c_int, ms: c_int) -> bool

Calls C++ function: static bool QTime::isValid(int h, int m, int s, int ms = …).

Source

pub unsafe fn is_valid_3a(h: c_int, m: c_int, s: c_int) -> bool

Calls C++ function: static bool QTime::isValid(int h, int m, int s).

Source

pub unsafe fn minute(&self) -> c_int

Calls C++ function: int QTime::minute() const.

Source

pub unsafe fn msec(&self) -> c_int

Calls C++ function: int QTime::msec() const.

Source

pub unsafe fn msecs_since_start_of_day(&self) -> c_int

Calls C++ function: int QTime::msecsSinceStartOfDay() const.

Source

pub unsafe fn msecs_to(&self, arg1: impl CastInto<Ref<QTime>>) -> c_int

Calls C++ function: int QTime::msecsTo(const QTime& arg1) const.

Source

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

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

Source

pub unsafe fn new_4a(h: c_int, m: c_int, s: c_int, ms: c_int) -> CppBox<QTime>

Calls C++ function: [constructor] void QTime::QTime(int h, int m, int s = …, int ms = …).

Source

pub unsafe fn new_3a(h: c_int, m: c_int, s: c_int) -> CppBox<QTime>

Calls C++ function: [constructor] void QTime::QTime(int h, int m, int s = …).

Source

pub unsafe fn new_2a(h: c_int, m: c_int) -> CppBox<QTime>

Calls C++ function: [constructor] void QTime::QTime(int h, int m).

Source

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

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

Source

pub unsafe fn restart(&self) -> c_int

Calls C++ function: int QTime::restart().

Source

pub unsafe fn second(&self) -> c_int

Calls C++ function: int QTime::second() const.

Source

pub unsafe fn secs_to(&self, arg1: impl CastInto<Ref<QTime>>) -> c_int

Calls C++ function: int QTime::secsTo(const QTime& arg1) const.

Source

pub unsafe fn set_h_m_s_4a( &self, h: c_int, m: c_int, s: c_int, ms: c_int, ) -> bool

Calls C++ function: bool QTime::setHMS(int h, int m, int s, int ms = …).

Source

pub unsafe fn set_h_m_s_3a(&self, h: c_int, m: c_int, s: c_int) -> bool

Calls C++ function: bool QTime::setHMS(int h, int m, int s).

Source

pub unsafe fn start(&self)

Calls C++ function: void QTime::start().

Source

pub unsafe fn to_string_date_format(&self, f: DateFormat) -> CppBox<QString>

Calls C++ function: QString QTime::toString(Qt::DateFormat f = …) const.

Source

pub unsafe fn to_string_q_string( &self, format: impl CastInto<Ref<QString>>, ) -> CppBox<QString>

Calls C++ function: QString QTime::toString(const QString& format) const.

Source

pub unsafe fn to_string_q_string_view( &self, format: impl CastInto<Ref<QStringView>>, ) -> CppBox<QString>

Calls C++ function: QString QTime::toString(QStringView format) const.

Source

pub unsafe fn to_string(&self) -> CppBox<QString>

Calls C++ function: QString QTime::toString() const.

Trait Implementations§

Source§

impl CppDeletable for QTime

Source§

unsafe fn delete(&self)

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

Source§

impl Ge<Ref<QTime>> for QTime

Source§

unsafe fn ge(&self, other: &Ref<QTime>) -> bool

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

Source§

impl Gt<Ref<QTime>> for QTime

Source§

unsafe fn gt(&self, other: &Ref<QTime>) -> bool

Calls C++ function: bool QTime::operator>(const QTime& other) const.

Source§

impl Le<Ref<QTime>> for QTime

Source§

unsafe fn le(&self, other: &Ref<QTime>) -> bool

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

Source§

impl Lt<Ref<QTime>> for QTime

Source§

unsafe fn lt(&self, other: &Ref<QTime>) -> bool

Calls C++ function: bool QTime::operator<(const QTime& other) const.

Source§

impl PartialEq<Ref<QTime>> for QTime

Source§

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

Calls C++ function: bool QTime::operator==(const QTime& 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§

§

impl Freeze for QTime

§

impl RefUnwindSafe for QTime

§

impl Send for QTime

§

impl Sync for QTime

§

impl Unpin for QTime

§

impl UnsafeUnpin for QTime

§

impl UnwindSafe for QTime

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.