9#include <qpa/qwindowsysteminterface.h>
16 : m_screen(new BScreen(B_MAIN_SCREEN_ID))
40 const BRect
frame = (winId ? ((BWindow*)winId)->Frame() :
screen.Frame());
42 const int absoluteX =
frame.left +
x;
43 const int absoluteY =
frame.top +
y;
66 const BRect
frame = m_screen->Frame();
QRect geometry() const override
Reimplement in subclass to return the pixel geometry of the screen.
QImage::Format format() const override
Reimplement in subclass to return the image format which corresponds to the screen format.
QPlatformCursor * cursor() const override
Reimplement this function in subclass to return the cursor of the screen.
int depth() const override
Reimplement in subclass to return current depth of the screen.
QPixmap grabWindow(WId window, int x, int y, int width, int height) const override
This function is called when Qt needs to be able to grab the content of a window.
Format
The following image formats are available in Qt.
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
static QPixmap fromImage(const QImage &image, Qt::ImageConversionFlags flags=Qt::AutoColor)
Converts the given image to a pixmap using the specified flags to control the conversion.
\inmodule QtCore\reentrant
QImage::Format colorSpaceToImageFormat(color_space colorSpace)
GLint GLint GLint GLint GLint x
[0]
GLint GLsizei GLsizei height
GLint GLsizei GLsizei GLenum format
GLsizei GLfixed GLfixed GLfixed GLfixed const GLubyte * bitmap