Struct QTextureDataUpdate

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

The actual data content is contained in a QTextureImageDataPtr member. Additional members allow to specify the x, y, z offset of the content update as well as the eventual layer, mipLevel and face.

C++ class: Qt3DRender::QTextureDataUpdate.

C++ documentation:

The actual data content is contained in a QTextureImageDataPtr member. Additional members allow to specify the x, y, z offset of the content update as well as the eventual layer, mipLevel and face.

Implementations§

Source§

impl QTextureDataUpdate

Source

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

Available on cpp_lib_version="5.14.0" only.

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

Source

pub unsafe fn face(&self) -> CubeMapFace

Available on cpp_lib_version="5.14.0" only.

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

Source

pub unsafe fn layer(&self) -> c_int

Available on cpp_lib_version="5.14.0" only.

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

Source

pub unsafe fn mip_level(&self) -> c_int

Available on cpp_lib_version="5.14.0" only.

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

Source

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

Available on cpp_lib_version="5.14.0" only.

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

Source

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

Available on cpp_lib_version="5.14.0" only.

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

Source

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

Available on cpp_lib_version="5.14.0" only.

Calls C++ function: void Qt3DRender::QTextureDataUpdate::setFace(Qt3DRender::QAbstractTexture::CubeMapFace face).

Source

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

Available on cpp_lib_version="5.14.0" only.

Calls C++ function: void Qt3DRender::QTextureDataUpdate::setLayer(int layer).

Source

pub unsafe fn set_mip_level(&self, mip_level: c_int)

Available on cpp_lib_version="5.14.0" only.

Calls C++ function: void Qt3DRender::QTextureDataUpdate::setMipLevel(int mipLevel).

Source

pub unsafe fn set_x(&self, x: c_int)

Available on cpp_lib_version="5.14.0" only.

Calls C++ function: void Qt3DRender::QTextureDataUpdate::setX(int x).

Source

pub unsafe fn set_y(&self, y: c_int)

Available on cpp_lib_version="5.14.0" only.

Calls C++ function: void Qt3DRender::QTextureDataUpdate::setY(int y).

Source

pub unsafe fn set_z(&self, z: c_int)

Available on cpp_lib_version="5.14.0" only.

Calls C++ function: void Qt3DRender::QTextureDataUpdate::setZ(int z).

Source

pub unsafe fn swap(&self, other: impl CastInto<Ref<QTextureDataUpdate>>)

Available on cpp_lib_version="5.14.0" only.

Calls C++ function: void Qt3DRender::QTextureDataUpdate::swap(Qt3DRender::QTextureDataUpdate& other).

Source

pub unsafe fn x(&self) -> c_int

Available on cpp_lib_version="5.14.0" only.

Calls C++ function: int Qt3DRender::QTextureDataUpdate::x() const.

Source

pub unsafe fn y(&self) -> c_int

Available on cpp_lib_version="5.14.0" only.

Calls C++ function: int Qt3DRender::QTextureDataUpdate::y() const.

Source

pub unsafe fn z(&self) -> c_int

Available on cpp_lib_version="5.14.0" only.

Calls C++ function: int Qt3DRender::QTextureDataUpdate::z() const.

Trait Implementations§

Source§

impl CppDeletable for QTextureDataUpdate

Available on cpp_lib_version="5.14.0" only.
Source§

unsafe fn delete(&self)

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

Source§

impl PartialEq<Ref<QTextureDataUpdate>> for QTextureDataUpdate

Available on cpp_lib_version="5.14.0" only.
Source§

fn eq(&self, rhs: &Ref<QTextureDataUpdate>) -> bool

Calls C++ function: bool Qt3DRender::operator==(const Qt3DRender::QTextureDataUpdate& lhs, const Qt3DRender::QTextureDataUpdate& rhs).

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.

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.