[−][src]Struct qt_3d_core::QComponentAddedChange
The QComponentAddedChange class is used to notify when a component is added to an entity
C++ class: Qt3DCore::QComponentAddedChange
.
The QComponentAddedChange class is used to notify when a component is added to an entity
Methods
impl QComponentAddedChange
[src]
pub unsafe fn component_id(&self) -> CppBox<QNodeId>
[src]
Returns the id of the component added.
Calls C++ function: Qt3DCore::QNodeId Qt3DCore::QComponentAddedChange::componentId() const
.
Returns the id of the component added.
pub unsafe fn component_meta_object(&self) -> Ptr<QMetaObject>
[src]
Returns the metaobject.
Calls C++ function: const QMetaObject* Qt3DCore::QComponentAddedChange::componentMetaObject() const
.
Returns the metaobject.
pub unsafe fn entity_id(&self) -> CppBox<QNodeId>
[src]
Returns the id of the entity the component was added to.
Calls C++ function: Qt3DCore::QNodeId Qt3DCore::QComponentAddedChange::entityId() const
.
Returns the id of the entity the component was added to.
pub unsafe fn from_q_entity_q_component(
entity: impl CastInto<Ptr<QEntity>>,
component: impl CastInto<Ptr<QComponent>>
) -> CppBox<QComponentAddedChange>
[src]
entity: impl CastInto<Ptr<QEntity>>,
component: impl CastInto<Ptr<QComponent>>
) -> CppBox<QComponentAddedChange>
Constructs a new QComponentAddedChange which will notify entity that component was added
Calls C++ function: [constructor] void Qt3DCore::QComponentAddedChange::QComponentAddedChange(const Qt3DCore::QEntity* entity, const Qt3DCore::QComponent* component)
.
Constructs a new QComponentAddedChange which will notify entity that component was added
pub unsafe fn from_q_component_q_entity(
component: impl CastInto<Ptr<QComponent>>,
entity: impl CastInto<Ptr<QEntity>>
) -> CppBox<QComponentAddedChange>
[src]
component: impl CastInto<Ptr<QComponent>>,
entity: impl CastInto<Ptr<QEntity>>
) -> CppBox<QComponentAddedChange>
Constructs a new QComponentAddedChange which will notify component that it was added to entity
Calls C++ function: [constructor] void Qt3DCore::QComponentAddedChange::QComponentAddedChange(const Qt3DCore::QComponent* component, const Qt3DCore::QEntity* entity)
.
Constructs a new QComponentAddedChange which will notify component that it was added to entity
Methods from Deref<Target = QSceneChange>
pub unsafe fn delivery_flags(&self) -> QFlags<DeliveryFlag>
[src]
Returns the set delivery flags
Calls C++ function: QFlags<Qt3DCore::QSceneChange::DeliveryFlag> Qt3DCore::QSceneChange::deliveryFlags() const
.
Returns the set delivery flags
See also setDeliveryFlags().
pub unsafe fn set_delivery_flags(&self, flags: QFlags<DeliveryFlag>)
[src]
Set the Delivery flags of the change to flags
Calls C++ function: void Qt3DCore::QSceneChange::setDeliveryFlags(QFlags<Qt3DCore::QSceneChange::DeliveryFlag> flags)
.
Set the Delivery flags of the change to flags
See also deliveryFlags().
pub unsafe fn subject_id(&self) -> CppBox<QNodeId>
[src]
Returns scene change subject id.
Calls C++ function: Qt3DCore::QNodeId Qt3DCore::QSceneChange::subjectId() const
.
Returns scene change subject id.
pub unsafe fn type_(&self) -> ChangeFlag
[src]
Returns scene change type.
Calls C++ function: Qt3DCore::ChangeFlag Qt3DCore::QSceneChange::type() const
.
Returns scene change type.
Trait Implementations
impl CppDeletable for QComponentAddedChange
[src]
unsafe fn delete(&self)
[src]
Destroys the instance of QComponentAddedChange.
Calls C++ function: virtual [destructor] void Qt3DCore::QComponentAddedChange::~QComponentAddedChange()
.
Destroys the instance of QComponentAddedChange.
impl Deref for QComponentAddedChange
[src]
type Target = QSceneChange
The resulting type after dereferencing.
fn deref(&self) -> &QSceneChange
[src]
Calls C++ function: Qt3DCore::QSceneChange* static_cast<Qt3DCore::QSceneChange*>(Qt3DCore::QComponentAddedChange* ptr)
.
impl DynamicCast<QComponentAddedChange> for QSceneChange
[src]
unsafe fn dynamic_cast(ptr: Ptr<QSceneChange>) -> Ptr<QComponentAddedChange>
[src]
Calls C++ function: Qt3DCore::QComponentAddedChange* dynamic_cast<Qt3DCore::QComponentAddedChange*>(Qt3DCore::QSceneChange* ptr)
.
impl StaticDowncast<QComponentAddedChange> for QSceneChange
[src]
unsafe fn static_downcast(ptr: Ptr<QSceneChange>) -> Ptr<QComponentAddedChange>
[src]
Calls C++ function: Qt3DCore::QComponentAddedChange* static_cast<Qt3DCore::QComponentAddedChange*>(Qt3DCore::QSceneChange* ptr)
.
impl StaticUpcast<QSceneChange> for QComponentAddedChange
[src]
unsafe fn static_upcast(ptr: Ptr<QComponentAddedChange>) -> Ptr<QSceneChange>
[src]
Calls C++ function: Qt3DCore::QSceneChange* static_cast<Qt3DCore::QSceneChange*>(Qt3DCore::QComponentAddedChange* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for QComponentAddedChange
impl Send for QComponentAddedChange
impl Sync for QComponentAddedChange
impl Unpin for QComponentAddedChange
impl UnwindSafe for QComponentAddedChange
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,