Qt 4.8
|
The QTransformedScreen class implements a screen driver for a transformed screen. More...
#include <qscreentransformed_qws.h>
Public Types | |
enum | Transformation { None, Rot90, Rot180, Rot270 } |
This enum describes the various rotations a transformed screen can have. More... | |
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... | |
Public Functions | |
void | blit (const QImage &img, const QPoint &topLeft, const QRegion ®ion) |
Reimplemented Function More... | |
bool | connect (const QString &displaySpec) |
Reimplemented Function More... | |
void | exposeRegion (QRegion region, int changing) |
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... | |
QTransformedScreen (int display_id) | |
Constructs a QTransformedScreen object. More... | |
QRegion | region () const |
Reimplemented Function More... | |
void | setDirty (const QRect &) |
Reimplemented Function More... | |
void | setTransformation (Transformation t) |
Rotates this screen object according to the specified transformation. More... | |
void | solidFill (const QColor &color, const QRegion ®ion) |
Reimplemented Function More... | |
Transformation | transformation () const |
Returns the currently set rotation. More... | |
int | transformOrientation () const |
Reimplemented Function More... | |
~QTransformedScreen () | |
Destroys the QTransformedScreen object. More... | |
Public Functions inherited from QProxyScreen | |
void | blank (bool on) |
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 | 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... | |
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... | |
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 | 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... | |
QList< QScreen * > | subScreens () const |
Reimplemented Function More... | |
bool | supportsDepth (int) 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... | |
Properties | |
QTransformedScreenPrivate * | d_ptr |
Friends | |
class | QTransformedScreenPrivate |
Additional Inherited Members | |
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 QTransformedScreen class implements a screen driver for a transformed screen.
Note that this class is only available in Qt for Embedded Linux. Custom screen drivers can be added by subclassing the QScreenDriverPlugin class, using the QScreenDriverFactory class to dynamically load the driver into the application, but there should only be one screen object per application.
Use the QScreen::isTransformed() function to determine if a screen is transformed. The QTransformedScreen class itself provides means of rotating the screen with its setTransformation() function; the transformation() function returns the currently set rotation in terms of the Transformation enum (which describes the various available rotation settings). Alternatively, QTransformedScreen provides an implementation of the QScreen::transformOrientation() function, returning the current rotation as an integer value.
Definition at line 57 of file qscreentransformed_qws.h.
This enum describes the various rotations a transformed screen can have.
Enumerator | |
---|---|
None | |
Rot90 | |
Rot180 | |
Rot270 |
Definition at line 63 of file qscreentransformed_qws.h.
|
explicit |
Constructs a QTransformedScreen object.
The displayId argument identifies the Qt for Embedded Linux server to connect to.
Definition at line 161 of file qscreentransformed_qws.cpp.
QTransformedScreen::~QTransformedScreen | ( | ) |
|
virtual |
Reimplemented Function
Reimplemented from QProxyScreen.
Definition at line 368 of file qscreentransformed_qws.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QProxyScreen.
Definition at line 211 of file qscreentransformed_qws.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QProxyScreen.
Definition at line 271 of file qscreentransformed_qws.cpp.
|
inlinevirtual |
Reimplemented Function
Reimplemented from QProxyScreen.
Definition at line 83 of file qscreentransformed_qws.h.
Reimplemented Function
Reimplemented from QProxyScreen.
Definition at line 504 of file qscreentransformed_qws.cpp.
Referenced by region(), and setTransformation().
Reimplemented Function
Reimplemented from QProxyScreen.
Definition at line 548 of file qscreentransformed_qws.cpp.
Reimplemented Function
Reimplemented from QProxyScreen.
Definition at line 605 of file qscreentransformed_qws.cpp.
Reimplemented Function
Reimplemented from QProxyScreen.
Definition at line 686 of file qscreentransformed_qws.cpp.
Reimplemented Function
Reimplemented from QProxyScreen.
Definition at line 487 of file qscreentransformed_qws.cpp.
Referenced by blit(), setDirty(), and solidFill().
Reimplemented Function
Reimplemented from QProxyScreen.
Definition at line 521 of file qscreentransformed_qws.cpp.
Reimplemented Function
Reimplemented from QProxyScreen.
Definition at line 575 of file qscreentransformed_qws.cpp.
Reimplemented Function
Reimplemented from QProxyScreen.
Definition at line 635 of file qscreentransformed_qws.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QProxyScreen.
Definition at line 746 of file qscreentransformed_qws.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QProxyScreen.
Definition at line 737 of file qscreentransformed_qws.cpp.
void QTransformedScreen::setTransformation | ( | Transformation | transformation | ) |
Rotates this screen object according to the specified transformation.
Definition at line 285 of file qscreentransformed_qws.cpp.
Referenced by qws_setScreenTransformation().
Reimplemented Function
Reimplemented from QProxyScreen.
Definition at line 472 of file qscreentransformed_qws.cpp.
QTransformedScreen::Transformation QTransformedScreen::transformation | ( | ) | const |
Returns the currently set rotation.
Definition at line 255 of file qscreentransformed_qws.cpp.
Referenced by QTransformedScreenPrivate::configure(), and setTransformation().
|
virtual |
Reimplemented Function
Reimplemented from QProxyScreen.
Definition at line 263 of file qscreentransformed_qws.cpp.
|
friend |
Definition at line 93 of file qscreentransformed_qws.h.
Referenced by QTransformedScreen().
|
private |
Definition at line 94 of file qscreentransformed_qws.h.
Referenced by blit(), connect(), exposeRegion(), mapFromDevice(), mapToDevice(), QTransformedScreen(), setTransformation(), transformation(), transformOrientation(), and ~QTransformedScreen().