[][src]Struct qt_3d_render::QAbstractTextureImage

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

Encapsulates the necessary information to create an OpenGL texture image.

C++ class: Qt3DRender::QAbstractTextureImage.

C++ documentation:

Encapsulates the necessary information to create an OpenGL texture image.

QAbstractTextureImage should be used as the means of providing image data to a QAbstractTexture. It contains the necessary information: mipmap level, layer, cube face load at the proper place data into an OpenGL texture.

The actual data is provided through a QTextureImageDataGenerator that will be executed by Aspect jobs in the backend. QAbstractTextureImage should be subclassed to provide a functor and eventual additional properties needed by the functor to load actual data.

Note: : QAbstractTextureImage should never be shared. Expect crashes, undefined behavior at best if this rule is not respected.

Methods

impl QAbstractTextureImage[src]

pub fn slot_set_mip_level(&self) -> Receiver<(c_int,)>[src]

Sets the mip level of a texture to level. level

Returns a built-in Qt slot Qt3DRender::QAbstractTextureImage::setMipLevel that can be passed to qt_core::Signal::connect.

C++ documentation:

Sets the mip level of a texture to level. level

Note: Setter function for property mipLevel.

See also mipLevel().

pub fn slot_set_layer(&self) -> Receiver<(c_int,)>[src]

Sets the layer of a texture to layer. layer

Returns a built-in Qt slot Qt3DRender::QAbstractTextureImage::setLayer that can be passed to qt_core::Signal::connect.

C++ documentation:

Sets the layer of a texture to layer. layer

Note: Setter function for property layer.

See also layer().

pub fn slot_set_face(&self) -> Receiver<(CubeMapFace,)>[src]

Sets the texture image face to face. face

Returns a built-in Qt slot Qt3DRender::QAbstractTextureImage::setFace that can be passed to qt_core::Signal::connect.

C++ documentation:

Sets the texture image face to face. face

Note: Setter function for property face.

See also face().

pub fn mip_level_changed(&self) -> Signal<(c_int,)>[src]

Holds the mipmap level of the texture image.

Returns a built-in Qt signal Qt3DRender::QAbstractTextureImage::mipLevelChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the mipmap level of the texture image.

Access functions:

int mipLevel() const
void setMipLevel(int level)

Notifier signal:

void mipLevelChanged(int mipLevel)

pub fn layer_changed(&self) -> Signal<(c_int,)>[src]

Returns the layer of the texture image.

Returns a built-in Qt signal Qt3DRender::QAbstractTextureImage::layerChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Returns the layer of the texture image.

Access functions:

int layer() const
void setLayer(int layer)

Notifier signal:

void layerChanged(int layer)

pub fn face_changed(&self) -> Signal<(CubeMapFace,)>[src]

Holds the cube map face of the texture image.

Returns a built-in Qt signal Qt3DRender::QAbstractTextureImage::faceChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the cube map face of the texture image.

Note: The cube map face has a meaning only for TargetCubeMap and TargetCubeMapArray.

Access functions:

QAbstractTexture::CubeMapFace face() const
void setFace(QAbstractTexture::CubeMapFace face)

Notifier signal:

void faceChanged(QAbstractTexture::CubeMapFace face)

pub unsafe fn face(&self) -> CubeMapFace[src]

Holds the cube map face of the texture image.

Calls C++ function: Qt3DRender::QAbstractTexture::CubeMapFace Qt3DRender::QAbstractTextureImage::face() const.

C++ documentation:

Holds the cube map face of the texture image.

Note: The cube map face has a meaning only for TargetCubeMap and TargetCubeMapArray.

Access functions:

QAbstractTexture::CubeMapFace face() const
void setFace(QAbstractTexture::CubeMapFace face)

Notifier signal:

void faceChanged(QAbstractTexture::CubeMapFace face)

pub unsafe fn layer(&self) -> c_int[src]

Returns the layer of the texture image.

Calls C++ function: int Qt3DRender::QAbstractTextureImage::layer() const.

C++ documentation:

Returns the layer of the texture image.

Access functions:

int layer() const
void setLayer(int layer)

Notifier signal:

void layerChanged(int layer)

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* Qt3DRender::QAbstractTextureImage::metaObject() const.

pub unsafe fn mip_level(&self) -> c_int[src]

Holds the mipmap level of the texture image.

Calls C++ function: int Qt3DRender::QAbstractTextureImage::mipLevel() const.

C++ documentation:

Holds the mipmap level of the texture image.

Access functions:

int mipLevel() const
void setMipLevel(int level)

Notifier signal:

void mipLevelChanged(int mipLevel)

pub unsafe fn qt_metacall(
    &self,
    arg1: Call,
    arg2: c_int,
    arg3: *mut *mut c_void
) -> c_int
[src]

Calls C++ function: virtual int Qt3DRender::QAbstractTextureImage::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void[src]

Calls C++ function: virtual void* Qt3DRender::QAbstractTextureImage::qt_metacast(const char* arg1).

pub unsafe fn set_face(&self, face: CubeMapFace)[src]

Sets the texture image face to face. face

Calls C++ function: [slot] void Qt3DRender::QAbstractTextureImage::setFace(Qt3DRender::QAbstractTexture::CubeMapFace face).

C++ documentation:

Sets the texture image face to face. face

Note: Setter function for property face.

See also face().

pub unsafe fn set_layer(&self, layer: c_int)[src]

Sets the layer of a texture to layer. layer

Calls C++ function: [slot] void Qt3DRender::QAbstractTextureImage::setLayer(int layer).

