45 #include <QtCore/qnamespace.h> 46 #include <QtCore/qpoint.h> 47 #include <QtCore/qstringlist.h> 48 #include <QtGui/qrgb.h> 49 #include <QtCore/qrect.h> 50 #include <QtGui/qimage.h> 51 #include <QtGui/qregion.h> 68 #ifndef QT_QWS_DEPTH16_RGB 69 #define QT_QWS_DEPTH16_RGB 565 113 return qRgb(tr,tg,tb);
129 #ifndef QT_NO_QWS_CURSOR 141 virtual void set(
const QImage &image,
int hotx,
int hoty);
142 virtual void move(
int x,
int y);
155 static void initSoftwareCursor();
172 #endif // QT_NO_QWS_CURSOR 199 explicit QScreen(
int display_id);
202 virtual bool initDevice() = 0;
203 virtual bool connect(
const QString &displaySpec) = 0;
204 virtual void disconnect() = 0;
205 virtual void shutdownDevice();
206 virtual void setMode(
int,
int,
int) = 0;
207 virtual bool supportsDepth(
int)
const;
210 virtual void restore();
211 virtual void blank(
bool on);
217 virtual bool onCard(
const unsigned char *)
const;
218 virtual bool onCard(
const unsigned char *,
ulong& out_offset)
const;
223 virtual void set(
unsigned int,
unsigned int,
unsigned int,
unsigned int);
225 virtual int alloc(
unsigned int,
unsigned int,
unsigned int);
230 virtual int pixmapDepth()
const;
251 virtual QSize mapToDevice(
const QSize &)
const;
252 virtual QSize mapFromDevice(
const QSize &)
const;
261 virtual int transformOrientation()
const;
262 virtual bool isTransformed()
const;
263 virtual bool isInterlaced()
const;
265 virtual void setDirty(
const QRect&);
267 virtual int memoryNeeded(
const QString&);
269 virtual void haltUpdates();
270 virtual void resumeUpdates();
273 virtual void exposeRegion(
QRegion r,
int changing);
277 virtual void solidFill(
const QColor &color,
const QRegion ®ion);
285 int subScreenIndexAt(
const QPoint &p)
const;
287 void setOffset(
const QPoint &p);
296 #ifdef QT_QWS_CLIENTBLIT 297 bool supportsBlitInClients()
const;
298 void setSupportsBlitInClients(
bool);
348 QImage **blendbuffer,
int changing_level);
349 void paintBackground(
const QRegion &);
352 static bool isWidgetPaintOnScreen(
const QWidget *w);
354 #if Q_BYTE_ORDER == Q_BIG_ENDIAN 355 void setFrameBufferLittleEndian(
bool littleEndian);
356 bool frameBufferLittleEndian()
const;
367 #ifdef QT_QWS_DEPTH_GENERIC 368 friend void qt_set_generic_blit(
QScreen *screen,
int bpp,
369 int len_red,
int len_green,
int len_blue,
370 int len_alpha,
int off_red,
int off_green,
371 int off_blue,
int off_alpha);
379 #ifndef QT_LOADABLE_MODULES 392 #endif // QSCREEN_QWS_H The QColor class provides colors based on RGB, HSV or CMYK values.
The QScreenCursor class is a base class for screen cursors in Qt for Embedded Linux.
int screencols
the number of entries in the color table
The QWSWindowSurface class provides the drawing area for top-level windows in Qt for Embedded Linux...
static const int qt_red_rounding_shift
Format
The following image formats are available in Qt.
The QProxyScreenCursor class provides a generic interface to QScreenCursor implementations.
The QProxyScreen class provides a generic interface to QScreen implementations.
int height() const
Returns the logical height of the framebuffer in pixels.
#define QT_END_NAMESPACE
This macro expands to.
QPointer< QWidget > widget
virtual int sharedRamSize(void *)
int physicalHeight() const
Returns the physical height of the screen in millimeters.
void qt_solidFill_setup(QScreen *screen, const QColor &color, const QRegion ®ion)
static const int qt_bbits
The QVFbScreen class implements a screen driver for the virtual framebuffer.
void(* ClearCacheFunc)(QScreen *obj, int)
int deviceWidth() const
Returns the physical width of the framebuffer device in pixels.
static ClearCacheFunc clearCacheFunc
int physHeight
the physical height of the screen in millimeters.
static const int qt_blue_mask
ushort qt_convRgbTo16(const int r, const int g, const int b)
The QString class provides a Unicode character string.
int size
the number of bytes in the visible region of the frame buffer
virtual int pixmapOffsetAlignment()
Returns the value (in bits) to which the start address of pixmaps held in the graphics card's memory...
bool supportsAlphaCursor() const
int qRed(QRgb rgb)
Returns the red component of the ARGB quadruplet rgb.
PixelType
This enum describes the pixel storage format of the screen, i.
static const int qt_red_mask
The QQnxScreen class implements a screen driver for QNX io-display based devices. ...
PixelType pixeltype
set to BGRPixel
int physWidth
the physical width of the screen in millimeters.
QImage image() const
Returns the cursor's image.
virtual int pixmapLinestepAlignment()
Returns the value (in bits) to which individual scanlines of pixmaps held in the graphics card's memo...
The QWSWindow class encapsulates a top-level window in Qt for Embedded Linux.
virtual QRegion region() const
Returns the region covered by this screen driver.
int width() const
Returns the logical width of the framebuffer in pixels.
bool isAccelerated() const
Returns true if the cursor is accelerated; otherwise false.
uchar * data
points to the first visible pixel in the frame buffer.
QT_DEPRECATED int numCols()
#define QT_BEGIN_NAMESPACE
This macro expands to.
PixelType pixelType() const
Returns the pixel storage format of the screen.
int linestep() const
Returns the length of each scanline of the framebuffer in bytes.
The QVNCScreen class implements a screen driver for VNC servers.
virtual uchar * cache(int)
int w
the logical width of the screen.
static const int qt_gbits
The QImage class provides a hardware-independent image representation that allows direct access to th...
static const char * data(const QByteArray &arr)
The QIntfbScreen class implements a screen driver for the INTEGRITY framebuffer drivers.
static QScreen * instance()
Returns a pointer to the application's QScreen instance.
The QRegion class specifies a clip region for a painter.
static const int qt_green_shift
QRgb qt_conv16ToRgb(ushort c)
static const int qt_green_mask
QRgb qRgb(int r, int g, int b)
Returns the ARGB quadruplet (255, {r}, {g}, {b}).
The QBrush class defines the fill pattern of shapes drawn by QPainter.
static const int qt_rbits
uchar * base() const
Returns a pointer to the beginning of the framebuffer.
#define QT_QWS_DEPTH16_RGB
void qt_blit_setup(QScreen *screen, const QImage &image, const QPoint &topLeft, const QRegion ®ion)
The QWSServer class encapsulates a server process in Qt for Embedded Linux.
Q_GUI_EXPORT EGLSurface createSurface(QPaintDevice *device, EGLConfig cfg, const QEglProperties *surfaceAttribs=0)
int deviceHeight() const
Returns the full height of the framebuffer device in pixels.
static const int qt_neg_blue_shift
ClassId
This enum defines the class identifiers for the known screen subclasses.
int colorCount()
Returns the number of entries in the screen's color lookup table (i.
Q_GUI_EXPORT QScreen * qt_screen
int totalSize() const
Returns the size of the available graphics card memory (including the screen) in bytes.
QRect boundingRect() const
Returns the cursor's bounding rectangle.
virtual QList< QScreen * > subScreens() const
QRgb * clut()
Returns a pointer to the screen's color lookup table (i.
The QPoint class defines a point in the plane using integer precision.
static const int qt_red_shift
The QRect class defines a rectangle in the plane using integer precision.
bool grayscale
the gray scale screen mode flag
virtual void uncache(uchar *)
The QScreen class is a base class for screen drivers in Qt for Embedded Linux.
QScreen * qt_get_screen(int display_id, const char *spec)
int lstep
the number of bytes representing a line in the frame buffer.
The QSize class defines the size of a two-dimensional object using integer point precision.
QScreenCursor * qt_screencursor
int h
the logical height of the screen.
bool isVisible() const
Returns true if the cursor is visible; otherwise false.
int qGreen(QRgb rgb)
Returns the green component of the ARGB quadruplet rgb.
static const int qt_blue_rounding_shift
int qBlue(QRgb rgb)
Returns the blue component of the ARGB quadruplet rgb.
const unsigned char * qt_probe_bus()
int mapsize
the total number of bytes in the frame buffer
The QLinuxFbScreen class implements a screen driver for the Linux framebuffer.
int physicalWidth() const
Returns the physical width of the screen in millimeters.
static QScreenCursor * instance()
int screenSize() const
Returns the size of the screen in bytes.
static const int qt_green_rounding_shift
int depth() const
Returns the depth of the framebuffer, in bits per pixel.
The QList class is a template class that provides lists.