[][src]Struct qt_3d_render::QTextureImageData

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

QTextureImageData stores data representing a texture.

C++ class: Qt3DRender::QTextureImageData.

C++ documentation:

QTextureImageData stores data representing a texture.

Methods

impl QTextureImageData[src]

pub unsafe fn cleanup(&self)[src]

Remove stored texture data and return the object to its initial state

Calls C++ function: void Qt3DRender::QTextureImageData::cleanup().

C++ documentation:

Remove stored texture data and return the object to its initial state

pub unsafe fn copy_from(
    &self,
    other: impl CastInto<Ref<QTextureImageData>>
) -> Ref<QTextureImageData>
[src]

Copy-assignment operator.

Calls C++ function: Qt3DRender::QTextureImageData& Qt3DRender::QTextureImageData::operator=(const Qt3DRender::QTextureImageData& other).

C++ documentation:

Copy-assignment operator.

pub unsafe fn data_3a(
    &self,
    layer: c_int,
    face: c_int,
    mipmap_level: c_int
) -> CppBox<QByteArray>
[src]

Returns the raw image data for the texture at layer layer, face face and mipmapLevel mipmapLevel

Calls C++ function: QByteArray Qt3DRender::QTextureImageData::data(int layer = …, int face = …, int mipmapLevel = …) const.

C++ documentation:

Returns the raw image data for the texture at layer layer, face face and mipmapLevel mipmapLevel

See also setData().

pub unsafe fn data_2a(&self, layer: c_int, face: c_int) -> CppBox<QByteArray>[src]

Returns the raw image data for the texture at layer layer, face face and mipmapLevel mipmapLevel

Calls C++ function: QByteArray Qt3DRender::QTextureImageData::data(int layer = …, int face = …) const.

C++ documentation:

Returns the raw image data for the texture at layer layer, face face and mipmapLevel mipmapLevel

See also setData().

pub unsafe fn data_1a(&self, layer: c_int) -> CppBox<QByteArray>[src]

Returns the raw image data for the texture at layer layer, face face and mipmapLevel mipmapLevel

Calls C++ function: QByteArray Qt3DRender::QTextureImageData::data(int layer = …) const.

C++ documentation:

Returns the raw image data for the texture at layer layer, face face and mipmapLevel mipmapLevel

See also setData().

pub unsafe fn data_0a(&self) -> CppBox<QByteArray>[src]

Returns the raw image data for the texture at layer layer, face face and mipmapLevel mipmapLevel

Calls C++ function: QByteArray Qt3DRender::QTextureImageData::data() const.

C++ documentation:

Returns the raw image data for the texture at layer layer, face face and mipmapLevel mipmapLevel

See also setData().

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

Returns the depth of the stored texture

Calls C++ function: int Qt3DRender::QTextureImageData::depth() const.

C++ documentation:

Returns the depth of the stored texture

See also setDepth().

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

Returns the number of faces in the stored texture

Calls C++ function: int Qt3DRender::QTextureImageData::faces() const.

C++ documentation:

Returns the number of faces in the stored texture

See also setFaces().

pub unsafe fn format(&self) -> TextureFormat[src]

Returns the format of the stored texture

Calls C++ function: QOpenGLTexture::TextureFormat Qt3DRender::QTextureImageData::format() const.

C++ documentation:

Returns the format of the stored texture

See also setFormat().

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

Returns the height of the stored texture

Calls C++ function: int Qt3DRender::QTextureImageData::height() const.

C++ documentation:

Returns the height of the stored texture

See also setHeight().

pub unsafe fn is_compressed(&self) -> bool[src]

Returns true if the stored texture is in a compressed format

Calls C++ function: bool Qt3DRender::QTextureImageData::isCompressed() const.

C++ documentation:

Returns true if the stored texture is in a compressed format

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

Returns the number of layers in the stored texture

Calls C++ function: int Qt3DRender::QTextureImageData::layers() const.

C++ documentation:

Returns the number of layers in the stored texture

See also setLayers().

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

Returns the number of mip levels in the stored texture

Calls C++ function: int Qt3DRender::QTextureImageData::mipLevels() const.

C++ documentation:

Returns the number of mip levels in the stored texture

See also setMipLevels().

pub unsafe fn new() -> CppBox<QTextureImageData>[src]

Constructs a new Qt3DRender::QTextureImageData.

Calls C++ function: [constructor] void Qt3DRender::QTextureImageData::QTextureImageData().

C++ documentation:

Constructs a new Qt3DRender::QTextureImageData.

pub unsafe fn new_copy(
    other: impl CastInto<Ref<QTextureImageData>>
) -> CppBox<QTextureImageData>
[src]

QTextureImageData stores data representing a texture.

Calls C++ function: [constructor] void Qt3DRender::QTextureImageData::QTextureImageData(const Qt3DRender::QTextureImageData& other).

C++ documentation:

QTextureImageData stores data representing a texture.

pub unsafe fn pixel_format(&self) -> PixelFormat[src]

Returns the pixel format of the stored texture

Calls C++ function: QOpenGLTexture::PixelFormat Qt3DRender::QTextureImageData::pixelFormat() const.

