C
SafeWindow Class
class SafeRenderer::SafeWindowThe SafeWindow class implements the AbstractWindow interface. 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)) | |
SafeWindow(const SafeRenderer::QSafeSize &sizeArg, const SafeRenderer::QSafePoint &originArg, SafeRenderer::OutputVerifier &outputVerifierArg) |
Detailed Description
The SafeWindow class implements the AbstractWindow interface for the supported platforms.
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:
Exception | Id | Description |
---|---|---|
SafeRenderer::QSafeLayoutException | SafeRenderer::QSafeLayoutException::LayoutException::UnknownBitmapId | The bitmap could not found bitmap by given ID. |
SafeRenderer::QSafeLayoutException | SafeRenderer::QSafeLayoutException::LayoutException::UnknownItem | The item could not be found. |
SafeRenderer::QSafeLayoutException | SafeRenderer::QSafeLayoutException::LayoutException::ItemOutOfBounds | The item's position is out of the layout's boundaries. |
SafeRenderer::QSafeRendererException | SafeRenderer::QSafeRendererException::RendererException::UnsupportedSurfaceFormat | The 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. |
[explicit]
SafeWindow::SafeWindow(const SafeRenderer::QSafeSize &sizeArg, const SafeRenderer::QSafePoint &originArg, SafeRenderer::OutputVerifier &outputVerifierArg)
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. outputVerifierArg is the optional pointer to an OutputVerifier instance. By default the OutputVerifier is NULL. The OpenWFD adaptation supports the output verification functionality. If OutputVerifier is tried to pass to the other SafeWindow implementations SafeRenderer::QSafeRenderer::OutputVerifierException is thrown.
In case of a failure, one of the following exceptions will be thrown:
Exception | Id | Description |
---|---|---|
SafeRenderer::QSafeLayoutException | SafeRenderer::QSafeLayoutException::LayoutException::UnknownBitmapId | The bitmap could not found bitmap by given ID. |
SafeRenderer::QSafeLayoutException | SafeRenderer::QSafeLayoutException::LayoutException::UnknownItem | The item could not be found. |
SafeRenderer::QSafeLayoutException | SafeRenderer::QSafeLayoutException::LayoutException::ItemOutOfBounds | The item's position is out of the layout's boundaries. |
SafeRenderer::QSafeRendererException | SafeRenderer::QSafeRendererException::RendererException::UnsupportedSurfaceFormat | The 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. |
SafeRenderer::OutputVerifierException | SafeRenderer::OutputVerifierException::OutputVerifierExceptionId::NotSupported | The outputVerifierArg is tried to pass to the adaptation which does not support it. |
Available under certain Qt licenses.
Find out more.