Skip to main content

QMetaObject

Struct QMetaObject 

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

C++ class: QMetaObject.

Implementations§

Source§

impl QMetaObject

Source

pub unsafe fn activate_q_object_int_void( sender: impl CastInto<Ptr<QObject>>, signal_index: c_int, argv: *mut *mut c_void, )

Calls C++ function: static void QMetaObject::activate(QObject* sender, int signal_index, void** argv).

Source

pub unsafe fn activate_q_object_q_meta_object_int_void( sender: impl CastInto<Ptr<QObject>>, arg2: impl CastInto<Ptr<QMetaObject>>, local_signal_index: c_int, argv: *mut *mut c_void, )

Calls C++ function: static void QMetaObject::activate(QObject* sender, const QMetaObject* arg2, int local_signal_index, void** argv).

Source

pub unsafe fn activate_q_object2_int_void( sender: impl CastInto<Ptr<QObject>>, signal_offset: c_int, local_signal_index: c_int, argv: *mut *mut c_void, )

Calls C++ function: static void QMetaObject::activate(QObject* sender, int signal_offset, int local_signal_index, void** argv).

Source

pub unsafe fn cast_q_object( &self, obj: impl CastInto<Ptr<QObject>>, ) -> QPtr<QObject>

Calls C++ function: QObject* QMetaObject::cast(QObject* obj) const.

Source

pub unsafe fn cast_q_object2( &self, obj: impl CastInto<Ptr<QObject>>, ) -> QPtr<QObject>

Calls C++ function: const QObject* QMetaObject::cast(const QObject* obj) const.

Source

pub unsafe fn check_connect_args_2_char( signal: *const c_char, method: *const c_char, ) -> bool

Calls C++ function: static bool QMetaObject::checkConnectArgs(const char* signal, const char* method).

Source

pub unsafe fn check_connect_args_2_q_meta_method( signal: impl CastInto<Ref<QMetaMethod>>, method: impl CastInto<Ref<QMetaMethod>>, ) -> bool

Calls C++ function: static bool QMetaObject::checkConnectArgs(const QMetaMethod& signal, const QMetaMethod& method).

Source

pub unsafe fn class_info(&self, index: c_int) -> CppBox<QMetaClassInfo>

Calls C++ function: QMetaClassInfo QMetaObject::classInfo(int index) const.

Source

pub unsafe fn class_info_count(&self) -> c_int

Calls C++ function: int QMetaObject::classInfoCount() const.

Source

pub unsafe fn class_info_offset(&self) -> c_int

Calls C++ function: int QMetaObject::classInfoOffset() const.

Source

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

Calls C++ function: const char* QMetaObject::className() const.

Source

pub unsafe fn connect_6a( sender: impl CastInto<Ptr<QObject>>, signal_index: c_int, receiver: impl CastInto<Ptr<QObject>>, method_index: c_int, type_: c_int, types: *mut c_int, ) -> CppBox<Connection>

Calls C++ function: static QMetaObject::Connection QMetaObject::connect(const QObject* sender, int signal_index, const QObject* receiver, int method_index, int type = …, int* types = …).

Source

pub unsafe fn connect_5a( sender: impl CastInto<Ptr<QObject>>, signal_index: c_int, receiver: impl CastInto<Ptr<QObject>>, method_index: c_int, type_: c_int, ) -> CppBox<Connection>

Calls C++ function: static QMetaObject::Connection QMetaObject::connect(const QObject* sender, int signal_index, const QObject* receiver, int method_index, int type = …).

Source

pub unsafe fn connect_4a( sender: impl CastInto<Ptr<QObject>>, signal_index: c_int, receiver: impl CastInto<Ptr<QObject>>, method_index: c_int, ) -> CppBox<Connection>

Calls C++ function: static QMetaObject::Connection QMetaObject::connect(const QObject* sender, int signal_index, const QObject* receiver, int method_index).

Source

pub unsafe fn connect_slots_by_name(o: impl CastInto<Ptr<QObject>>)

Calls C++ function: static void QMetaObject::connectSlotsByName(QObject* o).

Source

pub unsafe fn constructor(&self, index: c_int) -> CppBox<QMetaMethod>

Calls C++ function: QMetaMethod QMetaObject::constructor(int index) const.

Source

pub unsafe fn constructor_count(&self) -> c_int

Calls C++ function: int QMetaObject::constructorCount() const.

Source

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

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

Source

pub unsafe fn disconnect( sender: impl CastInto<Ptr<QObject>>, signal_index: c_int, receiver: impl CastInto<Ptr<QObject>>, method_index: c_int, ) -> bool

Calls C++ function: static bool QMetaObject::disconnect(const QObject* sender, int signal_index, const QObject* receiver, int method_index).

Source

