[][src]Struct qt_gui::QRasterWindow

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

QRasterWindow is a convenience class for using QPainter on a QWindow

C++ class: QRasterWindow.

C++ documentation:

QRasterWindow is a convenience class for using QPainter on a QWindow

QRasterWindow is a QWindow with a raster-based, non-OpenGL surface. On top of the functionality offered by QWindow, QRasterWindow adds a virtual paintEvent() function and the possibility to open a QPainter on itself. The underlying paint engine will be the raster one, meaning that all drawing will happen on the CPU. For performing accelerated, OpenGL-based drawing, use QOpenGLWindow instead.

Internally the class is thin wrapper for QWindow and QBackingStore and is very similar to the Raster Window Example that uses these classes directly.

Methods

impl QRasterWindow[src]

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

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

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

Constructs a new QRasterWindow with parent.

Calls C++ function: [constructor] void QRasterWindow::QRasterWindow(QWindow* parent = …).

C++ documentation:

Constructs a new QRasterWindow with parent.

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

QRasterWindow is a convenience class for using QPainter on a QWindow

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

C++ documentation:

QRasterWindow is a convenience class for using QPainter on a QWindow

QRasterWindow is a QWindow with a raster-based, non-OpenGL surface. On top of the functionality offered by QWindow, QRasterWindow adds a virtual paintEvent() function and the possibility to open a QPainter on itself. The underlying paint engine will be the raster one, meaning that all drawing will happen on the CPU. For performing accelerated, OpenGL-based drawing, use QOpenGLWindow instead.

Internally the class is thin wrapper for QWindow and QBackingStore and is very similar to the Raster Window Example that uses these classes directly.

pub unsafe fn qt_metacall(
    &self,
    arg1: Call,
    arg2: c_int,
    arg3: *mut *mut c_void
) -> c_int
[src]

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

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

Methods from Deref<Target = QPaintDeviceWindow>

pub fn slot_update(&self) -> Receiver<()>[src]

Marks the entire window as dirty and schedules a repaint.

Returns a built-in Qt slot QPaintDeviceWindow::update that can be passed to qt_core::Signal::connect.

C++ documentation:

Marks the entire window as dirty and schedules a repaint.

Note: Subsequent calls to this function before the next paint event will get ignored.

Note: For non-exposed windows the update is deferred until the window becomes exposed again.

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

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

pub unsafe fn update_q_rect(&self, rect: impl CastInto<Ref<QRect>>)[src]

Marks the rect of the window as dirty and schedules a repaint.

Calls C++ function: void QPaintDeviceWindow::update(const QRect& rect).

C++ documentation:

Marks the rect of the window as dirty and schedules a repaint.

Note: Subsequent calls to this function before the next paint event will get ignored, but rect is added to the region to update.

Note: For non-exposed windows the update is deferred until the window becomes exposed again.

pub unsafe fn update_q_region(&self, region: impl CastInto<Ref<QRegion>>)[src]

Marks the region of the window as dirty and schedules a repaint.

Calls C++ function: void QPaintDeviceWindow::update(const QRegion& region).

C++ documentation:

Marks the region of the window as dirty and schedules a repaint.

Note: Subsequent calls to this function before the next paint event will get ignored, but region is added to the region to update.

Note: For non-exposed windows the update is deferred until the window becomes exposed again.

pub unsafe fn update(&self)[src]

Marks the entire window as dirty and schedules a repaint.

Calls C++ function: [slot] void QPaintDeviceWindow::update().

C++ documentation:

Marks the entire window as dirty and schedules a repaint.

Note: Subsequent calls to this function before the next paint event will get ignored.

Note: For non-exposed windows the update is deferred until the window becomes exposed again.

Trait Implementations

impl CppDeletable for QRasterWindow[src]

unsafe fn delete(&self)[src]

Destroys the instance of QRasterWindow.

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

C++ documentation:

Destroys the instance of QRasterWindow.

