[−][src]Struct qt_3d_render::QPaintedTextureImage
A QAbstractTextureImage that can be written through a QPainter.
C++ class: Qt3DRender::QPaintedTextureImage
.
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
.
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
.
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
.
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
.
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
.
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
.
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
.
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]
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
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)
.
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)
.
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)
.
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
.
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]
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
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]
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
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 = …)
.
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()
.
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
.
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
.
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(
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
[src]
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *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(&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)
.
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)
.
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)
.
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()
.
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]
ptr: Ptr<QAbstractTextureImage>
) -> Ptr<QPaintedTextureImage>
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
.
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)
.
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]
ptr: Ptr<QPaintedTextureImage>
) -> Ptr<QAbstractTextureImage>
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
impl RefUnwindSafe for QPaintedTextureImage
impl Send for QPaintedTextureImage
impl Sync for QPaintedTextureImage
impl Unpin for QPaintedTextureImage
impl UnwindSafe for QPaintedTextureImage
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]
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>,