Struct qmetaobject::QTime
source · #[repr(C)]pub struct QTime { /* private fields */ }
Expand description
Wrapper around QTime
class.
Implementations§
source§impl QTime
impl QTime
sourcepub fn from_h_m_s_ms(h: i32, m: i32, s: Option<i32>, ms: Option<i32>) -> QTime
pub fn from_h_m_s_ms(h: i32, m: i32, s: Option<i32>, ms: Option<i32>) -> QTime
Wrapper around QTime(int h, int m, int s = 0, int ms = 0)
constructor.
Wrapper-specific
Default arguments converted to Option
s.
sourcepub fn get_hour(&self) -> i32
pub fn get_hour(&self) -> i32
Wrapper around QTime::hour()
method.
sourcepub fn get_minute(&self) -> i32
pub fn get_minute(&self) -> i32
Wrapper around QTime::minute()
method.
sourcepub fn get_second(&self) -> i32
pub fn get_second(&self) -> i32
Wrapper around QTime::second()
method.
sourcepub fn get_msec(&self) -> i32
pub fn get_msec(&self) -> i32
Wrapper around QTime::msec()
method.
sourcepub fn get_h_m_s_ms(&self) -> (i32, i32, i32, i32)
pub fn get_h_m_s_ms(&self) -> (i32, i32, i32, i32)
Convenience function for obtaining the hour, minute, second and millisecond components.
sourcepub fn is_valid(&self) -> bool
pub fn is_valid(&self) -> bool
Wrapper around QTime::isValid()
method.
Trait Implementations§
source§impl Ord for QTime
impl Ord for QTime
source§impl PartialEq for QTime
impl PartialEq for QTime
source§impl PartialOrd for QTime
impl PartialOrd for QTime
source§fn le(&self, other: &QTime) -> bool
fn le(&self, other: &QTime) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl QMetaType for QTime
impl QMetaType for QTime
fn id() -> i32
source§fn to_qvariant(&self) -> QVariant
fn to_qvariant(&self) -> QVariant
Returns a QVariant containing a copy of this object
source§fn from_qvariant(variant: QVariant) -> Option<Self>
fn from_qvariant(variant: QVariant) -> Option<Self>
Attempt to convert from a QVariant to this type.
source§const CONVERSION_TO_STRING: Option<fn(_: &Self) -> QString> = None
const CONVERSION_TO_STRING: Option<fn(_: &Self) -> QString> = None
If this is set to a function, it enable the conversion to and from QString
const CONVERSION_FROM_STRING: Option<fn(_: &QString) -> Self> = None
impl Copy for QTime
impl Eq for QTime
impl StructuralEq for QTime
Auto Trait Implementations§
impl RefUnwindSafe for QTime
impl Send for QTime
impl Sync for QTime
impl Unpin for QTime
impl UnwindSafe for QTime
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more