[][src]Struct qt_3d_render::QRenderSurfaceSelector

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

Provides a way of specifying the render surface

C++ class: Qt3DRender::QRenderSurfaceSelector.

C++ documentation:

Provides a way of specifying the render surface

The Qt3DRender::QRenderSurfaceSelector can be used to select the surface, where Qt3D renders the content. The surface can either be window surface or offscreen surface. The externalRenderTargetSize is used to specify the actual size of the surface when offscreen surface is used.

When DPI scaling is used by the system, the logical surface size, which is used by mouse events, and the actual 'physical' size of the surface can differ. The surfacePixelRatio is the factor to convert the logical size to the physical size.

Methods

impl QRenderSurfaceSelector[src]

pub fn slot_set_surface(&self) -> Receiver<(*mut QObject,)>[src]

Sets surfaceObject.

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

C++ documentation:

Sets surfaceObject.

Note: Setter function for property surface.

See also surface().

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

Holds the surfacePixelRatio of the surface.

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

C++ documentation:

Holds the surfacePixelRatio of the surface.

Access functions:

float surfacePixelRatio() const
void setSurfacePixelRatio(float ratio)

Notifier signal:

void surfacePixelRatioChanged(float ratio)

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

Sets render target size if different than underlying surface size. Tells picking the correct size.

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

C++ documentation:

Sets render target size if different than underlying surface size. Tells picking the correct size.

Note: Setter function for property externalRenderTargetSize.

See also externalRenderTargetSize().

pub fn surface_changed(&self) -> Signal<(*mut QObject,)>[src]

Holds the surface

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

C++ documentation:

Holds the surface

Access functions:

QObject *surface() const
void setSurface(QObject *surfaceObject)

Notifier signal:

void surfaceChanged(QObject *surface)

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

Holds the size of the external render target.

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

C++ documentation:

Holds the size of the external render target.

Access functions:

QSize externalRenderTargetSize() const
void setExternalRenderTargetSize(const QSize &size)

Notifier signal:

void externalRenderTargetSizeChanged(const QSize &size)

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

Holds the surfacePixelRatio of the surface.

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

C++ documentation:

Holds the surfacePixelRatio of the surface.

Access functions:

float surfacePixelRatio() const
void setSurfacePixelRatio(float ratio)

Notifier signal:

void surfacePixelRatioChanged(float ratio)

pub unsafe fn external_render_target_size(&self) -> CppBox<QSize>[src]

Holds the size of the external render target.

Calls C++ function: QSize Qt3DRender::QRenderSurfaceSelector::externalRenderTargetSize() const.

C++ documentation:

Holds the size of the external render target.

Access functions:

QSize externalRenderTargetSize() const
void setExternalRenderTargetSize(const QSize &size)

Notifier signal:

void externalRenderTargetSizeChanged(const QSize &size)

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

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

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

Constructs QRenderSurfaceSelector with given parent.

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

C++ documentation:

Constructs QRenderSurfaceSelector with given parent.

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

Provides a way of specifying the render surface

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

C++ documentation:

Provides a way of specifying the render surface

The Qt3DRender::QRenderSurfaceSelector can be used to select the surface, where Qt3D renders the content. The surface can either be window surface or offscreen surface. The externalRenderTargetSize is used to specify the actual size of the surface when offscreen surface is used.

When DPI scaling is used by the system, the logical surface size, which is used by mouse events, and the actual 'physical' size of the surface can differ. The surfacePixelRatio is the factor to convert the logical size to the physical size.

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

pub unsafe fn set_external_render_target_size(
    &self,
    size: impl CastInto<Ref<QSize>>
)
[src]

Sets render target size if different than underlying surface size. Tells picking the correct size.

Calls C++ function: [slot] void Qt3DRender::QRenderSurfaceSelector::setExternalRenderTargetSize(const QSize& size).

C++ documentation:

Sets render target size if different than underlying surface size. Tells picking the correct size.

Note: Setter function for property externalRenderTargetSize.

See also externalRenderTargetSize().

pub unsafe fn set_surface(&self, surface_object: impl CastInto<Ptr<QObject>>)[src]

Sets surfaceObject.

Calls C++ function: [slot] void Qt3DRender::QRenderSurfaceSelector::setSurface(QObject* surfaceObject).

C++ documentation:

Sets surfaceObject.

Note: Setter function for property surface.

See also surface().

pub unsafe fn set_surface_pixel_ratio(&self, ratio: c_float)[src]

Holds the surfacePixelRatio of the surface.

Calls C++ function: [slot] void Qt3DRender::QRenderSurfaceSelector::setSurfacePixelRatio(float ratio).

C++ documentation:

Holds the surfacePixelRatio of the surface.

Access functions:

float surfacePixelRatio() const
void setSurfacePixelRatio(float ratio)

Notifier signal:

void surfacePixelRatioChanged(float ratio)

pub unsafe fn static_meta_object() -> Ref<QMetaObject>[src]

Returns a reference to the staticMetaObject field.

pub unsafe fn surface(&self) -> QPtr<QObject>[src]

Holds the surface

Calls C++ function: QObject* Qt3DRender::QRenderSurfaceSelector::surface() const.

C++ documentation:

Holds the surface

Access functions:

QObject *surface() const
void setSurface(QObject *surfaceObject)

Notifier signal:

void surfaceChanged(QObject *surface)

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

Holds the surfacePixelRatio of the surface.

Calls C++ function: float Qt3DRender::QRenderSurfaceSelector::surfacePixelRatio() const.

C++ documentation:

Holds the surfacePixelRatio of the surface.

Access functions:

float surfacePixelRatio() const
void setSurfacePixelRatio(float ratio)

Notifier signal:

void surfacePixelRatioChanged(float ratio)

pub unsafe fn tr(
    s: *const c_char,
    c: *const c_char,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString Qt3DRender::QRenderSurfaceSelector::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::QRenderSurfaceSelector::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 QRenderSurfaceSelector[src]

unsafe fn delete(&self)[src]

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

impl Deref for QRenderSurfaceSelector[src]

type Target = QFrameGraphNode

The resulting type after dereferencing.

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

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

impl DynamicCast<QRenderSurfaceSelector> for QFrameGraphNode[src]

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

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

impl DynamicCast<QRenderSurfaceSelector> for QNode[src]

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

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

impl DynamicCast<QRenderSurfaceSelector> for QObject[src]

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

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

impl StaticDowncast<QRenderSurfaceSelector> for QFrameGraphNode[src]

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

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

impl StaticDowncast<QRenderSurfaceSelector> for QNode[src]

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

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

impl StaticDowncast<QRenderSurfaceSelector> for QObject[src]

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

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

impl StaticUpcast<QFrameGraphNode> for QRenderSurfaceSelector[src]

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

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

impl StaticUpcast<QNode> for QRenderSurfaceSelector[src]

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

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

impl StaticUpcast<QObject> for QRenderSurfaceSelector[src]

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

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