[][src]Struct qt_3d_render::QPaintedTextureImage

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

A QAbstractTextureImage that can be written through a QPainter.

C++ class: Qt3DRender::QPaintedTextureImage.

C++ documentation:

A QAbstractTextureImage that can be written through a QPainter.

A QPaintedTextureImage provides a way to specify a texture image (and thus an OpenGL texture) through a QPainter. The width and height of the texture image can be specified through the width and height or size properties.

A QPaintedTextureImage must be subclassed and the virtual paint() function implemented. Each time update() is called on the QPaintedTextureImage, the paint() function is invoked and the resulting image is uploaded.

The QPaintedTextureImage must be attached to some QAbstractTexture.

Methods

impl QPaintedTextureImage[src]

pub fn slot_set_width(&self) -> Receiver<(c_int,)>[src]

Sets the width (w) of the texture image. Triggers an update, if the size changes.

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

C++ documentation:

Sets the width (w) of the texture image. Triggers an update, if the size changes.

Note: Setter function for property width.

See also width().

pub fn slot_set_height(&self) -> Receiver<(c_int,)>[src]

Sets the height (h) of the texture image. Triggers an update, if the size changes.

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

C++ documentation:

Sets the height (h) of the texture image. Triggers an update, if the size changes.

Note: Setter function for property height.

See also height().

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

Sets the width and height of the texture image. Triggers an update, if the size changes.

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

C++ documentation:

Sets the width and height of the texture image. Triggers an update, if the size changes.

Note: Setter function for property size.

See also size().

pub fn width_changed(&self) -> Signal<(c_int,)>[src]

This property holds the width of the texture image. The width must be greater than or equal to 1.

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

C++ documentation:

This property holds the width of the texture image. The width must be greater than or equal to 1.

Access functions:

int width() const
void setWidth(int w)

Notifier signal:

void widthChanged(int w)

pub fn height_changed(&self) -> Signal<(c_int,)>[src]

This property holds the height of the texture image. The height must be greater than or equal to 1.

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

C++ documentation:

This property holds the height of the texture image. The height must be greater than or equal to 1.

Access functions:

int height() const
void setHeight(int h)

Notifier signal:

void heightChanged(int w)

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

This property holds the size of the texture image.

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

C++ documentation:

This property holds the size of the texture image.

Access functions:

QSize size() const
void setSize(QSize size)

Notifier signal:

void sizeChanged(QSize size)

See also height and width.

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

This property holds the height of the texture image. The height must be greater than or equal to 1.

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

C++ documentation:

This property holds the height of the texture image. The height must be greater than or equal to 1.

Access functions:

int height() const
void setHeight(int h)

Notifier signal:

void heightChanged(int w)

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

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

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

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

Sets the height (h) of the texture image. Triggers an update, if the size changes.

Calls C++ function: [slot] void Qt3DRender::QPaintedTextureImage::setHeight(int h).

C++ documentation:

Sets the height (h) of the texture image. Triggers an update, if the size changes.

Note: Setter function for property height.

See also height().

pub unsafe fn set_size(&self, size: impl CastInto<Ref<QSize>>)[src]

Sets the width and height of the texture image. Triggers an update, if the size changes.

Calls C++ function: [slot] void Qt3DRender::QPaintedTextureImage::setSize(QSize size).

C++ documentation:

Sets the width and height of the texture image. Triggers an update, if the size changes.

Note: Setter function for property size.

See also size().

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

Sets the width (w) of the texture image. Triggers an update, if the size changes.

Calls C++ function: [slot] void Qt3DRender::QPaintedTextureImage::setWidth(int w).

C++ documentation:

Sets the width (w) of the texture image. Triggers an update, if the size changes.

Note: Setter function for property width.

See also width().

pub unsafe fn size(&self) -> CppBox<QSize>[src]

This property holds the size of the texture image.

Calls C++ function: QSize Qt3DRender::QPaintedTextureImage::size() const.

C++ documentation:

This property holds the size of the texture image.

Access functions:

QSize size() const
void setSize(QSize size)

Notifier signal:

void sizeChanged(QSize size)

See also height and width.

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

Returns a reference to the staticMetaObject field.

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

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

