[][src]Struct qt_3d_core::QComponentAddedChange

#[repr(C)]pub struct QComponentAddedChange { /* fields omitted */ }

The QComponentAddedChange class is used to notify when a component is added to an entity

C++ class: Qt3DCore::QComponentAddedChange.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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]

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).

C++ documentation:

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]

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).

C++ documentation:

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.

C++ documentation:

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).

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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().

C++ documentation:

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.