On this page

C

SafeRenderer::SafeWindow Class

class SafeRenderer::SafeWindow

The SafeWindow class implements the AbstractWindow interface for the supported platforms. More...

Header: #include <SafeWindow>
Since: QtSafeRenderer 1.2
Inherits: SafeRenderer::AbstractWindow

Public Functions

SafeWindow(const SafeRenderer::QSafeSize &sizeArg, const SafeRenderer::QSafePoint &originArg = QSafePoint(0U, 0U))
virtual ~SafeWindow()
SafeRenderer::quint32 animationTimeoutValue() const

Reimplemented Public Functions

virtual SafeRenderer::AbstractFrameBuffer *framebuffer() override
virtual void render(const SafeRenderer::QSafeRect &dirtyArea, const SafeRenderer::quint32 idArg) override
virtual void requestUpdate() override

Detailed Description

Member Function Documentation

[explicit] SafeWindow::SafeWindow(const SafeRenderer::QSafeSize &sizeArg, const SafeRenderer::QSafePoint &originArg = QSafePoint(0U, 0U))

Constructs a SafeWindow object with a sizeArg and originArg. sizeArg is the size of the target surface. originArg is the position of the target surface on the screen. By default the originArg is at 0, 0.

In case of a failure, one of the following exceptions will be thrown:

ExceptionIdDescription
SafeRenderer::QSafeLayoutExceptionSafeRenderer::QSafeLayoutException::UnknownBitmapIdThe bitmap could not found bitmap by given ID.
SafeRenderer::QSafeLayoutExceptionSafeRenderer::QSafeLayoutException::UnknownItemThe item could not be found.
SafeRenderer::QSafeLayoutExceptionSafeRenderer::QSafeLayoutException::ItemOutOfBoundsThe item's position is out of the layout's boundaries.
SafeRenderer::QSafeRendererExceptionSafeRenderer::QSafeRendererException::UnsupportedSurfaceFormatThe bits per pixel value in the window is neither 16 nor 32, or the given framebuffer address is NULL, or the framebuffer is not 32-bit word aligned.

[virtual noexcept] SafeWindow::~SafeWindow()

Destructs the SafeWindow instance.

SafeRenderer::quint32 SafeWindow::animationTimeoutValue() const

Returns the current animation timeout value.

[override virtual] SafeRenderer::AbstractFrameBuffer *SafeWindow::framebuffer()

Returns a pointer to the current framebuffer instance.

[override virtual] void SafeWindow::render(const SafeRenderer::QSafeRect &dirtyArea, const SafeRenderer::quint32 idArg)

Reimplements: AbstractWindow::render(const SafeRenderer::QSafeRect &dirtyArea, const SafeRenderer::quint32 idArg).

Render the given rect dirtyArea. idArg is not used in current adaptations.

[override virtual] void SafeWindow::requestUpdate()

Requests an update to render the current frame.

Available under certain Qt licenses.
Find out more.