[][src]Struct qt_3d_render::QDithering

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

Enable dithering

C++ class: Qt3DRender::QDithering.

C++ documentation:

Enable dithering

A Qt3DRender::QDithering class enables dithering. Dithering adds noise to the color values to randomize quantization error in order to prevent large scale patterns in the final image, such as banding. Dithering is most useful when rendering to a surface with low color bit depth, such as RGB565 or RGBA4444.

Methods

impl QDithering[src]

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

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

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

Default constructs an instance of QDithering.

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

C++ documentation:

Default constructs an instance of QDithering.

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

Enable dithering

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

C++ documentation:

Enable dithering

A Qt3DRender::QDithering class enables dithering. Dithering adds noise to the color values to randomize quantization error in order to prevent large scale patterns in the final image, such as banding. Dithering is most useful when rendering to a surface with low color bit depth, such as RGB565 or RGBA4444.

pub unsafe fn qt_metacall(
    &mut self,
    arg1: Call,
    arg2: c_int,
    arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
[src]

Calls C++ function: virtual int Qt3DRender::QDithering::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]

Calls C++ function: virtual void* Qt3DRender::QDithering::qt_metacast(const char* arg1).

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]

Calls C++ function: static QString Qt3DRender::QDithering::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]

Calls C++ function: static QString Qt3DRender::QDithering::trUtf8(const char* s, const char* c, int n).

Methods from Deref<Target = QRenderState>

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

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

pub unsafe fn qt_metacall(
    &mut self,
    arg1: Call,
    arg2: c_int,
    arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
[src]

Calls C++ function: virtual int Qt3DRender::QRenderState::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]

Calls C++ function: virtual void* Qt3DRender::QRenderState::qt_metacast(const char* arg1).

Trait Implementations

impl CppDeletable for QDithering[src]

unsafe fn delete(&mut self)[src]

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

impl Deref for QDithering[src]

type Target = QRenderState

The resulting type after dereferencing.

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

Calls C++ function: Qt3DRender::QRenderState* static_cast<Qt3DRender::QRenderState*>(Qt3DRender::QDithering* ptr).

impl DerefMut for QDithering[src]

fn deref_mut(&mut self) -> &mut QRenderState[src]

Calls C++ function: Qt3DRender::QRenderState* static_cast<Qt3DRender::QRenderState*>(Qt3DRender::QDithering* ptr).

impl DynamicCast<QDithering> for QRenderState[src]

unsafe fn dynamic_cast(ptr: Ptr<QRenderState>) -> Ptr<QDithering>[src]

Calls C++ function: Qt3DRender::QDithering* dynamic_cast<Qt3DRender::QDithering*>(Qt3DRender::QRenderState* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QRenderState>) -> MutPtr<QDithering>[src]

Calls C++ function: Qt3DRender::QDithering* dynamic_cast<Qt3DRender::QDithering*>(Qt3DRender::QRenderState* ptr).

impl DynamicCast<QDithering> for QNode[src]

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

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

unsafe fn dynamic_cast_mut(ptr: MutPtr<QNode>) -> MutPtr<QDithering>[src]

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

impl DynamicCast<QDithering> for QObject[src]

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

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

unsafe fn dynamic_cast_mut(ptr: MutPtr<QObject>) -> MutPtr<QDithering>[src]

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

impl StaticDowncast<QDithering> for QRenderState[src]

unsafe fn static_downcast(ptr: Ptr<QRenderState>) -> Ptr<QDithering>[src]

Calls C++ function: Qt3DRender::QDithering* static_cast<Qt3DRender::QDithering*>(Qt3DRender::QRenderState* ptr).

unsafe fn static_downcast_mut(ptr: MutPtr<QRenderState>) -> MutPtr<QDithering>[src]

Calls C++ function: Qt3DRender::QDithering* static_cast<Qt3DRender::QDithering*>(Qt3DRender::QRenderState* ptr).

impl StaticDowncast<QDithering> for QNode[src]

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

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

unsafe fn static_downcast_mut(ptr: MutPtr<QNode>) -> MutPtr<QDithering>[src]

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

impl StaticDowncast<QDithering> for QObject[src]

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

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

unsafe fn static_downcast_mut(ptr: MutPtr<QObject>) -> MutPtr<QDithering>[src]

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

impl StaticUpcast<QNode> for QDithering[src]

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

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

unsafe fn static_upcast_mut(ptr: MutPtr<QDithering>) -> MutPtr<QNode>[src]

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

impl StaticUpcast<QObject> for QDithering[src]

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

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

unsafe fn static_upcast_mut(ptr: MutPtr<QDithering>) -> MutPtr<QObject>[src]

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

impl StaticUpcast<QRenderState> for QDithering[src]

unsafe fn static_upcast(ptr: Ptr<QDithering>) -> Ptr<QRenderState>[src]

Calls C++ function: Qt3DRender::QRenderState* static_cast<Qt3DRender::QRenderState*>(Qt3DRender::QDithering* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QDithering>) -> MutPtr<QRenderState>[src]

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