[][src]Struct qt_3d_render::QRenderCaptureReply

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

Receives the result of render capture request.

C++ class: Qt3DRender::QRenderCaptureReply.

C++ documentation:

Receives the result of render capture request.

An object, which receives the image from QRenderCapture::requestCapture.

Methods

impl QRenderCaptureReply[src]

pub fn complete_changed(&self) -> Signal<(bool,)>[src]

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

pub fn completed(&self) -> Signal<()>[src]

Holds the complete state of the render capture.

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

C++ documentation:

Holds the complete state of the render capture.

Access functions:

bool isComplete() const

Notifier signal:

void completed()

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

Holds the captureId, which was passed to the renderCapture.

Calls C++ function: int Qt3DRender::QRenderCaptureReply::captureId() const.

C++ documentation:

Holds the captureId, which was passed to the renderCapture.

Access functions:

int captureId() const

pub unsafe fn image(&self) -> CppBox<QImage>[src]

Holds the image, which was produced as a result of render capture.

Calls C++ function: QImage Qt3DRender::QRenderCaptureReply::image() const.

C++ documentation:

Holds the image, which was produced as a result of render capture.

Access functions:

QImage image() const

pub unsafe fn is_complete(&self) -> bool[src]

Holds the complete state of the render capture.

Calls C++ function: bool Qt3DRender::QRenderCaptureReply::isComplete() const.

C++ documentation:

Holds the complete state of the render capture.

Access functions:

bool isComplete() const

Notifier signal:

void completed()

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

Calls C++ function: virtual const QMetaObject* Qt3DRender::QRenderCaptureReply::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::QRenderCaptureReply::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::QRenderCaptureReply::qt_metacast(const char* arg1).

pub unsafe fn save_image(&self, file_name: impl CastInto<Ref<QString>>) -> bool[src]

Saves the render capture result as an image to fileName.

Calls C++ function: bool Qt3DRender::QRenderCaptureReply::saveImage(const QString& fileName) const.

C++ documentation:

Saves the render capture result as an image to fileName.

Returns true if the image was successfully saved; otherwise returns false.

This function was introduced in Qt 5.9.

pub unsafe fn save_to_file(&self, file_name: impl CastInto<Ref<QString>>)[src]

Saves the render capture result as an image to fileName.

Calls C++ function: void Qt3DRender::QRenderCaptureReply::saveToFile(const QString& fileName) const.

C++ documentation:

Saves the render capture result as an image to fileName.

Deprecated in 5.9. Use saveImage().

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

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

Trait Implementations

impl CppDeletable for QRenderCaptureReply[src]

unsafe fn delete(&self)[src]

Receives the result of render capture request.

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

C++ documentation:

Receives the result of render capture request.

An object, which receives the image from QRenderCapture::requestCapture.

impl Deref for QRenderCaptureReply[src]

type Target = QObject

The resulting type after dereferencing.

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

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

impl DynamicCast<QRenderCaptureReply> for QObject[src]

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

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

impl StaticDowncast<QRenderCaptureReply> for QObject[src]

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

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

impl StaticUpcast<QObject> for QRenderCaptureReply[src]

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

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