Skip to main content

QMetaProperty

Struct QMetaProperty 

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

C++ class: QMetaProperty.

Implementations§

Source§

impl QMetaProperty

Source

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

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

Source

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

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

Source

pub unsafe fn enumerator(&self) -> CppBox<QMetaEnum>

Calls C++ function: QMetaEnum QMetaProperty::enumerator() const.

Source

pub unsafe fn has_notify_signal(&self) -> bool

Calls C++ function: bool QMetaProperty::hasNotifySignal() const.

Source

pub unsafe fn has_std_cpp_set(&self) -> bool

Calls C++ function: bool QMetaProperty::hasStdCppSet() const.

Source

pub unsafe fn is_constant(&self) -> bool

Calls C++ function: bool QMetaProperty::isConstant() const.

Source

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

Calls C++ function: bool QMetaProperty::isDesignable(const QObject* obj = …) const.

Source

pub unsafe fn is_designable_0a(&self) -> bool

Calls C++ function: bool QMetaProperty::isDesignable() const.

Source

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

Calls C++ function: bool QMetaProperty::isEditable(const QObject* obj = …) const.

Source

pub unsafe fn is_editable_0a(&self) -> bool

Calls C++ function: bool QMetaProperty::isEditable() const.

Source

pub unsafe fn is_enum_type(&self) -> bool

Calls C++ function: bool QMetaProperty::isEnumType() const.

Source

pub unsafe fn is_final(&self) -> bool

Calls C++ function: bool QMetaProperty::isFinal() const.

Source

pub unsafe fn is_flag_type(&self) -> bool

Calls C++ function: bool QMetaProperty::isFlagType() const.

Source

pub unsafe fn is_readable(&self) -> bool

Calls C++ function: bool QMetaProperty::isReadable() const.

Source

pub unsafe fn is_required(&self) -> bool

Calls C++ function: bool QMetaProperty::isRequired() const.

Source

pub unsafe fn is_resettable(&self) -> bool

Calls C++ function: bool QMetaProperty::isResettable() const.

Source

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

Calls C++ function: bool QMetaProperty::isScriptable(const QObject* obj = …) const.

Source

pub unsafe fn is_scriptable_0a(&self) -> bool

Calls C++ function: bool QMetaProperty::isScriptable() const.

Source

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

Calls C++ function: bool QMetaProperty::isStored(const QObject* obj = …) const.

Source

pub unsafe fn is_stored_0a(&self) -> bool

Calls C++ function: bool QMetaProperty::isStored() const.

Source

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

Calls C++ function: bool QMetaProperty::isUser(const QObject* obj = …) const.

Source

pub unsafe fn is_user_0a(&self) -> bool

Calls C++ function: bool QMetaProperty::isUser() const.

Source

pub unsafe fn is_valid(&self) -> bool

Calls C++ function: bool QMetaProperty::isValid() const.

Source

pub unsafe fn is_writable(&self) -> bool

Calls C++ function: bool QMetaProperty::isWritable() const.

Source

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

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

Source

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

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

Source

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

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

Source

pub unsafe fn notify_signal(&self) -> CppBox<QMetaMethod>

Calls C++ function: QMetaMethod QMetaProperty::notifySignal() const.

Source

pub unsafe fn notify_signal_index(&self) -> c_int

Calls C++ function: int QMetaProperty::notifySignalIndex() const.

Source

pub unsafe fn property_index(&self) -> c_int

Calls C++ function: int QMetaProperty::propertyIndex() const.

Source

pub unsafe fn read(&self, obj: impl CastInto<Ptr<QObject>>) -> CppBox<QVariant>

Calls C++ function: QVariant QMetaProperty::read(const QObject* obj) const.

Source

pub unsafe fn read_on_gadget(&self, gadget: *const c_void) -> CppBox<QVariant>

Calls C++ function: QVariant QMetaProperty::readOnGadget(const void* gadget) const.

Source

pub unsafe fn relative_property_index(&self) -> c_int

Calls C++ function: int QMetaProperty::relativePropertyIndex() const.

Source

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

Calls C++ function: bool QMetaProperty::reset(QObject* obj) const.

Source

pub unsafe fn reset_on_gadget(&self, gadget: *mut c_void) -> bool

Calls C++ function: bool QMetaProperty::resetOnGadget(void* gadget) const.

Source

pub unsafe fn revision(&self) -> c_int

Calls C++ function: int QMetaProperty::revision() const.

Source

pub unsafe fn type_(&self) -> Type

Calls C++ function: QVariant::Type QMetaProperty::type() const.

Source

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

Calls C++ function: const char* QMetaProperty::typeName() const.

Source

pub unsafe fn user_type(&self) -> c_int

Calls C++ function: int QMetaProperty::userType() const.

Source

pub unsafe fn write( &self, obj: impl CastInto<Ptr<QObject>>, value: impl CastInto<Ref<QVariant>>, ) -> bool

Calls C++ function: bool QMetaProperty::write(QObject* obj, const QVariant& value) const.

Source

pub unsafe fn write_on_gadget( &self, gadget: *mut c_void, value: impl CastInto<Ref<QVariant>>, ) -> bool

Calls C++ function: bool QMetaProperty::writeOnGadget(void* gadget, const QVariant& value) const.

Trait Implementations§

Source§

impl CppDeletable for QMetaProperty

Source§

unsafe fn delete(&self)

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

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.