[][src]Struct qt_3d_render::QAlphaTest

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

The QAlphaTest class specify alpha reference test

C++ class: Qt3DRender::QAlphaTest.

C++ documentation:

The QAlphaTest class specify alpha reference test

As the OpenGL documentation explains; The alpha test discards a fragment conditional on the outcome of a comparison between the incoming fragment's alpha value and a constant reference value.

Methods

impl QAlphaTest[src]

pub fn slot_set_alpha_function(&self) -> Receiver<(AlphaFunction,)>[src]

Holds the alpha function used by the alpha test. Default is Never.

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

C++ documentation:

Holds the alpha function used by the alpha test. Default is Never.

Access functions:

AlphaFunction alphaFunction() const
void setAlphaFunction(AlphaFunction alphaFunction)

Notifier signal:

void alphaFunctionChanged(AlphaFunction alphaFunction)

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

Holds the reference value used by the alpha test. Default is 0.0. When set, the value is clamped between 0 and 1.

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

C++ documentation:

Holds the reference value used by the alpha test. Default is 0.0. When set, the value is clamped between 0 and 1.

Access functions:

float referenceValue() const
void setReferenceValue(float referenceValue)

Notifier signal:

void referenceValueChanged(float referenceValue)

pub fn alpha_function_changed(&self) -> Signal<(AlphaFunction,)>[src]

Holds the alpha function used by the alpha test. Default is Never.

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

C++ documentation:

Holds the alpha function used by the alpha test. Default is Never.

Access functions:

AlphaFunction alphaFunction() const
void setAlphaFunction(AlphaFunction alphaFunction)

Notifier signal:

void alphaFunctionChanged(AlphaFunction alphaFunction)

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

Holds the reference value used by the alpha test. Default is 0.0. When set, the value is clamped between 0 and 1.

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

C++ documentation:

Holds the reference value used by the alpha test. Default is 0.0. When set, the value is clamped between 0 and 1.

Access functions:

float referenceValue() const
void setReferenceValue(float referenceValue)

Notifier signal:

void referenceValueChanged(float referenceValue)

pub unsafe fn alpha_function(&self) -> AlphaFunction[src]

Holds the alpha function used by the alpha test. Default is Never.

Calls C++ function: Qt3DRender::QAlphaTest::AlphaFunction Qt3DRender::QAlphaTest::alphaFunction() const.

C++ documentation:

Holds the alpha function used by the alpha test. Default is Never.

Access functions:

AlphaFunction alphaFunction() const
void setAlphaFunction(AlphaFunction alphaFunction)

Notifier signal:

void alphaFunctionChanged(AlphaFunction alphaFunction)

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

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

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

Default constructs an instance of QAlphaTest.

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

C++ documentation:

Default constructs an instance of QAlphaTest.

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

The QAlphaTest class specify alpha reference test

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

C++ documentation:

The QAlphaTest class specify alpha reference test

As the OpenGL documentation explains; The alpha test discards a fragment conditional on the outcome of a comparison between the incoming fragment's alpha value and a constant reference value.

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

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

Holds the reference value used by the alpha test. Default is 0.0. When set, the value is clamped between 0 and 1.

Calls C++ function: float Qt3DRender::QAlphaTest::referenceValue() const.

C++ documentation:

Holds the reference value used by the alpha test. Default is 0.0. When set, the value is clamped between 0 and 1.

Access functions:

float referenceValue() const
void setReferenceValue(float referenceValue)

Notifier signal:

void referenceValueChanged(float referenceValue)

pub unsafe fn set_alpha_function(&self, alpha_function: AlphaFunction)[src]

Holds the alpha function used by the alpha test. Default is Never.

Calls C++ function: [slot] void Qt3DRender::QAlphaTest::setAlphaFunction(Qt3DRender::QAlphaTest::AlphaFunction alphaFunction).

C++ documentation:

Holds the alpha function used by the alpha test. Default is Never.

Access functions:

AlphaFunction alphaFunction() const
void setAlphaFunction(AlphaFunction alphaFunction)

Notifier signal:

void alphaFunctionChanged(AlphaFunction alphaFunction)

pub unsafe fn set_reference_value(&self, reference_value: c_float)[src]

Holds the reference value used by the alpha test. Default is 0.0. When set, the value is clamped between 0 and 1.

Calls C++ function: [slot] void Qt3DRender::QAlphaTest::setReferenceValue(float referenceValue).

C++ documentation:

Holds the reference value used by the alpha test. Default is 0.0. When set, the value is clamped between 0 and 1.

Access functions:

float referenceValue() const
void setReferenceValue(float referenceValue)

Notifier signal:

void referenceValueChanged(float referenceValue)

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::QAlphaTest::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::QAlphaTest::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(
    &self,
    arg1: Call,
    arg2: c_int,
    arg3: *mut *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(&self, arg1: *const c_char) -> *mut c_void[src]

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

Trait Implementations

impl CppDeletable for QAlphaTest[src]

unsafe fn delete(&self)[src]

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

impl Deref for QAlphaTest[src]

type Target = QRenderState

The resulting type after dereferencing.

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

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

impl DynamicCast<QAlphaTest> for QRenderState[src]

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

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

impl DynamicCast<QAlphaTest> for QNode[src]

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

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

impl DynamicCast<QAlphaTest> for QObject[src]

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

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

impl StaticDowncast<QAlphaTest> for QRenderState[src]

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

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

impl StaticDowncast<QAlphaTest> for QNode[src]

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

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

impl StaticDowncast<QAlphaTest> for QObject[src]

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

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

impl StaticUpcast<QNode> for QAlphaTest[src]

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

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

impl StaticUpcast<QObject> for QAlphaTest[src]

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

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

impl StaticUpcast<QRenderState> for QAlphaTest[src]

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

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