pub unsafe fn disconnect_one( sender: impl CastInto<Ptr<QObject>>, signal_index: c_int, receiver: impl CastInto<Ptr<QObject>>, method_index: c_int, ) -> bool

Calls C++ function: static bool QMetaObject::disconnectOne(const QObject* sender, int signal_index, const QObject* receiver, int method_index).

Source

pub unsafe fn enumerator(&self, index: c_int) -> CppBox<QMetaEnum>

Calls C++ function: QMetaEnum QMetaObject::enumerator(int index) const.

Source

pub unsafe fn enumerator_count(&self) -> c_int

Calls C++ function: int QMetaObject::enumeratorCount() const.

Source

pub unsafe fn enumerator_offset(&self) -> c_int

Calls C++ function: int QMetaObject::enumeratorOffset() const.

Source

pub unsafe fn index_of_class_info(&self, name: *const c_char) -> c_int

Calls C++ function: int QMetaObject::indexOfClassInfo(const char* name) const.

Source

pub unsafe fn index_of_constructor(&self, constructor: *const c_char) -> c_int

Calls C++ function: int QMetaObject::indexOfConstructor(const char* constructor) const.

Source

pub unsafe fn index_of_enumerator(&self, name: *const c_char) -> c_int

Calls C++ function: int QMetaObject::indexOfEnumerator(const char* name) const.

Source

pub unsafe fn index_of_method(&self, method: *const c_char) -> c_int

Calls C++ function: int QMetaObject::indexOfMethod(const char* method) const.

Source

pub unsafe fn index_of_property(&self, name: *const c_char) -> c_int

Calls C++ function: int QMetaObject::indexOfProperty(const char* name) const.

Source

pub unsafe fn index_of_signal(&self, signal: *const c_char) -> c_int

Calls C++ function: int QMetaObject::indexOfSignal(const char* signal) const.

Source

pub unsafe fn index_of_slot(&self, slot: *const c_char) -> c_int

Calls C++ function: int QMetaObject::indexOfSlot(const char* slot) const.

Source

pub unsafe fn inherits( &self, meta_object: impl CastInto<Ptr<QMetaObject>>, ) -> bool

Calls C++ function: bool QMetaObject::inherits(const QMetaObject* metaObject) const.

Source

pub unsafe fn metacall( arg1: impl CastInto<Ptr<QObject>>, arg2: Call, arg3: c_int, arg4: *mut *mut c_void, ) -> c_int

Calls C++ function: static int QMetaObject::metacall(QObject* arg1, QMetaObject::Call arg2, int arg3, void** arg4).

Source

pub unsafe fn method(&self, index: c_int) -> CppBox<QMetaMethod>

Calls C++ function: QMetaMethod QMetaObject::method(int index) const.

Source

pub unsafe fn method_count(&self) -> c_int

Calls C++ function: int QMetaObject::methodCount() const.

Source

pub unsafe fn method_offset(&self) -> c_int

Calls C++ function: int QMetaObject::methodOffset() const.

Source

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

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

Source

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

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

Source

pub unsafe fn normalized_signature(method: *const c_char) -> CppBox<QByteArray>

Calls C++ function: static QByteArray QMetaObject::normalizedSignature(const char* method).

Source

pub unsafe fn normalized_type(type_: *const c_char) -> CppBox<QByteArray>

Calls C++ function: static QByteArray QMetaObject::normalizedType(const char* type).

Source

pub unsafe fn property(&self, index: c_int) -> CppBox<QMetaProperty>

Calls C++ function: QMetaProperty QMetaObject::property(int index) const.

Source

pub unsafe fn property_count(&self) -> c_int

Calls C++ function: int QMetaObject::propertyCount() const.

Source

pub unsafe fn property_offset(&self) -> c_int

Calls C++ function: int QMetaObject::propertyOffset() const.

Source

pub unsafe fn static_metacall( &self, arg1: Call, arg2: c_int, arg3: *mut *mut c_void, ) -> c_int

Calls C++ function: int QMetaObject::static_metacall(QMetaObject::Call arg1, int arg2, void** arg3) const.

Source

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

Calls C++ function: const QMetaObject* QMetaObject::superClass() const.

Source

pub unsafe fn tr_3a( &self, s: *const c_char, c: *const c_char, n: c_int, ) -> CppBox<QString>

Calls C++ function: QString QMetaObject::tr(const char* s, const char* c, int n = …) const.

Source

pub unsafe fn tr_2a( &self, s: *const c_char, c: *const c_char, ) -> CppBox<QString>

Calls C++ function: QString QMetaObject::tr(const char* s, const char* c) const.

Source

pub unsafe fn user_property(&self) -> CppBox<QMetaProperty>

Calls C++ function: QMetaProperty QMetaObject::userProperty() const.

Trait Implementations§

Source§

impl CppDeletable for QMetaObject

Source§

unsafe fn delete(&self)

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

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.