Qt 4.8
|
The QProxyScreen class provides a generic interface to QScreen implementations. More...
#include <qscreenproxy_qws.h>
Public Functions | |
void | blank (bool on) |
Reimplemented Function More... | |
void | blit (const QImage &img, const QPoint &topLeft, const QRegion ®ion) |
Reimplemented Function More... | |
bool | connect (const QString &displaySpec) |
Reimplemented Function More... | |
QWSWindowSurface * | createSurface (QWidget *widget) const |
Reimplemented Function More... | |
QWSWindowSurface * | createSurface (const QString &key) const |
Reimplemented Function More... | |
void | disconnect () |
Reimplemented Function More... | |
void | exposeRegion (QRegion r, int changing) |
Reimplemented Function More... | |
void | haltUpdates () |
bool | initDevice () |
This function is called by the Qt for Embedded Linux server to initialize the framebuffer. More... | |
bool | isInterlaced () const |
Reimplemented Function More... | |
bool | isTransformed () const |
Reimplemented Function More... | |
QSize | mapFromDevice (const QSize &s) const |
Reimplemented Function More... | |
QPoint | mapFromDevice (const QPoint &, const QSize &) const |
Reimplemented Function More... | |
QRect | mapFromDevice (const QRect &, const QSize &) const |
Reimplemented Function More... | |
QRegion | mapFromDevice (const QRegion &, const QSize &) const |
Reimplemented Function More... | |
QSize | mapToDevice (const QSize &s) const |
Reimplemented Function More... | |
QPoint | mapToDevice (const QPoint &, const QSize &) const |
Reimplemented Function More... | |
QRect | mapToDevice (const QRect &, const QSize &) const |
Reimplemented Function More... | |
QRegion | mapToDevice (const QRegion &, const QSize &) const |
Reimplemented Function More... | |
int | memoryNeeded (const QString &) |
bool | onCard (const unsigned char *) const |
Reimplemented Function More... | |
bool | onCard (const unsigned char *, ulong &out_offset) const |
Reimplemented Function More... | |
QProxyScreen (int display_id, ClassId=ProxyClass) | |
Constructs a proxy screen with the given displayId and classId. More... | |
QRegion | region () const |
Reimplemented Function More... | |
void | restore () |
Reimplemented Function More... | |
void | resumeUpdates () |
void | save () |
Reimplemented Function More... | |
QScreen * | screen () const |
Returns the real screen used by the proxy screen. More... | |
void | setDirty (const QRect &) |
Reimplemented Function More... | |
void | setMode (int width, int height, int depth) |
Reimplemented Function More... | |
void | setScreen (QScreen *screen) |
Sets the real screen to be used by the proxy screen. More... | |
int | sharedRamSize (void *) |
void | shutdownDevice () |
Reimplemented Function More... | |
void | solidFill (const QColor &color, const QRegion ®ion) |
Reimplemented Function More... | |
QList< QScreen * > | subScreens () const |
Reimplemented Function More... | |
bool | supportsDepth (int) const |
Reimplemented Function More... | |
int | transformOrientation () const |
Reimplemented Function More... | |
~QProxyScreen () | |
Destroys the proxy screen. More... | |
Public Functions inherited from QScreen | |
virtual int | alloc (unsigned int, unsigned int, unsigned int) |
Returns the index in the screen's palette which is the closest match to the given RGB value (red, green, blue). More... | |
uchar * | base () const |
Returns a pointer to the beginning of the framebuffer. More... | |
void | blit (QWSWindow *bs, const QRegion &clip) |
virtual uchar * | cache (int) |
ClassId | classId () const |
Returns the class identifier for the screen object. More... | |
QRgb * | clut () |
Returns a pointer to the screen's color lookup table (i. More... | |
int | colorCount () |
Returns the number of entries in the screen's color lookup table (i. More... | |
int | depth () const |
Returns the depth of the framebuffer, in bits per pixel. More... | |
int | deviceHeight () const |
Returns the full height of the framebuffer device in pixels. More... | |
int | deviceWidth () const |
Returns the physical width of the framebuffer device in pixels. More... | |
QGraphicsSystem * | graphicsSystem () const |
int | height () const |
Returns the logical height of the framebuffer in pixels. More... | |
int | linestep () const |
Returns the length of each scanline of the framebuffer in bytes. More... | |
virtual QImage | mapFromDevice (const QImage &) const |
Maps the given image from the framebuffer coordinate system to the coordinate space used by the application. More... | |
virtual QImage | mapToDevice (const QImage &) const |
Maps the given image from the coordinate space used by the application to the framebuffer coordinate system. More... | |
QT_DEPRECATED int | numCols () |
QPoint | offset () const |
Returns the logical offset of the screen, i. More... | |
int | physicalHeight () const |
Returns the physical height of the screen in millimeters. More... | |
int | physicalWidth () const |
Returns the physical width of the screen in millimeters. More... | |
QImage::Format | pixelFormat () const |
Returns the pixel format of the screen, or QImage::Format_Invalid if the pixel format is not a supported image format. More... | |
PixelType | pixelType () const |
Returns the pixel storage format of the screen. More... | |
QPixmapDataFactory * | pixmapDataFactory () const |
virtual int | pixmapDepth () const |
Returns the preferred depth for pixmaps, in bits per pixel. More... | |
virtual int | pixmapLinestepAlignment () |
Returns the value (in bits) to which individual scanlines of pixmaps held in the graphics card's memory, should be aligned. More... | |
virtual int | pixmapOffsetAlignment () |
Returns the value (in bits) to which the start address of pixmaps held in the graphics card's memory, should be aligned. More... | |
QScreen (int display_id, ClassId classId) | |
Constructs a new screen driver. More... | |
QScreen (int display_id) | |
Constructs a new screen driver. More... | |
int | screenSize () const |
Returns the size of the screen in bytes. More... | |
virtual void | set (unsigned int, unsigned int, unsigned int, unsigned int) |
void | setOffset (const QPoint &p) |
int | subScreenIndexAt (const QPoint &p) const |
Returns the index of the subscreen at the given position; returns -1 if no screen is found. More... | |
int | totalSize () const |
Returns the size of the available graphics card memory (including the screen) in bytes. More... | |
virtual void | uncache (uchar *) |
int | width () const |
Returns the logical width of the framebuffer in pixels. More... | |
virtual | ~QScreen () |
Destroys this screen driver. More... | |
Private Functions | |
void | configure () |
Properties | |
QProxyScreenPrivate * | d_ptr |
QScreen * | realScreen |
Additional Inherited Members | |
Public Types inherited from QScreen | |
enum | ClassId { LinuxFBClass, TransformedClass, VNCClass, MultiClass, VFbClass, DirectFBClass, SvgalibClass, ProxyClass, GLClass, IntfbClass, CustomClass = 1024 } |
This enum defines the class identifiers for the known screen subclasses. More... | |
enum | PixelType { NormalPixel, BGRPixel } |
This enum describes the pixel storage format of the screen, i. More... | |
Static Public Functions inherited from QScreen | |
static QScreen * | instance () |
Returns a pointer to the application's QScreen instance. More... | |
Protected Functions inherited from QScreen | |
void | setGraphicsSystem (QGraphicsSystem *system) |
void | setPixelFormat (QImage::Format format) |
Sets the screen's pixel format to format. More... | |
void | setPixmapDataFactory (QPixmapDataFactory *factory) |
Protected Variables inherited from QScreen | |
int | d |
the pixel depth More... | |
uchar * | data |
points to the first visible pixel in the frame buffer. More... | |
int | dh |
the device height More... | |
int | displayId |
int | dw |
the device width More... | |
QPoolEntry * | entries |
int * | entryp |
bool | grayscale |
the gray scale screen mode flag More... | |
int | h |
the logical height of the screen. More... | |
unsigned int * | lowest |
int | lstep |
the number of bytes representing a line in the frame buffer. More... | |
int | mapsize |
the total number of bytes in the frame buffer More... | |
int | physHeight |
the physical height of the screen in millimeters. More... | |
int | physWidth |
the physical width of the screen in millimeters. More... | |
PixelType | pixeltype |
set to BGRPixel More... | |
QRgb | screenclut [256] |
the color table More... | |
int | screencols |
the number of entries in the color table More... | |
int | size |
the number of bytes in the visible region of the frame buffer More... | |
int | w |
the logical width of the screen. More... | |
Static Protected Variables inherited from QScreen | |
static ClearCacheFunc | clearCacheFunc = 0 |
Related Functions inherited from QScreen | |
void | setTransformation (int transformation, int screenNo) |
Here it is. More... | |
The QProxyScreen class provides a generic interface to QScreen implementations.
Definition at line 84 of file qscreenproxy_qws.h.
QProxyScreen::QProxyScreen | ( | int | display_id, |
QScreen::ClassId | classId = ProxyClass |
||
) |
Constructs a proxy screen with the given displayId and classId.
Definition at line 189 of file qscreenproxy_qws.cpp.
QProxyScreen::~QProxyScreen | ( | ) |
|
virtual |
Reimplemented Function
Reimplemented from QScreen.
Definition at line 496 of file qscreenproxy_qws.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QScreen.
Reimplemented in QTransformedScreen.
Definition at line 305 of file qscreenproxy_qws.cpp.
Referenced by QTransformedScreen::blit(), and QTransformedScreen::isTransformed().
|
private |
Definition at line 226 of file qscreenproxy_qws.cpp.
Referenced by connect(), setMode(), and setScreen().
|
virtual |
Reimplemented Function
Implements QScreen.
Reimplemented in QTransformedScreen, and QVNCScreen.
Definition at line 275 of file qscreenproxy_qws.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QScreen.
Definition at line 604 of file qscreenproxy_qws.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QScreen.
Definition at line 615 of file qscreenproxy_qws.cpp.
|
virtual |
Reimplemented Function
Implements QScreen.
Reimplemented in QVNCScreen.
Definition at line 419 of file qscreenproxy_qws.cpp.
Referenced by QVNCScreen::disconnect().
|
virtual |
Reimplemented Function
Reimplemented from QScreen.
Reimplemented in QTransformedScreen.
Definition at line 287 of file qscreenproxy_qws.cpp.
Referenced by QTransformedScreen::exposeRegion(), QTransformedScreen::isTransformed(), and setMode().
|
virtual |
Reimplemented from QScreen.
Definition at line 577 of file qscreenproxy_qws.cpp.
|
virtual |
This function is called by the Qt for Embedded Linux server to initialize the framebuffer.
Note that a server application will call the connect() function prior to this function.
Implement this function to make accelerated drivers set up the graphics card. Return true to indicate success and false to indicate failure.
Implements QScreen.
Reimplemented in QVNCScreen.
Definition at line 430 of file qscreenproxy_qws.cpp.
Referenced by QVNCScreen::initDevice().
|
virtual |
Reimplemented Function
Reimplemented from QScreen.
Definition at line 525 of file qscreenproxy_qws.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QScreen.
Reimplemented in QTransformedScreen.
Definition at line 535 of file qscreenproxy_qws.cpp.
Reimplemented Function
Reimplemented from QScreen.
Reimplemented in QTransformedScreen.
Definition at line 342 of file qscreenproxy_qws.cpp.
Referenced by QTransformedScreen::mapFromDevice().
Reimplemented Function
Reimplemented from QScreen.
Reimplemented in QTransformedScreen.
Definition at line 364 of file qscreenproxy_qws.cpp.
Reimplemented Function
Reimplemented from QScreen.
Reimplemented in QTransformedScreen.
Definition at line 386 of file qscreenproxy_qws.cpp.
Reimplemented Function
Reimplemented from QScreen.
Reimplemented in QTransformedScreen.
Definition at line 408 of file qscreenproxy_qws.cpp.
Reimplemented Function
Reimplemented from QScreen.
Reimplemented in QTransformedScreen.
Definition at line 331 of file qscreenproxy_qws.cpp.
Referenced by QTransformedScreen::mapToDevice().
Reimplemented Function
Reimplemented from QScreen.
Reimplemented in QTransformedScreen.
Definition at line 353 of file qscreenproxy_qws.cpp.
Reimplemented Function
Reimplemented from QScreen.
Reimplemented in QTransformedScreen.
Definition at line 375 of file qscreenproxy_qws.cpp.
Reimplemented Function
Reimplemented from QScreen.
Reimplemented in QTransformedScreen.
Definition at line 397 of file qscreenproxy_qws.cpp.
|
virtual |
Reimplemented from QScreen.
Definition at line 555 of file qscreenproxy_qws.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QScreen.
Definition at line 505 of file qscreenproxy_qws.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QScreen.
Definition at line 515 of file qscreenproxy_qws.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QScreen.
Reimplemented in QTransformedScreen.
Definition at line 637 of file qscreenproxy_qws.cpp.
Referenced by QTransformedScreen::isTransformed(), QTransformedScreen::region(), and setMode().
|
virtual |
Reimplemented Function
Reimplemented from QScreen.
Definition at line 486 of file qscreenproxy_qws.cpp.
|
virtual |
Reimplemented from QScreen.
Definition at line 586 of file qscreenproxy_qws.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QScreen.
Definition at line 476 of file qscreenproxy_qws.cpp.
QScreen * QProxyScreen::screen | ( | ) | const |
Returns the real screen used by the proxy screen.
Definition at line 217 of file qscreenproxy_qws.cpp.
Referenced by QVNCScreenPrivate::configure(), QVNCScreen::initDevice(), QVNCIntegration::isVirtualDesktop(), QVNCServer::newConnection(), QVNCServer::setEncodings(), setScreen(), QApplicationPrivate::setScreenTransformation(), QTransformedScreen::setTransformation(), and QVNCScreenPrivate::~QVNCScreenPrivate().
|
virtual |
Reimplemented Function
Reimplemented from QScreen.
Reimplemented in QTransformedScreen, and QVNCScreen.
Definition at line 595 of file qscreenproxy_qws.cpp.
Referenced by exposeRegion(), QTransformedScreen::isTransformed(), and QTransformedScreen::setDirty().
|
virtual |
Reimplemented Function
Implements QScreen.
Definition at line 450 of file qscreenproxy_qws.cpp.
void QProxyScreen::setScreen | ( | QScreen * | screen | ) |
Sets the real screen to be used by the proxy screen.
Definition at line 206 of file qscreenproxy_qws.cpp.
Referenced by QVNCScreen::connect(), QTransformedScreen::connect(), and QApplicationPrivate::setScreenTransformation().
|
virtual |
Reimplemented from QScreen.
Definition at line 566 of file qscreenproxy_qws.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QScreen.
Reimplemented in QVNCScreen.
Definition at line 441 of file qscreenproxy_qws.cpp.
Referenced by QVNCScreen::shutdownDevice().
Reimplemented Function
Reimplemented from QScreen.
Reimplemented in QTransformedScreen.
Definition at line 319 of file qscreenproxy_qws.cpp.
Referenced by QTransformedScreen::isTransformed(), and QTransformedScreen::solidFill().
Reimplemented Function
Reimplemented from QScreen.
Definition at line 626 of file qscreenproxy_qws.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QScreen.
Definition at line 466 of file qscreenproxy_qws.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QScreen.
Reimplemented in QTransformedScreen.
Definition at line 545 of file qscreenproxy_qws.cpp.
|
private |
Definition at line 145 of file qscreenproxy_qws.h.
|
private |
Definition at line 144 of file qscreenproxy_qws.h.
Referenced by blank(), blit(), configure(), connect(), createSurface(), disconnect(), exposeRegion(), haltUpdates(), initDevice(), isInterlaced(), isTransformed(), mapFromDevice(), mapToDevice(), memoryNeeded(), onCard(), region(), restore(), resumeUpdates(), save(), screen(), setDirty(), setMode(), setScreen(), sharedRamSize(), shutdownDevice(), solidFill(), subScreens(), supportsDepth(), and transformOrientation().