[][src]Struct qt_3d_core::QNodeCommand

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

The QNodeCommand class is the base class for all CommandRequested QSceneChange events.

C++ class: Qt3DCore::QNodeCommand.

C++ documentation:

The QNodeCommand class is the base class for all CommandRequested QSceneChange events.

The QNodeCommand class is the base class for all QSceneChange events that have the changeType() CommandRequested.

You can subclass this to create your own node update types for communication between your QNode and QBackendNode subclasses when writing your own aspects.

Methods

impl QNodeCommand[src]

pub unsafe fn command_id(&self) -> c_ulonglong[src]

This is supported on cpp_lib_version="5.11.3" or cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Returns commandId.

Calls C++ function: unsigned long long Qt3DCore::QNodeCommand::commandId() const.

C++ documentation:

Returns commandId.

pub unsafe fn data(&self) -> CppBox<QVariant>[src]

This is supported on cpp_lib_version="5.11.3" or cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Returns data.

Calls C++ function: QVariant Qt3DCore::QNodeCommand::data() const.

C++ documentation:

Returns data.

See also setData().

pub unsafe fn in_reply_to(&self) -> c_ulonglong[src]

This is supported on cpp_lib_version="5.11.3" or cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Returns the id of the original QNodeCommand message that was sent to the backend.

Calls C++ function: unsigned long long Qt3DCore::QNodeCommand::inReplyTo() const.

C++ documentation:

Returns the id of the original QNodeCommand message that was sent to the backend.

pub unsafe fn name(&self) -> CppBox<QString>[src]

This is supported on cpp_lib_version="5.11.3" or cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Returns name.

Calls C++ function: QString Qt3DCore::QNodeCommand::name() const.

C++ documentation:

Returns name.

See also setName().

pub unsafe fn new(id: impl CastInto<Ref<QNodeId>>) -> CppBox<QNodeCommand>[src]

This is supported on cpp_lib_version="5.11.3" or cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Constructs a new QNodeCommand with id.

Calls C++ function: [constructor] void Qt3DCore::QNodeCommand::QNodeCommand(Qt3DCore::QNodeId id).

C++ documentation:

Constructs a new QNodeCommand with id.

pub unsafe fn set_data(&self, data: impl CastInto<Ref<QVariant>>)[src]

This is supported on cpp_lib_version="5.11.3" or cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

See also data().

Calls C++ function: void Qt3DCore::QNodeCommand::setData(const QVariant& data).

C++ documentation:

See also data().

pub unsafe fn set_name(&self, name: impl CastInto<Ref<QString>>)[src]

This is supported on cpp_lib_version="5.11.3" or cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

See also name().

Calls C++ function: void Qt3DCore::QNodeCommand::setName(const QString& name).

C++ documentation:

See also name().

pub unsafe fn set_reply_to_command_id(&self, id: c_ulonglong)[src]

This is supported on cpp_lib_version="5.11.3" or cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Sets the command id to which the message is a reply.

Calls C++ function: void Qt3DCore::QNodeCommand::setReplyToCommandId(unsigned long long id).

Warning: no exact match found in C++ documentation. Below is the C++ documentation for void QNodeCommand::setReplyToCommandId(Qt3DCore::QNodeCommand::CommandId id):

Sets the command id to which the message is a reply.

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 QNodeCommand[src]

unsafe fn delete(&self)[src]

Destroys the instance of QNodeCommand. The destructor is virtual.

Calls C++ function: virtual [destructor] void Qt3DCore::QNodeCommand::~QNodeCommand().

C++ documentation:

Destroys the instance of QNodeCommand. The destructor is virtual.

impl Deref for QNodeCommand[src]

type Target = QSceneChange

The resulting type after dereferencing.

fn deref(&self) -> &QSceneChange[src]

Calls C++ function: Qt3DCore::QSceneChange* static_cast<Qt3DCore::QSceneChange*>(Qt3DCore::QNodeCommand* ptr).

impl DynamicCast<QNodeCommand> for QSceneChange[src]

unsafe fn dynamic_cast(ptr: Ptr<QSceneChange>) -> Ptr<QNodeCommand>[src]

Calls C++ function: Qt3DCore::QNodeCommand* dynamic_cast<Qt3DCore::QNodeCommand*>(Qt3DCore::QSceneChange* ptr).

impl StaticDowncast<QNodeCommand> for QSceneChange[src]

unsafe fn static_downcast(ptr: Ptr<QSceneChange>) -> Ptr<QNodeCommand>[src]

Calls C++ function: Qt3DCore::QNodeCommand* static_cast<Qt3DCore::QNodeCommand*>(Qt3DCore::QSceneChange* ptr).

impl StaticUpcast<QSceneChange> for QNodeCommand[src]

unsafe fn static_upcast(ptr: Ptr<QNodeCommand>) -> Ptr<QSceneChange>[src]

Calls C++ function: Qt3DCore::QSceneChange* static_cast<Qt3DCore::QSceneChange*>(Qt3DCore::QNodeCommand* 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.