[]Struct qmetaobject::qttypes::QTime

#[repr(C)]
pub struct QTime { /* fields omitted */ }

Wrapper around Qt's QTime class

Methods

impl QTime[src]

pub fn from_h_m_s_ms(h: i32, m: i32, s: Option<i32>, ms: Option<i32>) -> Self[src]

Constructs a QTime from hours and minutes, and optionally seconds and milliseconds. Refer to the Qt documentation for the QTime constructor.

pub fn get_hour(&self) -> i32[src]

Refer to the Qt documentation for QTime::hour.

pub fn get_minute(&self) -> i32[src]

Refer to the Qt documentation for QTime::minute.

pub fn get_second(&self) -> i32[src]

Refer to the Qt documentation for QTime::second.

pub fn get_msec(&self) -> i32[src]

Refer to the Qt documentation for QTime::msec.

pub fn get_h_m_s_ms(&self) -> (i32, i32, i32, i32)[src]

Convenience function for obtaining the hour, minute, second and millisecond components.

pub fn is_valid(&self) -> bool[src]

Refer to the Qt documentation for QTime::isValid.

Trait Implementations

impl QMetaType for QTime[src]

impl From<QTime> for QVariant[src]

impl Clone for QTime

impl Copy for QTime

impl Default for QTime

impl Eq for QTime

impl Ord for QTime

impl PartialEq<QTime> for QTime

impl PartialOrd<QTime> for QTime

impl StructuralEq for QTime

Auto Trait Implementations

impl Send for QTime

impl Sync for QTime

impl Unpin for QTime

impl UnwindSafe for QTime

impl RefUnwindSafe for QTime

Blanket Implementations

impl<T> QMetaType for T where
    T: QGadget + Clone + Default + 'static, 
[src]

impl<T> PropertyType for T where
    T: QMetaType
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]