[][src]Struct qt_3d_render::QStencilMask

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

The QStencilMask class controls the front and back writing of individual bits in the stencil planes.

C++ class: Qt3DRender::QStencilMask.

C++ documentation:

The QStencilMask class controls the front and back writing of individual bits in the stencil planes.

A Qt3DRender::QStencilMask class specifies a write mask for the stencil values after the stencil test. Mask can be specified separately for the front-facing and back-facing polygons. The fragment stencil value is and'd with the mask before it is written to the stencil buffer.

Methods

impl QStencilMask[src]

pub fn slot_set_front_output_mask(&self) -> Receiver<(c_uint,)>[src]

Holds the write mask for the fragment stencil values for front-facing polygons.

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

C++ documentation:

Holds the write mask for the fragment stencil values for front-facing polygons.

Access functions:

uint frontOutputMask() const
void setFrontOutputMask(uint frontOutputMask)

Notifier signal:

void frontOutputMaskChanged(uint frontOutputMask)

pub fn slot_set_back_output_mask(&self) -> Receiver<(c_uint,)>[src]

Holds the write mask for the fragment stencil values for back-facing polygons.

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

C++ documentation:

Holds the write mask for the fragment stencil values for back-facing polygons.

Access functions:

uint backOutputMask() const
void setBackOutputMask(uint backOutputMask)

Notifier signal:

void backOutputMaskChanged(uint backOutputMask)

pub fn front_output_mask_changed(&self) -> Signal<(c_uint,)>[src]

Holds the write mask for the fragment stencil values for front-facing polygons.

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

C++ documentation:

Holds the write mask for the fragment stencil values for front-facing polygons.

Access functions:

uint frontOutputMask() const
void setFrontOutputMask(uint frontOutputMask)

Notifier signal:

void frontOutputMaskChanged(uint frontOutputMask)

pub fn back_output_mask_changed(&self) -> Signal<(c_uint,)>[src]

Holds the write mask for the fragment stencil values for back-facing polygons.

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

C++ documentation:

Holds the write mask for the fragment stencil values for back-facing polygons.

Access functions:

uint backOutputMask() const
void setBackOutputMask(uint backOutputMask)

Notifier signal:

void backOutputMaskChanged(uint backOutputMask)

pub unsafe fn back_output_mask(&self) -> c_uint[src]

Holds the write mask for the fragment stencil values for back-facing polygons.

Calls C++ function: unsigned int Qt3DRender::QStencilMask::backOutputMask() const.

C++ documentation:

Holds the write mask for the fragment stencil values for back-facing polygons.

Access functions:

uint backOutputMask() const
void setBackOutputMask(uint backOutputMask)

Notifier signal:

void backOutputMaskChanged(uint backOutputMask)

pub unsafe fn front_output_mask(&self) -> c_uint[src]

Holds the write mask for the fragment stencil values for front-facing polygons.

Calls C++ function: unsigned int Qt3DRender::QStencilMask::frontOutputMask() const.

C++ documentation:

Holds the write mask for the fragment stencil values for front-facing polygons.

Access functions:

uint frontOutputMask() const
void setFrontOutputMask(uint frontOutputMask)

Notifier signal:

void frontOutputMaskChanged(uint frontOutputMask)

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

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

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

Default constructs an instance of QStencilMask.

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

C++ documentation:

Default constructs an instance of QStencilMask.

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

The QStencilMask class controls the front and back writing of individual bits in the stencil planes.

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

C++ documentation:

The QStencilMask class controls the front and back writing of individual bits in the stencil planes.

A Qt3DRender::QStencilMask class specifies a write mask for the stencil values after the stencil test. Mask can be specified separately for the front-facing and back-facing polygons. The fragment stencil value is and'd with the mask before it is written to the stencil buffer.

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

pub unsafe fn set_back_output_mask(&self, back_output_mask: c_uint)[src]

Holds the write mask for the fragment stencil values for back-facing polygons.

Calls C++ function: [slot] void Qt3DRender::QStencilMask::setBackOutputMask(unsigned int backOutputMask).

C++ documentation:

Holds the write mask for the fragment stencil values for back-facing polygons.

Access functions:

uint backOutputMask() const
void setBackOutputMask(uint backOutputMask)

Notifier signal:

void backOutputMaskChanged(uint backOutputMask)

pub unsafe fn set_front_output_mask(&self, front_output_mask: c_uint)[src]

Holds the write mask for the fragment stencil values for front-facing polygons.

Calls C++ function: [slot] void Qt3DRender::QStencilMask::setFrontOutputMask(unsigned int frontOutputMask).

C++ documentation:

Holds the write mask for the fragment stencil values for front-facing polygons.

Access functions:

uint frontOutputMask() const
void setFrontOutputMask(uint frontOutputMask)

Notifier signal:

void frontOutputMaskChanged(uint frontOutputMask)

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::QStencilMask::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::QStencilMask::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 QStencilMask[src]

unsafe fn delete(&self)[src]

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

impl Deref for QStencilMask[src]

type Target = QRenderState

The resulting type after dereferencing.

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

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

impl DynamicCast<QStencilMask> for QRenderState[src]

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

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

impl DynamicCast<QStencilMask> for QNode[src]

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

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

impl DynamicCast<QStencilMask> for QObject[src]

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

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

impl StaticDowncast<QStencilMask> for QRenderState[src]

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

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

impl StaticDowncast<QStencilMask> for QNode[src]

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

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

impl StaticDowncast<QStencilMask> for QObject[src]

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

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

impl StaticUpcast<QNode> for QStencilMask[src]

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

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

impl StaticUpcast<QObject> for QStencilMask[src]

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

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

impl StaticUpcast<QRenderState> for QStencilMask[src]

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

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