Struct QTextureImageDataGenerator

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

Provides texture image data for QAbstractTextureImage

C++ class: Qt3DRender::QTextureImageDataGenerator.

C++ documentation:

Provides texture image data for QAbstractTextureImage

QTextureImageDataGenerator is a data provider for QAbstractTexture. QTextureImageDataGenerator can be used to expand Qt3D with more ways to load texture image data as well as support user-defined formats and formats Qt3D does not natively support. The data is returned by the QTextureImageDataPtr which contains the data that will be loaded to the texture. QTextureImageDataGenerator is executed by Aspect jobs in the backend.

Methods from Deref<Target = 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 QTextureImageDataGenerator

Source§

unsafe fn delete(&self)

Destroys the instance of QTextureImageDataGenerator. The destructor is virtual.

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

C++ documentation:

Destroys the instance of QTextureImageDataGenerator. The destructor is virtual.

Source§

impl Deref for QTextureImageDataGenerator

Source§

fn deref(&self) -> &QAbstractFunctor

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

Source§

type Target = QAbstractFunctor

The resulting type after dereferencing.
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 PartialEq<Ref<QTextureImageDataGenerator>> for QTextureImageDataGenerator

Source§

fn eq(&self, other: &Ref<QTextureImageDataGenerator>) -> bool

Implement the method to compare this texture data generator to other. Returns a boolean that indicates whether the QAbstractTextureImage needs to reload the QTextureImageData.

Calls C++ function: pure virtual bool Qt3DRender::QTextureImageDataGenerator::operator==(const Qt3DRender::QTextureImageDataGenerator& other) const.

C++ documentation:

Implement the method to compare this texture data generator to other. Returns a boolean that indicates whether the QAbstractTextureImage needs to reload the QTextureImageData.

1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
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 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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.