Struct qt_core::QMetaClassInfo

source ·
#[repr(C)]
pub struct QMetaClassInfo { /* private fields */ }
Expand description

The QMetaClassInfo class provides additional information about a class.

C++ class: QMetaClassInfo.

C++ documentation:

The QMetaClassInfo class provides additional information about a class.

Class information items are simple name--value pairs that are specified using Q_CLASSINFO() in the source code. The information can be retrieved using name() and value(). For example:

class MyClass { Q_OBJECT Q_CLASSINFO(“author”, “Sabrina Schweinsteiger”) Q_CLASSINFO(“url”, “http://doc.moosesoft.co.uk/1.0/”)

public: ... };

This mechanism is free for you to use in your Qt applications. Qt doesn't use it for any of its classes.

Implementations§

source§

impl QMetaClassInfo

source

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

The QMetaClassInfo class provides additional information about a class.

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

C++ documentation:

The QMetaClassInfo class provides additional information about a class.

Class information items are simple name--value pairs that are specified using Q_CLASSINFO() in the source code. The information can be retrieved using name() and value(). For example:

class MyClass { Q_OBJECT Q_CLASSINFO(“author”, “Sabrina Schweinsteiger”) Q_CLASSINFO(“url”, “http://doc.moosesoft.co.uk/1.0/”)

public: ... };

This mechanism is free for you to use in your Qt applications. Qt doesn't use it for any of its classes.

source

pub unsafe fn enclosing_meta_object(&self) -> Ptr<QMetaObject>

Calls C++ function: const QMetaObject* QMetaClassInfo::enclosingMetaObject() const.

source

pub unsafe fn name(&self) -> *const c_char

Returns the name of this item.

Calls C++ function: const char* QMetaClassInfo::name() const.

C++ documentation:

Returns the name of this item.

See also value().

source

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

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

source

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

The QMetaClassInfo class provides additional information about a class.

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

C++ documentation:

The QMetaClassInfo class provides additional information about a class.

Class information items are simple name--value pairs that are specified using Q_CLASSINFO() in the source code. The information can be retrieved using name() and value(). For example:

class MyClass { Q_OBJECT Q_CLASSINFO(“author”, “Sabrina Schweinsteiger”) Q_CLASSINFO(“url”, “http://doc.moosesoft.co.uk/1.0/”)

public: ... };

This mechanism is free for you to use in your Qt applications. Qt doesn't use it for any of its classes.

source

pub unsafe fn value(&self) -> *const c_char

Returns the value of this item.

Calls C++ function: const char* QMetaClassInfo::value() const.

C++ documentation:

Returns the value of this item.

See also name().

Trait Implementations§

source§

impl CppDeletable for QMetaClassInfo

source§

unsafe fn delete(&self)

The QMetaClassInfo class provides additional information about a class.

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

C++ documentation:

The QMetaClassInfo class provides additional information about a class.

Class information items are simple name--value pairs that are specified using Q_CLASSINFO() in the source code. The information can be retrieved using name() and value(). For example:

class MyClass { Q_OBJECT Q_CLASSINFO(“author”, “Sabrina Schweinsteiger”) Q_CLASSINFO(“url”, “http://doc.moosesoft.co.uk/1.0/”)

public: ... };

This mechanism is free for you to use in your Qt applications. Qt doesn't use it for any of its classes.

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>,

§

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>,

§

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.