Struct QAbstractFunctor

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

QAbstractFunctor is an abstract base class for all functors.

C++ class: Qt3DRender::QAbstractFunctor.

C++ documentation:

QAbstractFunctor is an abstract base class for all functors.

The QAbstractFunctor is used as a base class for all functors and data generators in Qt3DRender module.

When user defines a new functor or generator, they need to implement the QAbstractFunctor::id() method, which should be done using the QT3D_FUNCTOR macro in the class definition.

Implementations§

Source§

impl QAbstractFunctor

Source

pub unsafe fn id(&self) -> isize

Returns a pointer to the id of the functor.

Calls C++ function: pure virtual qintptr Qt3DRender::QAbstractFunctor::id() const.

C++ documentation:

Returns a pointer to the id of the functor.

Trait Implementations§

Source§

impl CppDeletable for QAbstractFunctor

Source§

unsafe fn delete(&self)

Desctructor

Calls C++ function: virtual [destructor] void Qt3DRender::QAbstractFunctor::~QAbstractFunctor().

C++ documentation:

Desctructor

Source§

impl DynamicCast<QBufferDataGenerator> for QAbstractFunctor

Source§

unsafe fn dynamic_cast(ptr: Ptr<QAbstractFunctor>) -> Ptr<QBufferDataGenerator>

Calls C++ function: Qt3DRender::QBufferDataGenerator* dynamic_cast<Qt3DRender::QBufferDataGenerator*>(Qt3DRender::QAbstractFunctor* ptr).

Source§

impl DynamicCast<QGeometryFactory> for QAbstractFunctor

Source§

unsafe fn dynamic_cast(ptr: Ptr<QAbstractFunctor>) -> Ptr<QGeometryFactory>

Calls C++ function: Qt3DRender::QGeometryFactory* dynamic_cast<Qt3DRender::QGeometryFactory*>(Qt3DRender::QAbstractFunctor* ptr).

Source§

impl DynamicCast<QTextureGenerator> for QAbstractFunctor

Source§

unsafe fn dynamic_cast(ptr: Ptr<QAbstractFunctor>) -> Ptr<QTextureGenerator>

Calls C++ function: Qt3DRender::QTextureGenerator* dynamic_cast<Qt3DRender::QTextureGenerator*>(Qt3DRender::QAbstractFunctor* ptr).

Source§

impl DynamicCast<QTextureImageDataGenerator> for QAbstractFunctor

Source§

unsafe fn dynamic_cast( ptr: Ptr<QAbstractFunctor>, ) -> Ptr<QTextureImageDataGenerator>

Calls C++ function: Qt3DRender::QTextureImageDataGenerator* dynamic_cast<Qt3DRender::QTextureImageDataGenerator*>(Qt3DRender::QAbstractFunctor* ptr).

Source§

impl StaticDowncast<QBufferDataGenerator> for QAbstractFunctor

Source§

unsafe fn static_downcast( ptr: Ptr<QAbstractFunctor>, ) -> Ptr<QBufferDataGenerator>

Calls C++ function: Qt3DRender::QBufferDataGenerator* static_cast<Qt3DRender::QBufferDataGenerator*>(Qt3DRender::QAbstractFunctor* ptr).

Source§

impl StaticDowncast<QGeometryFactory> for QAbstractFunctor

Source§

unsafe fn static_downcast(ptr: Ptr<QAbstractFunctor>) -> Ptr<QGeometryFactory>

Calls C++ function: Qt3DRender::QGeometryFactory* static_cast<Qt3DRender::QGeometryFactory*>(Qt3DRender::QAbstractFunctor* ptr).

Source§

impl StaticDowncast<QTextureGenerator> for QAbstractFunctor

Source§

unsafe fn static_downcast(ptr: Ptr<QAbstractFunctor>) -> Ptr<QTextureGenerator>

Calls C++ function: Qt3DRender::QTextureGenerator* static_cast<Qt3DRender::QTextureGenerator*>(Qt3DRender::QAbstractFunctor* ptr).

Source§

impl StaticDowncast<QTextureImageDataGenerator> for QAbstractFunctor

Source§

unsafe fn static_downcast( ptr: Ptr<QAbstractFunctor>, ) -> Ptr<QTextureImageDataGenerator>

Calls C++ function: Qt3DRender::QTextureImageDataGenerator* static_cast<Qt3DRender::QTextureImageDataGenerator*>(Qt3DRender::QAbstractFunctor* ptr).

Source§

impl StaticUpcast<QAbstractFunctor> for QBufferDataGenerator

Source§

unsafe fn static_upcast(ptr: Ptr<QBufferDataGenerator>) -> Ptr<QAbstractFunctor>

Calls C++ function: Qt3DRender::QAbstractFunctor* static_cast<Qt3DRender::QAbstractFunctor*>(Qt3DRender::QBufferDataGenerator* ptr).

Source§

impl StaticUpcast<QAbstractFunctor> for QGeometryFactory

Source§

unsafe fn static_upcast(ptr: Ptr<QGeometryFactory>) -> Ptr<QAbstractFunctor>

Calls C++ function: Qt3DRender::QAbstractFunctor* static_cast<Qt3DRender::QAbstractFunctor*>(Qt3DRender::QGeometryFactory* ptr).

Source§

impl StaticUpcast<QAbstractFunctor> for QTextureGenerator

Source§

unsafe fn static_upcast(ptr: Ptr<QTextureGenerator>) -> Ptr<QAbstractFunctor>

Calls C++ function: Qt3DRender::QAbstractFunctor* static_cast<Qt3DRender::QAbstractFunctor*>(Qt3DRender::QTextureGenerator* ptr).

Source§

impl StaticUpcast<QAbstractFunctor> for QTextureImageDataGenerator

Source§

unsafe fn static_upcast( ptr: Ptr<QTextureImageDataGenerator>, ) -> Ptr<QAbstractFunctor>

Calls C++ function: Qt3DRender::QAbstractFunctor* static_cast<Qt3DRender::QAbstractFunctor*>(Qt3DRender::QTextureImageDataGenerator* ptr).

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.