[−][src]Struct qt_3d_core::QNodeCommand
The QNodeCommand class is the base class for all CommandRequested QSceneChange events.
C++ class: Qt3DCore::QNodeCommand
.
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]
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
.
Returns commandId.
pub unsafe fn data(&self) -> CppBox<QVariant>
[src]
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
.
Returns data.
See also setData().
pub unsafe fn in_reply_to(&self) -> c_ulonglong
[src]
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
.
Returns the id of the original QNodeCommand message that was sent to the backend.
pub unsafe fn name(&self) -> CppBox<QString>
[src]
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
.
Returns name.
See also setName().
pub unsafe fn new(id: impl CastInto<Ref<QNodeId>>) -> CppBox<QNodeCommand>
[src]
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)
.
Constructs a new QNodeCommand with id.
pub unsafe fn set_data(&self, data: impl CastInto<Ref<QVariant>>)
[src]
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)
.
See also data().
pub unsafe fn set_name(&self, name: impl CastInto<Ref<QString>>)
[src]
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)
.
See also name().
pub unsafe fn set_reply_to_command_id(&self, id: c_ulonglong)
[src]
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
.
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 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()
.
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
impl RefUnwindSafe for QNodeCommand
impl Send for QNodeCommand
impl Sync for QNodeCommand
impl Unpin for QNodeCommand
impl UnwindSafe for QNodeCommand
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>,