[−][src]Struct qt_3d_render::QViewport
A viewport on the Qt3D Scene
C++ class: Qt3DRender::QViewport
.
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
.
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
.
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
.
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
.
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
.
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<MutPtr<QNode>>) -> QBox<QViewport>
[src]
Default constructs an instance of QViewport.
Calls C++ function: [constructor] void Qt3DRender::QViewport::QViewport(Qt3DCore::QNode* parent = …)
.
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()
.
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
.
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(
&mut self,
arg1: Call,
arg2: c_int,
arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
[src]
&mut self,
arg1: Call,
arg2: c_int,
arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
Calls C++ function: virtual int Qt3DRender::QViewport::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]
&mut self,
arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
Calls C++ function: virtual void* Qt3DRender::QViewport::qt_metacast(const char* arg1)
.
pub unsafe fn set_gamma(&mut 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)
.
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(
&mut self,
normalized_rect: impl CastInto<Ref<QRectF>>
)
[src]
&mut self,
normalized_rect: impl CastInto<Ref<QRectF>>
)
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)
.
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: impl CastInto<Ptr<c_char>>,
c: impl CastInto<Ptr<c_char>>,
n: c_int
) -> CppBox<QString>
[src]
s: impl CastInto<Ptr<c_char>>,
c: impl CastInto<Ptr<c_char>>,
n: c_int
) -> CppBox<QString>
Calls C++ function: static QString Qt3DRender::QViewport::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]
s: impl CastInto<Ptr<c_char>>,
c: impl CastInto<Ptr<c_char>>,
n: c_int
) -> CppBox<QString>
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) -> QMutPtr<QFrameGraphNode>
[src]
Returns a pointer to the parent.
Calls C++ function: Qt3DRender::QFrameGraphNode* Qt3DRender::QFrameGraphNode::parentFrameGraphNode() const
.
Returns a pointer to the parent.
pub unsafe fn qt_metacall(
&mut self,
arg1: Call,
arg2: c_int,
arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
[src]
&mut self,
arg1: Call,
arg2: c_int,
arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
Calls C++ function: virtual int Qt3DRender::QFrameGraphNode::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]
&mut self,
arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
Calls C++ function: virtual void* Qt3DRender::QFrameGraphNode::qt_metacast(const char* arg1)
.
Trait Implementations
impl CppDeletable for QViewport
[src]
unsafe fn delete(&mut 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 DerefMut for QViewport
[src]
fn deref_mut(&mut self) -> &mut 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)
.
unsafe fn dynamic_cast_mut(ptr: MutPtr<QFrameGraphNode>) -> MutPtr<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)
.
unsafe fn dynamic_cast_mut(ptr: MutPtr<QNode>) -> MutPtr<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)
.
unsafe fn dynamic_cast_mut(ptr: MutPtr<QObject>) -> MutPtr<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)
.
unsafe fn static_downcast_mut(ptr: MutPtr<QFrameGraphNode>) -> MutPtr<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)
.
unsafe fn static_downcast_mut(ptr: MutPtr<QNode>) -> MutPtr<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)
.
unsafe fn static_downcast_mut(ptr: MutPtr<QObject>) -> MutPtr<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)
.
unsafe fn static_upcast_mut(ptr: MutPtr<QViewport>) -> MutPtr<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)
.
unsafe fn static_upcast_mut(ptr: MutPtr<QViewport>) -> MutPtr<QNode>
[src]
Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DRender::QViewport* ptr)
.
impl StaticUpcast<QObject> for QViewport
[src]
Auto Trait Implementations
impl RefUnwindSafe for QViewport
impl Send for QViewport
impl Sync for QViewport
impl Unpin for QViewport
impl UnwindSafe for QViewport
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,