[][src]Struct qt_3d_render::QScissorTest

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

The QScissorTest class discards fragments that fall outside of a certain rectangular portion of the screen.

C++ class: Qt3DRender::QScissorTest.

C++ documentation:

The QScissorTest class discards fragments that fall outside of a certain rectangular portion of the screen.

A QScissorTest class enables scissor test, which discards fragments outside the rectangular area of the screen specified by the left, bottom, width and height properties.

Methods

impl QScissorTest[src]

pub fn slot_set_left(&self) -> Receiver<(c_int,)>[src]

Holds the left coordinate of the scissor box.

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

C++ documentation:

Holds the left coordinate of the scissor box.

Access functions:

int left() const
void setLeft(int left)

Notifier signal:

void leftChanged(int left)

pub fn slot_set_bottom(&self) -> Receiver<(c_int,)>[src]

Holds the bottom coordinate of the scissor box.

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

C++ documentation:

Holds the bottom coordinate of the scissor box.

Access functions:

int bottom() const
void setBottom(int bottom)

Notifier signal:

void bottomChanged(int bottom)

pub fn slot_set_width(&self) -> Receiver<(c_int,)>[src]

Holds the width of the scissor box.

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

C++ documentation:

Holds the width of the scissor box.

Access functions:

int width() const
void setWidth(int width)

Notifier signal:

void widthChanged(int width)

pub fn slot_set_height(&self) -> Receiver<(c_int,)>[src]

Holds the height of the scissor box.

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

C++ documentation:

Holds the height of the scissor box.

Access functions:

int height() const
void setHeight(int height)

Notifier signal:

void heightChanged(int height)

pub fn left_changed(&self) -> Signal<(c_int,)>[src]

Holds the left coordinate of the scissor box.

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

C++ documentation:

Holds the left coordinate of the scissor box.

Access functions:

int left() const
void setLeft(int left)

Notifier signal:

void leftChanged(int left)

pub fn bottom_changed(&self) -> Signal<(c_int,)>[src]

Holds the bottom coordinate of the scissor box.

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

C++ documentation:

Holds the bottom coordinate of the scissor box.

Access functions:

int bottom() const
void setBottom(int bottom)

Notifier signal:

void bottomChanged(int bottom)

pub fn width_changed(&self) -> Signal<(c_int,)>[src]

Holds the width of the scissor box.

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

C++ documentation:

Holds the width of the scissor box.

Access functions:

int width() const
void setWidth(int width)

Notifier signal:

void widthChanged(int width)

pub fn height_changed(&self) -> Signal<(c_int,)>[src]

Holds the height of the scissor box.

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

C++ documentation:

Holds the height of the scissor box.

Access functions:

int height() const
void setHeight(int height)

Notifier signal:

void heightChanged(int height)

pub unsafe fn bottom(&self) -> c_int[src]

Holds the bottom coordinate of the scissor box.

Calls C++ function: int Qt3DRender::QScissorTest::bottom() const.

C++ documentation:

Holds the bottom coordinate of the scissor box.

Access functions:

int bottom() const
void setBottom(int bottom)

Notifier signal:

void bottomChanged(int bottom)

pub unsafe fn height(&self) -> c_int[src]

Holds the height of the scissor box.

Calls C++ function: int Qt3DRender::QScissorTest::height() const.

C++ documentation:

Holds the height of the scissor box.

Access functions:

int height() const
void setHeight(int height)

Notifier signal:

void heightChanged(int height)

pub unsafe fn left(&self) -> c_int[src]

Holds the left coordinate of the scissor box.

Calls C++ function: int Qt3DRender::QScissorTest::left() const.

C++ documentation:

Holds the left coordinate of the scissor box.

Access functions:

int left() const
void setLeft(int left)

Notifier signal:

void leftChanged(int left)

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

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

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

Default constructs an instance of QScissorTest.

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

C++ documentation:

Default constructs an instance of QScissorTest.

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

The QScissorTest class discards fragments that fall outside of a certain rectangular portion of the screen.

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

C++ documentation:

The QScissorTest class discards fragments that fall outside of a certain rectangular portion of the screen.

A QScissorTest class enables scissor test, which discards fragments outside the rectangular area of the screen specified by the left, bottom, width and height properties.

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

pub unsafe fn set_bottom(&self, bottom: c_int)[src]

Holds the bottom coordinate of the scissor box.

Calls C++ function: [slot] void Qt3DRender::QScissorTest::setBottom(int bottom).

C++ documentation:

Holds the bottom coordinate of the scissor box.

Access functions:

int bottom() const
void setBottom(int bottom)

Notifier signal:

void bottomChanged(int bottom)

pub unsafe fn set_height(&self, height: c_int)[src]

Holds the height of the scissor box.

Calls C++ function: [slot] void Qt3DRender::QScissorTest::setHeight(int height).

C++ documentation:

Holds the height of the scissor box.

Access functions:

int height() const
void setHeight(int height)

Notifier signal:

void heightChanged(int height)

pub unsafe fn set_left(&self, left: c_int)[src]

Holds the left coordinate of the scissor box.

Calls C++ function: [slot] void Qt3DRender::QScissorTest::setLeft(int left).

C++ documentation:

Holds the left coordinate of the scissor box.

Access functions:

int left() const
void setLeft(int left)

Notifier signal:

void leftChanged(int left)

pub unsafe fn set_width(&self, width: c_int)[src]

Holds the width of the scissor box.

Calls C++ function: [slot] void Qt3DRender::QScissorTest::setWidth(int width).

C++ documentation:

Holds the width of the scissor box.

Access functions:

int width() const
void setWidth(int width)

Notifier signal:

void widthChanged(int width)

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::QScissorTest::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::QScissorTest::trUtf8(const char* s, const char* c, int n).

pub unsafe fn width(&self) -> c_int[src]

Holds the width of the scissor box.

Calls C++ function: int Qt3DRender::QScissorTest::width() const.

C++ documentation:

Holds the width of the scissor box.

Access functions:

int width() const
void setWidth(int width)

Notifier signal:

void widthChanged(int width)

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 QScissorTest[src]

unsafe fn delete(&self)[src]

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

impl Deref for QScissorTest[src]

type Target = QRenderState

The resulting type after dereferencing.

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

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

impl DynamicCast<QScissorTest> for QRenderState[src]

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

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

impl DynamicCast<QScissorTest> for QNode[src]

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

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

impl DynamicCast<QScissorTest> for QObject[src]

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

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

impl StaticDowncast<QScissorTest> for QRenderState[src]

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

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

impl StaticDowncast<QScissorTest> for QNode[src]

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

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

impl StaticDowncast<QScissorTest> for QObject[src]

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

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

impl StaticUpcast<QNode> for QScissorTest[src]

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

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

impl StaticUpcast<QObject> for QScissorTest[src]

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

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

impl StaticUpcast<QRenderState> for QScissorTest[src]

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

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