[−][src]Struct qt_3d_render::QAbstractTextureImage
Encapsulates the necessary information to create an OpenGL texture image.
C++ class: Qt3DRender::QAbstractTextureImage
.
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
.
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
.
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
.
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
.
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
.
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
.
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
.
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
.
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
.
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(
&mut self,
arg1: Call,
arg2: c_int,
arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
[src]
&mut self,
arg1: Call,
arg2: c_int,
arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
Calls C++ function: virtual int Qt3DRender::QAbstractTextureImage::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)
.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
[src]
&mut self,
arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
Calls C++ function: virtual void* Qt3DRender::QAbstractTextureImage::qt_metacast(const char* arg1)
.
pub unsafe fn set_face(&mut self, face: CubeMapFace)
[src]
Sets the texture image face to face. face
Calls C++ function: [slot] void Qt3DRender::QAbstractTextureImage::setFace(Qt3DRender::QAbstractTexture::CubeMapFace face)
.
pub unsafe fn set_layer(&mut self, layer: c_int)
[src]
Sets the layer of a texture to layer. layer
Calls C++ function: [slot] void Qt3DRender::QAbstractTextureImage::setLayer(int layer)
.
pub unsafe fn set_mip_level(&mut 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)
.
pub unsafe fn static_meta_object() -> Ref<QMetaObject>
[src]
Returns a reference to the staticMetaObject
field.
pub unsafe fn tr(
s: impl CastInto<Ptr<c_char>>,
c: impl CastInto<Ptr<c_char>>,
n: c_int
) -> CppBox<QString>
[src]
s: impl CastInto<Ptr<c_char>>,
c: impl CastInto<Ptr<c_char>>,
n: c_int
) -> CppBox<QString>
Calls C++ function: static QString Qt3DRender::QAbstractTextureImage::tr(const char* s, const char* c, int n)
.
pub unsafe fn tr_utf8(
s: impl CastInto<Ptr<c_char>>,
c: impl CastInto<Ptr<c_char>>,
n: c_int
) -> CppBox<QString>
[src]
s: impl CastInto<Ptr<c_char>>,
c: impl CastInto<Ptr<c_char>>,
n: c_int
) -> CppBox<QString>
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(&mut 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 DerefMut for QAbstractTextureImage
[src]
fn deref_mut(&mut self) -> &mut 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)
.
unsafe fn dynamic_cast_mut(ptr: MutPtr<QNode>) -> MutPtr<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)
.
unsafe fn dynamic_cast_mut(
ptr: MutPtr<QObject>
) -> MutPtr<QAbstractTextureImage>
[src]
ptr: MutPtr<QObject>
) -> MutPtr<QAbstractTextureImage>
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]
ptr: Ptr<QAbstractTextureImage>
) -> Ptr<QPaintedTextureImage>
Calls C++ function: Qt3DRender::QPaintedTextureImage* dynamic_cast<Qt3DRender::QPaintedTextureImage*>(Qt3DRender::QAbstractTextureImage* ptr)
.
unsafe fn dynamic_cast_mut(
ptr: MutPtr<QAbstractTextureImage>
) -> MutPtr<QPaintedTextureImage>
[src]
ptr: MutPtr<QAbstractTextureImage>
) -> MutPtr<QPaintedTextureImage>
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)
.
unsafe fn dynamic_cast_mut(
ptr: MutPtr<QAbstractTextureImage>
) -> MutPtr<QTextureImage>
[src]
ptr: MutPtr<QAbstractTextureImage>
) -> MutPtr<QTextureImage>
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)
.
unsafe fn static_downcast_mut(
ptr: MutPtr<QNode>
) -> MutPtr<QAbstractTextureImage>
[src]
ptr: MutPtr<QNode>
) -> MutPtr<QAbstractTextureImage>
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)
.
unsafe fn static_downcast_mut(
ptr: MutPtr<QObject>
) -> MutPtr<QAbstractTextureImage>
[src]
ptr: MutPtr<QObject>
) -> MutPtr<QAbstractTextureImage>
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]
ptr: Ptr<QAbstractTextureImage>
) -> Ptr<QPaintedTextureImage>
Calls C++ function: Qt3DRender::QPaintedTextureImage* static_cast<Qt3DRender::QPaintedTextureImage*>(Qt3DRender::QAbstractTextureImage* ptr)
.
unsafe fn static_downcast_mut(
ptr: MutPtr<QAbstractTextureImage>
) -> MutPtr<QPaintedTextureImage>
[src]
ptr: MutPtr<QAbstractTextureImage>
) -> MutPtr<QPaintedTextureImage>
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)
.
unsafe fn static_downcast_mut(
ptr: MutPtr<QAbstractTextureImage>
) -> MutPtr<QTextureImage>
[src]
ptr: MutPtr<QAbstractTextureImage>
) -> MutPtr<QTextureImage>
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]
ptr: Ptr<QPaintedTextureImage>
) -> Ptr<QAbstractTextureImage>
Calls C++ function: Qt3DRender::QAbstractTextureImage* static_cast<Qt3DRender::QAbstractTextureImage*>(Qt3DRender::QPaintedTextureImage* ptr)
.
unsafe fn static_upcast_mut(
ptr: MutPtr<QPaintedTextureImage>
) -> MutPtr<QAbstractTextureImage>
[src]
ptr: MutPtr<QPaintedTextureImage>
) -> MutPtr<QAbstractTextureImage>
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)
.
unsafe fn static_upcast_mut(
ptr: MutPtr<QTextureImage>
) -> MutPtr<QAbstractTextureImage>
[src]
ptr: MutPtr<QTextureImage>
) -> MutPtr<QAbstractTextureImage>
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)
.
unsafe fn static_upcast_mut(ptr: MutPtr<QAbstractTextureImage>) -> MutPtr<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)
.
unsafe fn static_upcast_mut(
ptr: MutPtr<QAbstractTextureImage>
) -> MutPtr<QObject>
[src]
ptr: MutPtr<QAbstractTextureImage>
) -> MutPtr<QObject>
Calls C++ function: QObject* static_cast<QObject*>(Qt3DRender::QAbstractTextureImage* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for QAbstractTextureImage
impl Send for QAbstractTextureImage
impl Sync for QAbstractTextureImage
impl Unpin for QAbstractTextureImage
impl UnwindSafe for QAbstractTextureImage
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,