Struct QTextureImageData

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

QTextureImageData stores data representing a texture.

C++ class: Qt3DRender::QTextureImageData.

C++ documentation:

QTextureImageData stores data representing a texture.

Implementations§

Source§

impl QTextureImageData

Source

pub unsafe fn cleanup(&self)

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

Source

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

Copy-assignment operator.

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

C++ documentation:

Copy-assignment operator.

Source

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

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().

Source

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

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().

Source

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

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().

Source

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

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().

Source

pub unsafe fn depth(&self) -> c_int

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().

Source

pub unsafe fn faces(&self) -> c_int

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().

Source

pub unsafe fn format(&self) -> TextureFormat

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().

Source

pub unsafe fn height(&self) -> c_int

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().

Source

pub unsafe fn is_compressed(&self) -> bool

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

Source

pub unsafe fn layers(&self) -> c_int

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().

Source

pub unsafe fn mip_levels(&self) -> c_int

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().

Source

pub unsafe fn new() -> CppBox<QTextureImageData>

Constructs a new Qt3DRender::QTextureImageData.

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

C++ documentation:

Source

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

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.

Source

pub unsafe fn pixel_format(&self) -> PixelFormat

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().

Source

pub unsafe fn pixel_type(&self) -> PixelType

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().

Source

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

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().

Source

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

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().

Source

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

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().

Source

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

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().

Source

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

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().

Source

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

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().

Source

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

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

Source

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

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().

Source

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

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().

Source

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

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().

Source

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

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().

Source

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

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().

Source

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

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().

Source

pub unsafe fn target(&self) -> Target

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().

Source

pub unsafe fn width(&self) -> c_int

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§

Source§

impl CppDeletable for QTextureImageData

Source§

unsafe fn delete(&self)

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

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.