C++ documentation:

Returns the pixel format of the stored texture

See also setPixelFormat().

pub unsafe fn pixel_type(&self) -> PixelType[src]

Returns the pixel type of the stored texture

Calls C++ function: QOpenGLTexture::PixelType Qt3DRender::QTextureImageData::pixelType() const.

C++ documentation:

Returns the pixel type of the stored texture

See also setPixelType().

pub unsafe fn set_data_3a(
    &self,
    data: impl CastInto<Ref<QByteArray>>,
    block_size: c_int,
    is_compressed: bool
)
[src]

Store the data data with blocksize blockSize and if the data to be stored is compressed isCompressed

Calls C++ function: void Qt3DRender::QTextureImageData::setData(const QByteArray& data, int blockSize, bool isCompressed = …).

C++ documentation:

Store the data data with blocksize blockSize and if the data to be stored is compressed isCompressed

See also data().

pub unsafe fn set_data_2a(
    &self,
    data: impl CastInto<Ref<QByteArray>>,
    block_size: c_int
)
[src]

Store the data data with blocksize blockSize and if the data to be stored is compressed isCompressed

Calls C++ function: void Qt3DRender::QTextureImageData::setData(const QByteArray& data, int blockSize).

C++ documentation:

Store the data data with blocksize blockSize and if the data to be stored is compressed isCompressed

See also data().

pub unsafe fn set_depth(&self, depth: c_int)[src]

Sets the depth to depth. setDepth

Calls C++ function: void Qt3DRender::QTextureImageData::setDepth(int depth).

C++ documentation:

Sets the depth to depth. setDepth

See also depth().

pub unsafe fn set_faces(&self, faces: c_int)[src]

Sets the faces to faces. setFaces

Calls C++ function: void Qt3DRender::QTextureImageData::setFaces(int faces).

C++ documentation:

Sets the faces to faces. setFaces

See also faces().

pub unsafe fn set_format(&self, format: TextureFormat)[src]

Sets the format to format.

Calls C++ function: void Qt3DRender::QTextureImageData::setFormat(QOpenGLTexture::TextureFormat format).

C++ documentation:

Sets the format to format.

See also format().

pub unsafe fn set_height(&self, height: c_int)[src]

Sets the height to height. setHeight

Calls C++ function: void Qt3DRender::QTextureImageData::setHeight(int height).

C++ documentation:

Sets the height to height. setHeight

See also height().

pub unsafe fn set_image(&self, arg1: impl CastInto<Ref<QImage>>)[src]

Copies the image image as raw data within this object

Calls C++ function: void Qt3DRender::QTextureImageData::setImage(const QImage& arg1).

C++ documentation:

Copies the image image as raw data within this object

pub unsafe fn set_layers(&self, layers: c_int)[src]

Sets the layers to layers. setLayers

Calls C++ function: void Qt3DRender::QTextureImageData::setLayers(int layers).

C++ documentation:

Sets the layers to layers. setLayers

See also layers().

pub unsafe fn set_mip_levels(&self, mip_levels: c_int)[src]

Sets the mip levels to mipLevels. setMipLevels

Calls C++ function: void Qt3DRender::QTextureImageData::setMipLevels(int mipLevels).

C++ documentation:

Sets the mip levels to mipLevels. setMipLevels

See also mipLevels().

pub unsafe fn set_pixel_format(&self, pixel_format: PixelFormat)[src]

Sets the pixel format to pixelFormat. setPixelFormat

Calls C++ function: void Qt3DRender::QTextureImageData::setPixelFormat(QOpenGLTexture::PixelFormat pixelFormat).

C++ documentation:

Sets the pixel format to pixelFormat. setPixelFormat

See also pixelFormat().

pub unsafe fn set_pixel_type(&self, pixel_type: PixelType)[src]

Sets the pixel type to pixelType setPixelType

Calls C++ function: void Qt3DRender::QTextureImageData::setPixelType(QOpenGLTexture::PixelType pixelType).

C++ documentation:

Sets the pixel type to pixelType setPixelType

See also pixelType().

pub unsafe fn set_target(&self, target: Target)[src]

Sets the target to target. target

Calls C++ function: void Qt3DRender::QTextureImageData::setTarget(QOpenGLTexture::Target target).

C++ documentation:

Sets the target to target. target

See also target().

pub unsafe fn set_width(&self, width: c_int)[src]

Sets the width to width. setWidth

Calls C++ function: void Qt3DRender::QTextureImageData::setWidth(int width).

C++ documentation:

Sets the width to width. setWidth

See also width().

pub unsafe fn target(&self) -> Target[src]

Returns the target for the stored texture

Calls C++ function: QOpenGLTexture::Target Qt3DRender::QTextureImageData::target() const.

C++ documentation:

Returns the target for the stored texture

See also setTarget().

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

Returns the width of the stored texture

Calls C++ function: int Qt3DRender::QTextureImageData::width() const.

C++ documentation:

Returns the width of the stored texture

See also setWidth().

Trait Implementations

impl CppDeletable for QTextureImageData[src]

unsafe fn delete(&self)[src]

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

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.