Skip to main content

QOperatingSystemVersion

Struct QOperatingSystemVersion 

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

C++ class: QOperatingSystemVersion.

Implementations§

Source§

impl QOperatingSystemVersion

Source

pub unsafe fn android_jelly_bean() -> Ref<QOperatingSystemVersion>

Returns a reference to the AndroidJellyBean field.

Source

pub unsafe fn android_jelly_bean_m_r1() -> Ref<QOperatingSystemVersion>

Returns a reference to the AndroidJellyBean_MR1 field.

Source

pub unsafe fn android_jelly_bean_m_r2() -> Ref<QOperatingSystemVersion>

Returns a reference to the AndroidJellyBean_MR2 field.

Source

pub unsafe fn android_kit_kat() -> Ref<QOperatingSystemVersion>

Returns a reference to the AndroidKitKat field.

Source

pub unsafe fn android_lollipop() -> Ref<QOperatingSystemVersion>

Returns a reference to the AndroidLollipop field.

Source

pub unsafe fn android_lollipop_m_r1() -> Ref<QOperatingSystemVersion>

Returns a reference to the AndroidLollipop_MR1 field.

Source

pub unsafe fn android_marshmallow() -> Ref<QOperatingSystemVersion>

Returns a reference to the AndroidMarshmallow field.

Source

pub unsafe fn android_nougat() -> Ref<QOperatingSystemVersion>

Returns a reference to the AndroidNougat field.

Source

pub unsafe fn android_nougat_m_r1() -> Ref<QOperatingSystemVersion>

Returns a reference to the AndroidNougat_MR1 field.

Source

pub unsafe fn android_oreo() -> Ref<QOperatingSystemVersion>

Returns a reference to the AndroidOreo field.

Source

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

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

Source

pub unsafe fn current() -> CppBox<QOperatingSystemVersion>

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

Source

pub unsafe fn current_type() -> OSType

Calls C++ function: static QOperatingSystemVersion::OSType QOperatingSystemVersion::currentType().

Source

pub unsafe fn mac_o_s_big_sur() -> Ref<QOperatingSystemVersion>

Returns a reference to the MacOSBigSur field.

Source

pub unsafe fn mac_o_s_catalina() -> Ref<QOperatingSystemVersion>

Returns a reference to the MacOSCatalina field.

Source

pub unsafe fn mac_o_s_high_sierra() -> Ref<QOperatingSystemVersion>

Returns a reference to the MacOSHighSierra field.

Source

pub unsafe fn mac_o_s_mojave() -> Ref<QOperatingSystemVersion>

Returns a reference to the MacOSMojave field.

Source

pub unsafe fn mac_o_s_sierra() -> Ref<QOperatingSystemVersion>

Returns a reference to the MacOSSierra field.

Source

pub unsafe fn major_version(&self) -> c_int

Calls C++ function: int QOperatingSystemVersion::majorVersion() const.

Source

pub unsafe fn micro_version(&self) -> c_int

Calls C++ function: int QOperatingSystemVersion::microVersion() const.

Source

pub unsafe fn minor_version(&self) -> c_int

Calls C++ function: int QOperatingSystemVersion::minorVersion() const.

Source

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

Calls C++ function: QString QOperatingSystemVersion::name() const.

Source

pub unsafe fn new_4a( os_type: OSType, vmajor: c_int, vminor: c_int, vmicro: c_int, ) -> CppBox<QOperatingSystemVersion>

Calls C++ function: [constructor] void QOperatingSystemVersion::QOperatingSystemVersion(QOperatingSystemVersion::OSType osType, int vmajor, int vminor = …, int vmicro = …).

Source

pub unsafe fn new_3a( os_type: OSType, vmajor: c_int, vminor: c_int, ) -> CppBox<QOperatingSystemVersion>

Calls C++ function: [constructor] void QOperatingSystemVersion::QOperatingSystemVersion(QOperatingSystemVersion::OSType osType, int vmajor, int vminor = …).

Source

pub unsafe fn new_2a( os_type: OSType, vmajor: c_int, ) -> CppBox<QOperatingSystemVersion>

Calls C++ function: [constructor] void QOperatingSystemVersion::QOperatingSystemVersion(QOperatingSystemVersion::OSType osType, int vmajor).

Source

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

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

Source

pub unsafe fn o_s_x_el_capitan() -> Ref<QOperatingSystemVersion>

Returns a reference to the OSXElCapitan field.

Source

pub unsafe fn o_s_x_mavericks() -> Ref<QOperatingSystemVersion>

Returns a reference to the OSXMavericks field.

Source

pub unsafe fn o_s_x_yosemite() -> Ref<QOperatingSystemVersion>

Returns a reference to the OSXYosemite field.

Source

pub unsafe fn segment_count(&self) -> c_int

Calls C++ function: int QOperatingSystemVersion::segmentCount() const.

Source

pub unsafe fn type_(&self) -> OSType

Calls C++ function: QOperatingSystemVersion::OSType QOperatingSystemVersion::type() const.

Source

pub unsafe fn windows10() -> Ref<QOperatingSystemVersion>

Returns a reference to the Windows10 field.

Source

pub unsafe fn windows7() -> Ref<QOperatingSystemVersion>

Returns a reference to the Windows7 field.

Source

pub unsafe fn windows8() -> Ref<QOperatingSystemVersion>

Returns a reference to the Windows8 field.

Source

pub unsafe fn windows8_1() -> Ref<QOperatingSystemVersion>

Returns a reference to the Windows8_1 field.

Trait Implementations§

Source§

impl CppDeletable for QOperatingSystemVersion

Source§

unsafe fn delete(&self)

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

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.