[][src]Struct qt_3d_render::QPolygonOffset

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

The QPolygonOffset class sets the scale and steps to calculate depth values for polygon offsets.

C++ class: Qt3DRender::QPolygonOffset.

C++ documentation:

The QPolygonOffset class sets the scale and steps to calculate depth values for polygon offsets.

A QPolygonOffset class adds an offset to the fragment depth value prior to depth test and depth write. The offset can be used to avoid z-fighting when rendering polygons with very close depth values such as decals.

Methods

impl QPolygonOffset[src]

pub fn slot_set_scale_factor(&self) -> Receiver<(c_float,)>[src]

Holds the scale factor used to create a variable depth offset for each polygon. Default value is 0.

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

C++ documentation:

Holds the scale factor used to create a variable depth offset for each polygon. Default value is 0.

Access functions:

float scaleFactor() const
void setScaleFactor(float scaleFactor)

Notifier signal:

void scaleFactorChanged(float scaleFactor)

pub fn slot_set_depth_steps(&self) -> Receiver<(c_float,)>[src]

Holds the units that create constant depth offsets. Default value is 0.

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

C++ documentation:

Holds the units that create constant depth offsets. Default value is 0.

Access functions:

float depthSteps() const
void setDepthSteps(float depthSteps)

Notifier signal:

void depthStepsChanged(float depthSteps)

pub fn scale_factor_changed(&self) -> Signal<(c_float,)>[src]

Holds the scale factor used to create a variable depth offset for each polygon. Default value is 0.

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

C++ documentation:

Holds the scale factor used to create a variable depth offset for each polygon. Default value is 0.

Access functions:

float scaleFactor() const
void setScaleFactor(float scaleFactor)

Notifier signal:

void scaleFactorChanged(float scaleFactor)

pub fn depth_steps_changed(&self) -> Signal<(c_float,)>[src]

Holds the units that create constant depth offsets. Default value is 0.

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

C++ documentation:

Holds the units that create constant depth offsets. Default value is 0.

Access functions:

float depthSteps() const
void setDepthSteps(float depthSteps)

Notifier signal:

void depthStepsChanged(float depthSteps)

pub unsafe fn depth_steps(&self) -> c_float[src]

Holds the units that create constant depth offsets. Default value is 0.

Calls C++ function: float Qt3DRender::QPolygonOffset::depthSteps() const.

C++ documentation:

Holds the units that create constant depth offsets. Default value is 0.

Access functions:

float depthSteps() const
void setDepthSteps(float depthSteps)

Notifier signal:

void depthStepsChanged(float depthSteps)

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

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

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

Default constructs an instance of QPolygonOffset.

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

C++ documentation:

Default constructs an instance of QPolygonOffset.

pub unsafe fn new_0a() -> CppBox<QPolygonOffset>[src]

The QPolygonOffset class sets the scale and steps to calculate depth values for polygon offsets.

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

C++ documentation:

The QPolygonOffset class sets the scale and steps to calculate depth values for polygon offsets.

A QPolygonOffset class adds an offset to the fragment depth value prior to depth test and depth write. The offset can be used to avoid z-fighting when rendering polygons with very close depth values such as decals.

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

pub unsafe fn scale_factor(&self) -> c_float[src]

Holds the scale factor used to create a variable depth offset for each polygon. Default value is 0.

Calls C++ function: float Qt3DRender::QPolygonOffset::scaleFactor() const.

C++ documentation:

Holds the scale factor used to create a variable depth offset for each polygon. Default value is 0.

Access functions:

float scaleFactor() const
void setScaleFactor(float scaleFactor)

Notifier signal:

void scaleFactorChanged(float scaleFactor)

pub unsafe fn set_depth_steps(&mut self, depth_steps: c_float)[src]

Holds the units that create constant depth offsets. Default value is 0.

Calls C++ function: [slot] void Qt3DRender::QPolygonOffset::setDepthSteps(float depthSteps).

C++ documentation:

Holds the units that create constant depth offsets. Default value is 0.

Access functions:

float depthSteps() const
void setDepthSteps(float depthSteps)

Notifier signal:

void depthStepsChanged(float depthSteps)

pub unsafe fn set_scale_factor(&mut self, scale_factor: c_float)[src]

Holds the scale factor used to create a variable depth offset for each polygon. Default value is 0.

Calls C++ function: [slot] void Qt3DRender::QPolygonOffset::setScaleFactor(float scaleFactor).

C++ documentation:

Holds the scale factor used to create a variable depth offset for each polygon. Default value is 0.

Access functions:

float scaleFactor() const
void setScaleFactor(float scaleFactor)

Notifier signal:

void scaleFactorChanged(float scaleFactor)

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::QPolygonOffset::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::QPolygonOffset::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 Deref for QPolygonOffset[src]

type Target = QRenderState

The resulting type after dereferencing.

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

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

impl DerefMut for QPolygonOffset[src]

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

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

impl StaticUpcast<QRenderState> for QPolygonOffset[src]

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

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

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

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

impl StaticUpcast<QNode> for QPolygonOffset[src]

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

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

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

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

impl StaticUpcast<QObject> for QPolygonOffset[src]

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

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

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

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

impl StaticDowncast<QPolygonOffset> for QRenderState[src]

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

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

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

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

impl StaticDowncast<QPolygonOffset> for QNode[src]

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

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

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

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

impl StaticDowncast<QPolygonOffset> for QObject[src]

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

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

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

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

impl DynamicCast<QPolygonOffset> for QRenderState[src]

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

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

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

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

impl DynamicCast<QPolygonOffset> for QNode[src]

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

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

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

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

impl DynamicCast<QPolygonOffset> for QObject[src]

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

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

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

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

impl CppDeletable for QPolygonOffset[src]

unsafe fn delete(&mut self)[src]

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

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]