[−][src]Struct qt_gui::QRasterWindow
QRasterWindow is a convenience class for using QPainter on a QWindow
C++ class: QRasterWindow
.
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<MutPtr<QWindow>>
) -> CppBox<QRasterWindow>
[src]
parent: impl CastInto<MutPtr<QWindow>>
) -> CppBox<QRasterWindow>
Constructs a new QRasterWindow with parent.
Calls C++ function: [constructor] void QRasterWindow::QRasterWindow(QWindow* parent = …)
.
Constructs a new QRasterWindow with parent.
pub unsafe fn new_0a() -> CppBox<QRasterWindow>
[src]
QRasterWindow is a convenience class for using QPainter on a QWindow
Calls C++ function: [constructor] void QRasterWindow::QRasterWindow()
.
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(
&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 QRasterWindow::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* 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: 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 QRasterWindow::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 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
.
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(
&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 QPaintDeviceWindow::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* QPaintDeviceWindow::qt_metacast(const char* arg1)
.
pub unsafe fn update_q_rect(&mut 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)
.
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(&mut 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)
.
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(&mut self)
[src]
Marks the entire window as dirty and schedules a repaint.
Calls C++ function: [slot] void QPaintDeviceWindow::update()
.
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(&mut self)
[src]
Destroys the instance of QRasterWindow.
Calls C++ function: virtual [destructor] void QRasterWindow::~QRasterWindow()
.
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 DerefMut for QRasterWindow
[src]
fn deref_mut(&mut self) -> &mut 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)
.
unsafe fn dynamic_cast_mut(
ptr: MutPtr<QPaintDeviceWindow>
) -> MutPtr<QRasterWindow>
[src]
ptr: MutPtr<QPaintDeviceWindow>
) -> MutPtr<QRasterWindow>
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)
.
unsafe fn dynamic_cast_mut(ptr: MutPtr<QWindow>) -> MutPtr<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)
.
unsafe fn dynamic_cast_mut(ptr: MutPtr<QObject>) -> MutPtr<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)
.
unsafe fn dynamic_cast_mut(ptr: MutPtr<QSurface>) -> MutPtr<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)
.
unsafe fn dynamic_cast_mut(ptr: MutPtr<QPaintDevice>) -> MutPtr<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)
.
unsafe fn static_downcast_mut(
ptr: MutPtr<QPaintDeviceWindow>
) -> MutPtr<QRasterWindow>
[src]
ptr: MutPtr<QPaintDeviceWindow>
) -> MutPtr<QRasterWindow>
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)
.
unsafe fn static_downcast_mut(ptr: MutPtr<QWindow>) -> MutPtr<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)
.
unsafe fn static_downcast_mut(ptr: MutPtr<QObject>) -> MutPtr<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)
.
unsafe fn static_downcast_mut(ptr: MutPtr<QSurface>) -> MutPtr<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)
.
unsafe fn static_downcast_mut(
ptr: MutPtr<QPaintDevice>
) -> MutPtr<QRasterWindow>
[src]
ptr: MutPtr<QPaintDevice>
) -> MutPtr<QRasterWindow>
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)
.
unsafe fn static_upcast_mut(ptr: MutPtr<QRasterWindow>) -> MutPtr<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)
.
unsafe fn static_upcast_mut(ptr: MutPtr<QRasterWindow>) -> MutPtr<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)
.
unsafe fn static_upcast_mut(
ptr: MutPtr<QRasterWindow>
) -> MutPtr<QPaintDeviceWindow>
[src]
ptr: MutPtr<QRasterWindow>
) -> MutPtr<QPaintDeviceWindow>
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)
.
unsafe fn static_upcast_mut(ptr: MutPtr<QRasterWindow>) -> MutPtr<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)
.
unsafe fn static_upcast_mut(ptr: MutPtr<QRasterWindow>) -> MutPtr<QWindow>
[src]
Calls C++ function: QWindow* static_cast<QWindow*>(QRasterWindow* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for QRasterWindow
impl Send for QRasterWindow
impl Sync for QRasterWindow
impl Unpin for QRasterWindow
impl UnwindSafe for QRasterWindow
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>,