[][src]Struct qt_3d_render::QTextureImage

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

Encapsulates the necessary information to create an OpenGL texture image from an image source.

C++ class: Qt3DRender::QTextureImage.

C++ documentation:

Encapsulates the necessary information to create an OpenGL texture image from an image source.

It contains the necessary information mipmap level, layer, cube face and source URL to load at the proper place data into an OpenGL texture.

Methods

impl QTextureImage[src]

pub fn slot_set_source(&self) -> Receiver<(*const QUrl,)>[src]

Sets the source url of the texture image to source.

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

C++ documentation:

Sets the source url of the texture image to source.

Note: This internally triggers a call to update the data generator.

Note: Setter function for property source.

See also source().

pub fn slot_set_mirrored(&self) -> Receiver<(bool,)>[src]

Sets mirroring to mirrored.

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

C++ documentation:

Sets mirroring to mirrored.

Note: This internally triggers a call to update the data generator.

Note: Setter function for property mirrored.

See also isMirrored().

pub fn source_changed(&self) -> Signal<(*const QUrl,)>[src]

This property holds the source url from which data for the texture image will be loaded.

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

C++ documentation:

This property holds the source url from which data for the texture image will be loaded.

Access functions:

QUrl source() const
void setSource(const QUrl &source)

Notifier signal:

void sourceChanged(const QUrl &source)

pub fn status_changed(&self) -> Signal<(Status,)>[src]

This property holds the status of the texture image loading.

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

C++ documentation:

This property holds the status of the texture image loading.

Access functions:

Status status() const

Notifier signal:

void statusChanged(Status status)

pub fn mirrored_changed(&self) -> Signal<(bool,)>[src]

This property specifies whether the image should be mirrored when loaded. This is a convenience to avoid having to manipulate images to match the origin of the texture coordinates used by the rendering API. By default this property is set to true. This has no effect when using compressed texture formats.

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

C++ documentation:

This property specifies whether the image should be mirrored when loaded. This is a convenience to avoid having to manipulate images to match the origin of the texture coordinates used by the rendering API. By default this property is set to true. This has no effect when using compressed texture formats.

Note: OpenGL specifies the origin of texture coordinates from the lower left hand corner whereas DirectX uses the the upper left hand corner.

Note: When using cube map texture you'll probably want mirroring disabled as the cube map sampler takes a direction rather than regular texture coordinates.

Access functions:

bool isMirrored() const
void setMirrored(bool mirrored)

Notifier signal:

void mirroredChanged(bool mirrored)

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

Returns whether mirroring is enabled or not.

Calls C++ function: bool Qt3DRender::QTextureImage::isMirrored() const.

C++ documentation:

Returns whether mirroring is enabled or not.

Note: Getter function for property mirrored.

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

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

pub unsafe fn new_1a(parent: impl CastInto<Ptr<QNode>>) -> QBox<QTextureImage>[src]

Default constructs an instance of QTextureImage.

Calls C++ function: [constructor] void Qt3DRender::QTextureImage::QTextureImage(Qt3DCore::QNode* parent = …).

C++ documentation:

Default constructs an instance of QTextureImage.

pub unsafe fn new_0a() -> QBox<QTextureImage>[src]

Encapsulates the necessary information to create an OpenGL texture image from an image source.

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

C++ documentation:

Encapsulates the necessary information to create an OpenGL texture image from an image source.

It contains the necessary information mipmap level, layer, cube face and source URL to load at the proper place data into an OpenGL texture.

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::QTextureImage::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::QTextureImage::qt_metacast(const char* arg1).

pub unsafe fn set_mirrored(&self, mirrored: bool)[src]

Sets mirroring to mirrored.

Calls C++ function: [slot] void Qt3DRender::QTextureImage::setMirrored(bool mirrored).

C++ documentation:

Sets mirroring to mirrored.

Note: This internally triggers a call to update the data generator.

Note: Setter function for property mirrored.

See also isMirrored().

pub unsafe fn set_source(&self, source: impl CastInto<Ref<QUrl>>)[src]

Sets the source url of the texture image to source.

Calls C++ function: [slot] void Qt3DRender::QTextureImage::setSource(const QUrl& source).

C++ documentation:

Sets the source url of the texture image to source.

Note: This internally triggers a call to update the data generator.

Note: Setter function for property source.

See also source().

pub unsafe fn source(&self) -> CppBox<QUrl>[src]

This property holds the source url from which data for the texture image will be loaded.

Calls C++ function: QUrl Qt3DRender::QTextureImage::source() const.

C++ documentation:

This property holds the source url from which data for the texture image will be loaded.

Access functions:

QUrl source() const
void setSource(const QUrl &source)

Notifier signal:

void sourceChanged(const QUrl &source)

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

Returns a reference to the staticMetaObject field.

pub unsafe fn status(&self) -> Status[src]

This property holds the status of the texture image loading.

Calls C++ function: Qt3DRender::QTextureImage::Status Qt3DRender::QTextureImage::status() const.

C++ documentation:

This property holds the status of the texture image loading.

Access functions:

Status status() const

Notifier signal:

void statusChanged(Status status)

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

Calls C++ function: static QString Qt3DRender::QTextureImage::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::QTextureImage::trUtf8(const char* s, const char* c, int n).

Methods from Deref<Target = QAbstractTextureImage>

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

Trait Implementations

impl CppDeletable for QTextureImage[src]

unsafe fn delete(&self)[src]

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

impl Deref for QTextureImage[src]

type Target = QAbstractTextureImage

The resulting type after dereferencing.

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

Calls C++ function: Qt3DRender::QAbstractTextureImage* static_cast<Qt3DRender::QAbstractTextureImage*>(Qt3DRender::QTextureImage* 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 DynamicCast<QTextureImage> for QNode[src]

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

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

impl DynamicCast<QTextureImage> for QObject[src]

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

Calls C++ function: Qt3DRender::QTextureImage* dynamic_cast<Qt3DRender::QTextureImage*>(QObject* 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 StaticDowncast<QTextureImage> for QNode[src]

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

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

impl StaticDowncast<QTextureImage> for QObject[src]

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

Calls C++ function: Qt3DRender::QTextureImage* static_cast<Qt3DRender::QTextureImage*>(QObject* 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 QTextureImage[src]

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

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

impl StaticUpcast<QObject> for QTextureImage[src]

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

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