Struct QBackendNode

Source
#[repr(C)]
pub struct QBackendNode { /* private fields */ }
Expand description

The base class for all Qt3D backend nodes

C++ class: Qt3DCore::QBackendNode.

C++ documentation:

The base class for all Qt3D backend nodes

Implementations§

Source§

impl QBackendNode

Source

pub unsafe fn is_enabled(&self) -> bool

Returns true if the backend node is enabled.

Calls C++ function: bool Qt3DCore::QBackendNode::isEnabled() const.

C++ documentation:

Returns true if the backend node is enabled.

Source

pub unsafe fn mode(&self) -> Mode

Returns the mode of the backend mode.

Calls C++ function: Qt3DCore::QBackendNode::Mode Qt3DCore::QBackendNode::mode() const.

C++ documentation:

Returns the mode of the backend mode.

Source

pub unsafe fn new_1a(mode: Mode) -> CppBox<QBackendNode>

Default constructs an instance of QBackendNode.

Calls C++ function: [constructor] void Qt3DCore::QBackendNode::QBackendNode(Qt3DCore::QBackendNode::Mode mode = …).

C++ documentation:

Default constructs an instance of QBackendNode.

Source

pub unsafe fn new_0a() -> CppBox<QBackendNode>

The base class for all Qt3D backend nodes

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

C++ documentation:

The base class for all Qt3D backend nodes

Source

pub unsafe fn peer_id(&self) -> CppBox<QNodeId>

Returns the peer id of the backend node.

Calls C++ function: Qt3DCore::QNodeId Qt3DCore::QBackendNode::peerId() const.

C++ documentation:

Returns the peer id of the backend node.

Source

pub unsafe fn set_enabled(&self, enabled: bool)

Enables or disables the backend node by enabled.

Calls C++ function: void Qt3DCore::QBackendNode::setEnabled(bool enabled).

C++ documentation:

Enables or disables the backend node by enabled.

See also isEnabled().

Trait Implementations§

Source§

impl CppDeletable for QBackendNode

Source§

unsafe fn delete(&self)

Destroys the instance of QBackendNode. The destructor is virtual.

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

C++ documentation:

Destroys the instance of QBackendNode. The destructor is virtual.

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.