C++ documentation:

Sets the layer of a texture to layer. layer

Note: Setter function for property layer.

See also layer().

pub unsafe fn set_mip_level(&self, level: c_int)[src]

Sets the mip level of a texture to level. level

Calls C++ function: [slot] void Qt3DRender::QAbstractTextureImage::setMipLevel(int level).

C++ documentation:

Sets the mip level of a texture to level. level

Note: Setter function for property mipLevel.

See also mipLevel().

pub unsafe fn static_meta_object() -> Ref<QMetaObject>[src]

Returns a reference to the staticMetaObject field.

pub unsafe fn tr(
    s: *const c_char,
    c: *const c_char,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString Qt3DRender::QAbstractTextureImage::tr(const char* s, const char* c, int n).

pub unsafe fn tr_utf8(
    s: *const c_char,
    c: *const c_char,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString Qt3DRender::QAbstractTextureImage::trUtf8(const char* s, const char* c, int n).

Trait Implementations

impl CppDeletable for QAbstractTextureImage[src]

unsafe fn delete(&self)[src]

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

impl Deref for QAbstractTextureImage[src]

type Target = QNode

The resulting type after dereferencing.

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

Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DRender::QAbstractTextureImage* ptr).

impl DynamicCast<QAbstractTextureImage> for QNode[src]

unsafe fn dynamic_cast(ptr: Ptr<QNode>) -> Ptr<QAbstractTextureImage>[src]

Calls C++ function: Qt3DRender::QAbstractTextureImage* dynamic_cast<Qt3DRender::QAbstractTextureImage*>(Qt3DCore::QNode* ptr).

impl DynamicCast<QAbstractTextureImage> for QObject[src]

unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QAbstractTextureImage>[src]

Calls C++ function: Qt3DRender::QAbstractTextureImage* dynamic_cast<Qt3DRender::QAbstractTextureImage*>(QObject* ptr).

impl DynamicCast<QPaintedTextureImage> for QAbstractTextureImage[src]

unsafe fn dynamic_cast(
    ptr: Ptr<QAbstractTextureImage>
) -> Ptr<QPaintedTextureImage>
[src]

Calls C++ function: Qt3DRender::QPaintedTextureImage* dynamic_cast<Qt3DRender::QPaintedTextureImage*>(Qt3DRender::QAbstractTextureImage* ptr).

impl DynamicCast<QTextureImage> for QAbstractTextureImage[src]

unsafe fn dynamic_cast(ptr: Ptr<QAbstractTextureImage>) -> Ptr<QTextureImage>[src]

Calls C++ function: Qt3DRender::QTextureImage* dynamic_cast<Qt3DRender::QTextureImage*>(Qt3DRender::QAbstractTextureImage* ptr).

impl StaticDowncast<QAbstractTextureImage> for QNode[src]

unsafe fn static_downcast(ptr: Ptr<QNode>) -> Ptr<QAbstractTextureImage>[src]

Calls C++ function: Qt3DRender::QAbstractTextureImage* static_cast<Qt3DRender::QAbstractTextureImage*>(Qt3DCore::QNode* ptr).

impl StaticDowncast<QAbstractTextureImage> for QObject[src]

unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QAbstractTextureImage>[src]

Calls C++ function: Qt3DRender::QAbstractTextureImage* static_cast<Qt3DRender::QAbstractTextureImage*>(QObject* ptr).

impl StaticDowncast<QPaintedTextureImage> for QAbstractTextureImage[src]

unsafe fn static_downcast(
    ptr: Ptr<QAbstractTextureImage>
) -> Ptr<QPaintedTextureImage>
[src]

Calls C++ function: Qt3DRender::QPaintedTextureImage* static_cast<Qt3DRender::QPaintedTextureImage*>(Qt3DRender::QAbstractTextureImage* ptr).

impl StaticDowncast<QTextureImage> for QAbstractTextureImage[src]

unsafe fn static_downcast(ptr: Ptr<QAbstractTextureImage>) -> Ptr<QTextureImage>[src]

Calls C++ function: Qt3DRender::QTextureImage* static_cast<Qt3DRender::QTextureImage*>(Qt3DRender::QAbstractTextureImage* ptr).

impl StaticUpcast<QAbstractTextureImage> for QPaintedTextureImage[src]

unsafe fn static_upcast(
    ptr: Ptr<QPaintedTextureImage>
) -> Ptr<QAbstractTextureImage>
[src]

Calls C++ function: Qt3DRender::QAbstractTextureImage* static_cast<Qt3DRender::QAbstractTextureImage*>(Qt3DRender::QPaintedTextureImage* ptr).

impl StaticUpcast<QAbstractTextureImage> for QTextureImage[src]

unsafe fn static_upcast(ptr: Ptr<QTextureImage>) -> Ptr<QAbstractTextureImage>[src]

Calls C++ function: Qt3DRender::QAbstractTextureImage* static_cast<Qt3DRender::QAbstractTextureImage*>(Qt3DRender::QTextureImage* ptr).

impl StaticUpcast<QNode> for QAbstractTextureImage[src]

unsafe fn static_upcast(ptr: Ptr<QAbstractTextureImage>) -> Ptr<QNode>[src]

Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DRender::QAbstractTextureImage* ptr).

impl StaticUpcast<QObject> for QAbstractTextureImage[src]

unsafe fn static_upcast(ptr: Ptr<QAbstractTextureImage>) -> Ptr<QObject>[src]

Calls C++ function: QObject* static_cast<QObject*>(Qt3DRender::QAbstractTextureImage* 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.