[][src]Struct qt_3d_render::QViewport

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

A viewport on the Qt3D Scene

C++ class: Qt3DRender::QViewport.

C++ documentation:

A viewport on the Qt3D Scene

Qt3DRender::QViewport of the scene specifies at which portion of the render surface Qt3D is rendering to. Area outside the viewport is left untouched. It also controls global parameters to the rendering in that viewport like gamma.

Methods

impl QViewport[src]

pub fn slot_set_normalized_rect(&self) -> Receiver<(*const QRectF,)>[src]

Specifies the normalised rectangle for the viewport, i.e. the viewport rectangle is specified relative to the render surface size. Whole surface sized viewport is specified as [0.0, 0.0, 1.0, 1.0], which is the default.

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

C++ documentation:

Specifies the normalised rectangle for the viewport, i.e. the viewport rectangle is specified relative to the render surface size. Whole surface sized viewport is specified as [0.0, 0.0, 1.0, 1.0], which is the default.

Access functions:

QRectF normalizedRect() const
void setNormalizedRect(const QRectF &normalizedRect)

Notifier signal:

void normalizedRectChanged(const QRectF &normalizedRect)

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

Specifies the gamma factor for the viewport. The default is 2.2 which should give proper result on most screens.

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

C++ documentation:

Specifies the gamma factor for the viewport. The default is 2.2 which should give proper result on most screens.

Access functions:

float gamma() const
void setGamma(float gamma)

Notifier signal:

void gammaChanged(float gamma)

pub fn normalized_rect_changed(&self) -> Signal<(*const QRectF,)>[src]

Specifies the normalised rectangle for the viewport, i.e. the viewport rectangle is specified relative to the render surface size. Whole surface sized viewport is specified as [0.0, 0.0, 1.0, 1.0], which is the default.

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

C++ documentation:

Specifies the normalised rectangle for the viewport, i.e. the viewport rectangle is specified relative to the render surface size. Whole surface sized viewport is specified as [0.0, 0.0, 1.0, 1.0], which is the default.

Access functions:

QRectF normalizedRect() const
void setNormalizedRect(const QRectF &normalizedRect)

Notifier signal:

void normalizedRectChanged(const QRectF &normalizedRect)

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

Specifies the gamma factor for the viewport. The default is 2.2 which should give proper result on most screens.

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

C++ documentation:

Specifies the gamma factor for the viewport. The default is 2.2 which should give proper result on most screens.

Access functions:

float gamma() const
void setGamma(float gamma)

Notifier signal:

void gammaChanged(float gamma)

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

Specifies the gamma factor for the viewport. The default is 2.2 which should give proper result on most screens.

Calls C++ function: float Qt3DRender::QViewport::gamma() const.

C++ documentation:

Specifies the gamma factor for the viewport. The default is 2.2 which should give proper result on most screens.

Access functions:

float gamma() const
void setGamma(float gamma)

Notifier signal:

void gammaChanged(float gamma)

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

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

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

Default constructs an instance of QViewport.

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

C++ documentation:

Default constructs an instance of QViewport.

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

A viewport on the Qt3D Scene

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

C++ documentation:

A viewport on the Qt3D Scene

Qt3DRender::QViewport of the scene specifies at which portion of the render surface Qt3D is rendering to. Area outside the viewport is left untouched. It also controls global parameters to the rendering in that viewport like gamma.

pub unsafe fn normalized_rect(&self) -> CppBox<QRectF>[src]

Specifies the normalised rectangle for the viewport, i.e. the viewport rectangle is specified relative to the render surface size. Whole surface sized viewport is specified as [0.0, 0.0, 1.0, 1.0], which is the default.

Calls C++ function: QRectF Qt3DRender::QViewport::normalizedRect() const.

C++ documentation:

Specifies the normalised rectangle for the viewport, i.e. the viewport rectangle is specified relative to the render surface size. Whole surface sized viewport is specified as [0.0, 0.0, 1.0, 1.0], which is the default.