impl Deref for QRasterWindow[src]

type Target = QPaintDeviceWindow

The resulting type after dereferencing.

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

Calls C++ function: QPaintDeviceWindow* static_cast<QPaintDeviceWindow*>(QRasterWindow* ptr).

impl DynamicCast<QRasterWindow> for QPaintDeviceWindow[src]

unsafe fn dynamic_cast(ptr: Ptr<QPaintDeviceWindow>) -> Ptr<QRasterWindow>[src]

Calls C++ function: QRasterWindow* dynamic_cast<QRasterWindow*>(QPaintDeviceWindow* ptr).

impl DynamicCast<QRasterWindow> for QWindow[src]

unsafe fn dynamic_cast(ptr: Ptr<QWindow>) -> Ptr<QRasterWindow>[src]

Calls C++ function: QRasterWindow* dynamic_cast<QRasterWindow*>(QWindow* ptr).

impl DynamicCast<QRasterWindow> for QObject[src]

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

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

impl DynamicCast<QRasterWindow> for QSurface[src]

unsafe fn dynamic_cast(ptr: Ptr<QSurface>) -> Ptr<QRasterWindow>[src]

Calls C++ function: QRasterWindow* dynamic_cast<QRasterWindow*>(QSurface* ptr).

impl DynamicCast<QRasterWindow> for QPaintDevice[src]

unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QRasterWindow>[src]

Calls C++ function: QRasterWindow* dynamic_cast<QRasterWindow*>(QPaintDevice* ptr).

impl StaticDowncast<QRasterWindow> for QPaintDeviceWindow[src]

unsafe fn static_downcast(ptr: Ptr<QPaintDeviceWindow>) -> Ptr<QRasterWindow>[src]

Calls C++ function: QRasterWindow* static_cast<QRasterWindow*>(QPaintDeviceWindow* ptr).

impl StaticDowncast<QRasterWindow> for QWindow[src]

unsafe fn static_downcast(ptr: Ptr<QWindow>) -> Ptr<QRasterWindow>[src]

Calls C++ function: QRasterWindow* static_cast<QRasterWindow*>(QWindow* ptr).

impl StaticDowncast<QRasterWindow> for QObject[src]

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

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

impl StaticDowncast<QRasterWindow> for QSurface[src]

unsafe fn static_downcast(ptr: Ptr<QSurface>) -> Ptr<QRasterWindow>[src]

Calls C++ function: QRasterWindow* static_cast<QRasterWindow*>(QSurface* ptr).

impl StaticDowncast<QRasterWindow> for QPaintDevice[src]

unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QRasterWindow>[src]

Calls C++ function: QRasterWindow* static_cast<QRasterWindow*>(QPaintDevice* ptr).

impl StaticUpcast<QObject> for QRasterWindow[src]

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

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

impl StaticUpcast<QPaintDevice> for QRasterWindow[src]

unsafe fn static_upcast(ptr: Ptr<QRasterWindow>) -> Ptr<QPaintDevice>[src]

Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QRasterWindow* ptr).

impl StaticUpcast<QPaintDeviceWindow> for QRasterWindow[src]

unsafe fn static_upcast(ptr: Ptr<QRasterWindow>) -> Ptr<QPaintDeviceWindow>[src]

Calls C++ function: QPaintDeviceWindow* static_cast<QPaintDeviceWindow*>(QRasterWindow* ptr).

impl StaticUpcast<QSurface> for QRasterWindow[src]

unsafe fn static_upcast(ptr: Ptr<QRasterWindow>) -> Ptr<QSurface>[src]

Calls C++ function: QSurface* static_cast<QSurface*>(QRasterWindow* ptr).

impl StaticUpcast<QWindow> for QRasterWindow[src]

unsafe fn static_upcast(ptr: Ptr<QRasterWindow>) -> Ptr<QWindow>[src]

Calls C++ function: QWindow* static_cast<QWindow*>(QRasterWindow* 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.