pub unsafe fn update_1a(&self, rect: impl CastInto<Ref<QRect>>)[src]

Schedules the painted texture's paint() function to be called, which in turn uploads the new image to the GPU. Parameter rect is currently unused.

Calls C++ function: void Qt3DRender::QPaintedTextureImage::update(const QRect& rect = …).

C++ documentation:

Schedules the painted texture's paint() function to be called, which in turn uploads the new image to the GPU. Parameter rect is currently unused.

pub unsafe fn update_0a(&self)[src]

Schedules the painted texture's paint() function to be called, which in turn uploads the new image to the GPU. Parameter rect is currently unused.

Calls C++ function: void Qt3DRender::QPaintedTextureImage::update().

C++ documentation:

Schedules the painted texture's paint() function to be called, which in turn uploads the new image to the GPU. Parameter rect is currently unused.

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

This property holds the width of the texture image. The width must be greater than or equal to 1.

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

C++ documentation:

This property holds the width of the texture image. The width must be greater than or equal to 1.

Access functions:

int width() const
void setWidth(int w)

Notifier signal:

void widthChanged(int w)

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 QPaintedTextureImage[src]

unsafe fn delete(&self)[src]

Destroys the instance of QPaintedTextureImage.

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

C++ documentation:

Destroys the instance of QPaintedTextureImage.

impl Deref for QPaintedTextureImage[src]

type Target = QAbstractTextureImage

The resulting type after dereferencing.

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

Calls C++ function: Qt3DRender::QAbstractTextureImage* static_cast<Qt3DRender::QAbstractTextureImage*>(Qt3DRender::QPaintedTextureImage* ptr).

impl DynamicCast<QPaintedTextureImage> for QAbstractTextureImage[src]

unsafe fn dynamic_cast(
    ptr: Ptr<QAbstractTextureImage>
) -> Ptr<QPaintedTextureImage>
[src]

Calls C++ function: Qt3DRender::QPaintedTextureImage* dynamic_cast<Qt3DRender::QPaintedTextureImage*>(Qt3DRender::QAbstractTextureImage* ptr).

impl DynamicCast<QPaintedTextureImage> for QNode[src]

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

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

impl DynamicCast<QPaintedTextureImage> for QObject[src]

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

Calls C++ function: Qt3DRender::QPaintedTextureImage* dynamic_cast<Qt3DRender::QPaintedTextureImage*>(QObject* ptr).

impl Size for QPaintedTextureImage[src]

unsafe fn size(&self) -> usize[src]

This property holds the size of the texture image.

Calls C++ function: QSize Qt3DRender::QPaintedTextureImage::size() const.

C++ documentation:

This property holds the size of the texture image.

Access functions:

QSize size() const
void setSize(QSize size)

Notifier signal:

void sizeChanged(QSize size)

See also height and width.

impl StaticDowncast<QPaintedTextureImage> for QAbstractTextureImage[src]

unsafe fn static_downcast(
    ptr: Ptr<QAbstractTextureImage>
) -> Ptr<QPaintedTextureImage>
[src]

Calls C++ function: Qt3DRender::QPaintedTextureImage* static_cast<Qt3DRender::QPaintedTextureImage*>(Qt3DRender::QAbstractTextureImage* ptr).

impl StaticDowncast<QPaintedTextureImage> for QNode[src]

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

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

impl StaticDowncast<QPaintedTextureImage> for QObject[src]

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

Calls C++ function: Qt3DRender::QPaintedTextureImage* static_cast<Qt3DRender::QPaintedTextureImage*>(QObject* ptr).

impl StaticUpcast<QAbstractTextureImage> for QPaintedTextureImage[src]

unsafe fn static_upcast(
    ptr: Ptr<QPaintedTextureImage>
) -> Ptr<QAbstractTextureImage>
[src]

Calls C++ function: Qt3DRender::QAbstractTextureImage* static_cast<Qt3DRender::QAbstractTextureImage*>(Qt3DRender::QPaintedTextureImage* ptr).

impl StaticUpcast<QNode> for QPaintedTextureImage[src]

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

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

impl StaticUpcast<QObject> for QPaintedTextureImage[src]

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

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