Access functions:

QRectF normalizedRect() const
void setNormalizedRect(const QRectF &normalizedRect)

Notifier signal:

void normalizedRectChanged(const QRectF &normalizedRect)

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

pub unsafe fn set_gamma(&self, gamma: c_float)[src]

Specifies the gamma factor for the viewport. The default is 2.2 which should give proper result on most screens.

Calls C++ function: [slot] void Qt3DRender::QViewport::setGamma(float gamma).

C++ documentation:

Specifies the gamma factor for the viewport. The default is 2.2 which should give proper result on most screens.

Access functions:

float gamma() const
void setGamma(float gamma)

Notifier signal:

void gammaChanged(float gamma)

pub unsafe fn set_normalized_rect(
    &self,
    normalized_rect: impl CastInto<Ref<QRectF>>
)
[src]

Specifies the normalised rectangle for the viewport, i.e. the viewport rectangle is specified relative to the render surface size. Whole surface sized viewport is specified as [0.0, 0.0, 1.0, 1.0], which is the default.

Calls C++ function: [slot] void Qt3DRender::QViewport::setNormalizedRect(const QRectF& normalizedRect).

C++ documentation:

Specifies the normalised rectangle for the viewport, i.e. the viewport rectangle is specified relative to the render surface size. Whole surface sized viewport is specified as [0.0, 0.0, 1.0, 1.0], which is the default.

Access functions:

QRectF normalizedRect() const
void setNormalizedRect(const QRectF &normalizedRect)

Notifier signal:

void normalizedRectChanged(const QRectF &normalizedRect)

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

Methods from Deref<Target = QFrameGraphNode>

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

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

pub unsafe fn parent_frame_graph_node(&self) -> QPtr<QFrameGraphNode>[src]

Returns a pointer to the parent.

Calls C++ function: Qt3DRender::QFrameGraphNode* Qt3DRender::QFrameGraphNode::parentFrameGraphNode() const.

C++ documentation:

Returns a pointer to the parent.

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

Trait Implementations

impl CppDeletable for QViewport[src]

unsafe fn delete(&self)[src]

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

impl Deref for QViewport[src]

type Target = QFrameGraphNode

The resulting type after dereferencing.

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

Calls C++ function: Qt3DRender::QFrameGraphNode* static_cast<Qt3DRender::QFrameGraphNode*>(Qt3DRender::QViewport* ptr).

impl DynamicCast<QViewport> for QFrameGraphNode[src]

unsafe fn dynamic_cast(ptr: Ptr<QFrameGraphNode>) -> Ptr<QViewport>[src]

Calls C++ function: Qt3DRender::QViewport* dynamic_cast<Qt3DRender::QViewport*>(Qt3DRender::QFrameGraphNode* ptr).

impl DynamicCast<QViewport> for QNode[src]

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

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

impl DynamicCast<QViewport> for QObject[src]

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

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

impl StaticDowncast<QViewport> for QFrameGraphNode[src]

unsafe fn static_downcast(ptr: Ptr<QFrameGraphNode>) -> Ptr<QViewport>[src]

Calls C++ function: Qt3DRender::QViewport* static_cast<Qt3DRender::QViewport*>(Qt3DRender::QFrameGraphNode* ptr).

impl StaticDowncast<QViewport> for QNode[src]

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

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

impl StaticDowncast<QViewport> for QObject[src]

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

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

impl StaticUpcast<QFrameGraphNode> for QViewport[src]

unsafe fn static_upcast(ptr: Ptr<QViewport>) -> Ptr<QFrameGraphNode>[src]

Calls C++ function: Qt3DRender::QFrameGraphNode* static_cast<Qt3DRender::QFrameGraphNode*>(Qt3DRender::QViewport* ptr).

impl StaticUpcast<QNode> for QViewport[src]

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

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

impl StaticUpcast<QObject> for QViewport[src]

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

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