Qt 4.8
|
The QLinuxFbScreen class implements a screen driver for the Linux framebuffer. More...
#include <qscreenlinuxfb_qws.h>
Public Types | |
enum | DriverTypes { GenericDriver, EInk8Track } |
This enum describes the driver type. 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 Slots | |
QRegion | doRedraw () |
Public Slots inherited from QObject | |
void | deleteLater () |
Schedules this object for deletion. More... | |
Public Functions | |
virtual void | blank (bool on) |
Reimplemented Function More... | |
virtual uchar * | cache (int) |
Requests the specified amount of offscreen graphics card memory from the memory manager, and returns a pointer to the data within the framebuffer (or 0 if there is no free memory). More... | |
virtual bool | connect (const QString &displaySpec) |
This is called by Qt for Embedded Linux clients to map in the framebuffer. More... | |
virtual void | disconnect () |
This unmaps the framebuffer. More... | |
virtual bool | initDevice () |
This is called by the Qt for Embedded Linux server at startup time. More... | |
QLinuxFbScreen (uchar *d, int w, int h, int lstep, QImage::Format screenFormat) | |
QLinuxFbScreen (int display_id) | |
Constructs a QLinuxFbScreen object. More... | |
virtual void | restore () |
This is called when the virtual console is switched back to Qt for Embedded Linux and restores the palette. More... | |
virtual void | save () |
This doesn't do anything; accelerated drivers may wish to reimplement it to save graphics cards registers. More... | |
virtual void | set (unsigned int, unsigned int, unsigned int, unsigned int) |
Sets the specified color index to the specified RGB value, (red, green, blue), when in paletted graphics modes. More... | |
virtual void | setDirty (const QRect &) |
Reimplemented Function More... | |
void | setFormat (QImage::Format format) |
void | setGeometry (QRect rect) |
virtual void | setMode (int, int, int) |
Sets the framebuffer to a new resolution and bit depth. More... | |
virtual int | sharedRamSize (void *) |
virtual void | shutdownDevice () |
This is called by the Qt for Embedded Linux server when it shuts down, and should be inherited if you need to do any card-specific cleanup. More... | |
virtual void | uncache (uchar *) |
Deletes the specified memoryBlock allocated from the graphics card memory. More... | |
virtual bool | useOffscreen () |
virtual | ~QLinuxFbScreen () |
Destroys this QLinuxFbScreen object. More... | |
Public Functions inherited from QFbScreen | |
virtual void | addWindow (QFbWindow *surface) |
virtual int | depth () const |
Reimplement in subclass to return current depth of the screen. More... | |
virtual QImage::Format | format () const |
Reimplement in subclass to return the image format which corresponds to the screen format. More... | |
virtual QRect | geometry () const |
Reimplement in subclass to return the pixel geometry of the screen. More... | |
QImage * | image () const |
virtual void | lower (QPlatformWindow *surface) |
QPaintDevice * | paintDevice () const |
virtual QSize | physicalSize () const |
Reimplement this function in subclass to return the physical size of the screen. More... | |
QFbScreen () | |
virtual void | raise (QPlatformWindow *surface) |
virtual void | removeWindow (QFbWindow *surface) |
virtual void | setDepth (int depth) |
virtual void | setPhysicalSize (QSize size) |
virtual QWidget * | topLevelAt (const QPoint &p) const |
Return the given top level widget for a given position. More... | |
~QFbScreen () | |
Public Functions inherited from QPlatformScreen | |
virtual QRect | availableGeometry () const |
Reimplement in subclass to return the pixel geometry of the available space This normally is the desktop screen minus the task manager, global menubar etc. More... | |
virtual | ~QPlatformScreen () |
Public Functions inherited from QObject | |
bool | blockSignals (bool b) |
If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it). More... | |
const QObjectList & | children () const |
Returns a list of child objects. More... | |
bool | connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const |
bool | disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0) |
bool | disconnect (const QObject *receiver, const char *member=0) |
void | dumpObjectInfo () |
Dumps information about signal connections, etc. More... | |
void | dumpObjectTree () |
Dumps a tree of children to the debug output. More... | |
QList< QByteArray > | dynamicPropertyNames () const |
Returns the names of all properties that were dynamically added to the object using setProperty(). More... | |
virtual bool | event (QEvent *) |
This virtual function receives events to an object and should return true if the event e was recognized and processed. More... | |
virtual bool | eventFilter (QObject *, QEvent *) |
Filters events if this object has been installed as an event filter for the watched object. More... | |
template<typename T > | |
T | findChild (const QString &aName=QString()) const |
Returns the child of this object that can be cast into type T and that is called name, or 0 if there is no such object. More... | |
template<typename T > | |
QList< T > | findChildren (const QString &aName=QString()) const |
Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects. More... | |
template<typename T > | |
QList< T > | findChildren (const QRegExp &re) const |
bool | inherits (const char *classname) const |
Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false. More... | |
void | installEventFilter (QObject *) |
Installs an event filter filterObj on this object. More... | |
bool | isWidgetType () const |
Returns true if the object is a widget; otherwise returns false. More... | |
void | killTimer (int id) |
Kills the timer with timer identifier, id. More... | |
virtual const QMetaObject * | metaObject () const |
Returns a pointer to the meta-object of this object. More... | |
void | moveToThread (QThread *thread) |
Changes the thread affinity for this object and its children. More... | |
QString | objectName () const |
QObject * | parent () const |
Returns a pointer to the parent object. More... | |
QVariant | property (const char *name) const |
Returns the value of the object's name property. More... | |
Q_INVOKABLE | QObject (QObject *parent=0) |
Constructs an object with parent object parent. More... | |
void | removeEventFilter (QObject *) |
Removes an event filter object obj from this object. More... | |
void | setObjectName (const QString &name) |
void | setParent (QObject *) |
Makes the object a child of parent. More... | |
bool | setProperty (const char *name, const QVariant &value) |
Sets the value of the object's name property to value. More... | |
void | setUserData (uint id, QObjectUserData *data) |
bool | signalsBlocked () const |
Returns true if signals are blocked; otherwise returns false. More... | |
int | startTimer (int interval) |
Starts a timer and returns a timer identifier, or returns zero if it could not start a timer. More... | |
QThread * | thread () const |
Returns the thread in which the object lives. More... | |
QObjectUserData * | userData (uint id) const |
virtual | ~QObject () |
Destroys the object, deleting all its child objects. 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... | |
virtual void | blit (const QImage &img, const QPoint &topLeft, const QRegion ®ion) |
Copies the given region in the given image to the point specified by topLeft using device coordinates. More... | |
void | blit (QWSWindow *bs, const QRegion &clip) |
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... | |
virtual QWSWindowSurface * | createSurface (QWidget *widget) const |
Creates and returns a new window surface for the given widget. More... | |
virtual QWSWindowSurface * | createSurface (const QString &key) const |
Creates and returns a new window surface matching the given key. 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... | |
virtual void | exposeRegion (QRegion r, int changing) |
This function is called by the Qt for Embedded Linux server whenever a screen update is required. More... | |
QGraphicsSystem * | graphicsSystem () const |
virtual void | haltUpdates () |
int | height () const |
Returns the logical height of the framebuffer in pixels. More... | |
virtual bool | isInterlaced () const |
Returns true if the display is interlaced (i. More... | |
virtual bool | isTransformed () const |
Returns true if the screen is transformed (for instance, rotated 90 degrees); otherwise returns false. More... | |
int | linestep () const |
Returns the length of each scanline of the framebuffer in bytes. More... | |
virtual QSize | mapFromDevice (const QSize &) const |
Maps the given size from the framebuffer coordinate system to the coordinate space used by the application. More... | |
virtual QPoint | mapFromDevice (const QPoint &, const QSize &) const |
Maps the given point from the framebuffer coordinate system to the coordinate space used by the application, passing the device's screenSize as argument. More... | |
virtual QRect | mapFromDevice (const QRect &, const QSize &) const |
Maps the given rectangle from the framebuffer coordinate system to the coordinate space used by the application, passing the device's screenSize as argument. 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 QRegion | mapFromDevice (const QRegion &, const QSize &) const |
Maps the given region from the framebuffer coordinate system to the coordinate space used by the application, passing the device's screenSize as argument. More... | |
virtual QSize | mapToDevice (const QSize &) const |
Maps the given size from the coordinate space used by the application to the framebuffer coordinate system. More... | |
virtual QPoint | mapToDevice (const QPoint &, const QSize &) const |
Maps the given point from the coordinate space used by the application to the framebuffer coordinate system, passing the device's screenSize as argument. More... | |
virtual QRect | mapToDevice (const QRect &, const QSize &) const |
Maps the given rectangle from the coordinate space used by the application to the framebuffer coordinate system, passing the device's screenSize as argument. 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... | |
virtual QRegion | mapToDevice (const QRegion &, const QSize &) const |
Maps the given region from the coordinate space used by the application to the framebuffer coordinate system, passing the device's screenSize as argument. More... | |
virtual int | memoryNeeded (const QString &) |
QT_DEPRECATED int | numCols () |
QPoint | offset () const |
Returns the logical offset of the screen, i. More... | |
virtual bool | onCard (const unsigned char *) const |
Returns true if the specified buffer is within the graphics card's memory; otherwise returns false (i.e. More... | |
virtual bool | onCard (const unsigned char *, ulong &out_offset) const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.If the specified buffer is within the graphics card's memory, this function stores the offset from the start of graphics card memory (in bytes), in the location specified by the offset parameter. 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... | |
virtual QRegion | region () const |
Returns the region covered by this screen driver. More... | |
virtual void | resumeUpdates () |
int | screenSize () const |
Returns the size of the screen in bytes. More... | |
void | setOffset (const QPoint &p) |
virtual void | solidFill (const QColor &color, const QRegion ®ion) |
Fills the given region of the screen with the specified color. More... | |
int | subScreenIndexAt (const QPoint &p) const |
Returns the index of the subscreen at the given position; returns -1 if no screen is found. More... | |
virtual QList< QScreen * > | subScreens () const |
virtual bool | supportsDepth (int) const |
Returns true if the screen supports the specified color depth; otherwise returns false. More... | |
int | totalSize () const |
Returns the size of the available graphics card memory (including the screen) in bytes. More... | |
virtual int | transformOrientation () const |
Returns the current rotation as an integer value. More... | |
int | width () const |
Returns the logical width of the framebuffer in pixels. More... | |
virtual | ~QScreen () |
Destroys this screen driver. More... | |
Public Variables | |
QLinuxFb_Shared * | shared |
Protected Functions | |
void | deleteEntry (uchar *) |
Deletes the specified memoryBlock allocated from the graphics card memory. More... | |
virtual void | fixupScreenInfo (fb_fix_screeninfo &finfo, fb_var_screeninfo &vinfo) |
Adjust the values returned by the framebuffer driver, to work around driver bugs or nonstandard behavior in certain drivers. More... | |
Protected Functions inherited from QObject | |
virtual void | childEvent (QChildEvent *) |
This event handler can be reimplemented in a subclass to receive child events. More... | |
virtual void | connectNotify (const char *signal) |
This virtual function is called when something has been connected to signal in this object. More... | |
virtual void | customEvent (QEvent *) |
This event handler can be reimplemented in a subclass to receive custom events. More... | |
virtual void | disconnectNotify (const char *signal) |
This virtual function is called when something has been disconnected from signal in this object. More... | |
QObject (QObjectPrivate &dd, QObject *parent=0) | |
int | receivers (const char *signal) const |
Returns the number of receivers connected to the signal. More... | |
QObject * | sender () const |
Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns 0. More... | |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *) |
This event handler can be reimplemented in a subclass to receive timer events for the object. 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) |
Static Protected Functions | |
static void | clearCache (QScreen *instance, int) |
Removes all entries from the cache for the specified screen instance and client identified by the given clientId. More... | |
Protected Variables | |
int | cacheStart |
bool | canaccel |
int | dataoffset |
Protected Variables inherited from QFbScreen | |
QPlatformSoftwareCursor * | cursor |
int | mDepth |
QImage::Format | mFormat |
QRect | mGeometry |
QSize | mPhysicalSize |
QImage * | mScreenImage |
QTimer | redrawTimer |
QRegion | repaintRegion |
QList< QFbWindow * > | windowStack |
Protected Variables inherited from QObject | |
QScopedPointer< QObjectData > | d_ptr |
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... | |
Private Functions | |
void | createPalette (fb_cmap &cmap, fb_var_screeninfo &vinfo, fb_fix_screeninfo &finfo) |
void | delete_entry (int) |
void | insert_entry (int, int, int) |
void | setPixelFormat (struct fb_var_screeninfo) |
void | setupOffScreen () |
Properties | |
int | bytesPerLine |
QPainter * | compositePainter |
QLinuxFbScreenPrivate * | d_ptr |
uchar * | data |
QImage * | mFbScreenImage |
Additional Inherited Members | |
Signals inherited from QObject | |
void | destroyed (QObject *=0) |
This signal is emitted immediately before the object obj is destroyed, and can not be blocked. More... | |
Static Public Functions inherited from QPlatformScreen | |
static QPlatformScreen * | platformScreenForWidget (const QWidget *widget) |
Static Public Functions inherited from QObject | |
static bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection) |
Creates a connection of the given type from the signal in the sender object to the method in the receiver object. More... | |
static bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection) |
static bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member) |
Disconnects signal in object sender from method in object receiver. More... | |
static bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member) |
static uint | registerUserData () |
static QString | tr (const char *sourceText, const char *comment=0, int n=-1) |
static QString | trUtf8 (const char *sourceText, const char *comment=0, int n=-1) |
Static Public Functions inherited from QScreen | |
static QScreen * | instance () |
Returns a pointer to the application's QScreen instance. More... | |
Static Public Variables inherited from QObject | |
static const QMetaObject | staticMetaObject |
This variable stores the meta-object for the class. More... | |
Protected Slots inherited from QFbScreen | |
virtual QRegion | doRedraw () |
Static Protected Variables inherited from QObject | |
static const QMetaObject | staticQtMetaObject |
Static Protected Variables inherited from QScreen | |
static ClearCacheFunc | clearCacheFunc = 0 |
Related Functions inherited from QObject | |
T | qFindChildqFindChildren (const QObject *obj, const QString &name)() |
QList< T > | qFindChildrenqFindChildren (const QObject *obj, const QString &name)() |
QList< T > | qFindChildrenqFindChildren (const QObject *obj, const QRegExp ®Exp)() |
T * | qobject_cast (QObject *object) |
QObjectList | |
void * | qt_find_obj_child (QObject *parent, const char *type, const QString &name) |
Returns a pointer to the object named name that inherits type and with a given parent. More... | |
Related Functions inherited from QScreen | |
void | setTransformation (int transformation, int screenNo) |
Here it is. More... | |
The QLinuxFbScreen class implements a screen driver for the Linux framebuffer.
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.
The QLinuxFbScreen class provides the cache() function allocating off-screen graphics memory, and the complementary uncache() function releasing the allocated memory. The latter function will first sync the graphics card to ensure the memory isn't still being used by a command in the graphics card FIFO queue. The deleteEntry() function deletes the given memory block without such synchronization. Given the screen instance and client id, the memory can also be released using the clearCache() function, but this should only be necessary if a client exits abnormally.
In addition, when in paletted graphics modes, the set() function provides the possibility of setting a specified color index to a given RGB value.
The QLinuxFbScreen class also acts as a factory for the unaccelerated screen cursor and the unaccelerated raster-based implementation of QPaintEngine (QRasterPaintEngine
); accelerated drivers for Linux should derive from this class.
Definition at line 80 of file qscreenlinuxfb_qws.h.
This enum describes the driver type.
Enumerator | |
---|---|
GenericDriver | |
EInk8Track |
Definition at line 91 of file qscreenlinuxfb_qws.h.
|
explicit |
Constructs a QLinuxFbScreen object.
The displayId argument identifies the Qt for Embedded Linux server to connect to.
Definition at line 264 of file qscreenlinuxfb_qws.cpp.
|
virtual |
QLinuxFbScreen::QLinuxFbScreen | ( | uchar * | d, |
int | w, | ||
int | h, | ||
int | lstep, | ||
QImage::Format | screenFormat | ||
) |
Definition at line 818 of file qlinuxfbintegration.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QScreen.
Definition at line 1302 of file qscreenlinuxfb_qws.cpp.
Referenced by initDevice().
|
virtual |
Requests the specified amount of offscreen graphics card memory from the memory manager, and returns a pointer to the data within the framebuffer (or 0 if there is no free memory).
Note that the display is locked while memory is allocated in order to preserve the memory pool's integrity.
Use the QScreen::onCard() function to retrieve an offset (in bytes) from the start of graphics card memory for the returned pointer.
Reimplemented from QScreen.
Definition at line 915 of file qscreenlinuxfb_qws.cpp.
|
staticprotected |
Removes all entries from the cache for the specified screen instance and client identified by the given clientId.
Calling this function should only be necessary if a client exits abnormally.
Definition at line 1040 of file qscreenlinuxfb_qws.cpp.
Referenced by QLinuxFbScreen().
|
virtual |
This is called by Qt for Embedded Linux clients to map in the framebuffer.
Reimplemented Function
It should be reimplemented by accelerated drivers to map in graphics card registers; those drivers should then call this function in order to set up offscreen memory management. The device is specified in displaySpec; e.g. "/dev/fb".
Implements QScreen.
Definition at line 300 of file qscreenlinuxfb_qws.cpp.
Referenced by setMode().
|
private |
Definition at line 554 of file qscreenlinuxfb_qws.cpp.
Referenced by connect(), and initDevice().
|
private |
Definition at line 836 of file qscreenlinuxfb_qws.cpp.
Referenced by clearCache(), and deleteEntry().
|
protected |
Deletes the specified memoryBlock allocated from the graphics card memory.
Definition at line 1010 of file qscreenlinuxfb_qws.cpp.
Referenced by uncache().
|
virtual |
This unmaps the framebuffer.
Reimplemented Function
Implements QScreen.
Definition at line 544 of file qscreenlinuxfb_qws.cpp.
Referenced by setMode().
|
slot |
Definition at line 863 of file qlinuxfbintegration.cpp.
|
protectedvirtual |
Adjust the values returned by the framebuffer driver, to work around driver bugs or nonstandard behavior in certain drivers.
finfo and vinfo specify the fixed and variable screen info returned by the driver.
Definition at line 193 of file qscreenlinuxfb_qws.cpp.
Referenced by connect(), initDevice(), and setMode().
|
virtual |
This is called by the Qt for Embedded Linux server at startup time.
Reimplemented Function
It turns off console blinking, sets up the color palette, enables write combining on the framebuffer and initialises the off-screen memory manager.
Implements QScreen.
Definition at line 696 of file qscreenlinuxfb_qws.cpp.
|
private |
Definition at line 864 of file qscreenlinuxfb_qws.cpp.
Referenced by cache(), and initDevice().
|
virtual |
This is called when the virtual console is switched back to Qt for Embedded Linux and restores the palette.
Reimplemented Function
Reimplemented from QScreen.
Definition at line 1234 of file qscreenlinuxfb_qws.cpp.
|
virtual |
This doesn't do anything; accelerated drivers may wish to reimplement it to save graphics cards registers.
Reimplemented Function
It's called by the Qt for Embedded Linux server when the virtual console is switched.
Reimplemented from QScreen.
Definition at line 1218 of file qscreenlinuxfb_qws.cpp.
|
virtual |
Sets the specified color index to the specified RGB value, (red, green, blue), when in paletted graphics modes.
Reimplemented from QScreen.
Definition at line 1119 of file qscreenlinuxfb_qws.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QScreen.
Definition at line 1282 of file qscreenlinuxfb_qws.cpp.
|
virtual |
Reimplemented from QFbScreen.
Definition at line 849 of file qlinuxfbintegration.cpp.
|
virtual |
Reimplemented from QFbScreen.
Definition at line 835 of file qlinuxfbintegration.cpp.
|
virtual |
Sets the framebuffer to a new resolution and bit depth.
Reimplemented Function
The width is in nw, the height is in nh, and the depth is in nd. After doing this any currently-existing paint engines will be invalid and the screen should be completely redrawn. In a multiple-process Embedded Qt situation you must signal all other applications to call setMode() to the same mode and redraw.
Implements QScreen.
Definition at line 1160 of file qscreenlinuxfb_qws.cpp.
|
private |
Definition at line 1327 of file qscreenlinuxfb_qws.cpp.
Referenced by connect().
|
private |
Definition at line 1056 of file qscreenlinuxfb_qws.cpp.
Referenced by connect().
|
virtual |
Reimplemented from QScreen.
Definition at line 1272 of file qscreenlinuxfb_qws.cpp.
|
virtual |
This is called by the Qt for Embedded Linux server when it shuts down, and should be inherited if you need to do any card-specific cleanup.
Reimplemented Function
The default version hides the screen cursor and reenables the blinking cursor and screen blanking.
Reimplemented from QScreen.
Definition at line 1091 of file qscreenlinuxfb_qws.cpp.
|
virtual |
Deletes the specified memoryBlock allocated from the graphics card memory.
Note that the display is locked while memory is unallocated in order to preserve the memory pool's integrity.
This function will first sync the graphics card to ensure the memory isn't still being used by a command in the graphics card FIFO queue. It is possible to speed up a driver by overriding this function to avoid syncing. For example, the driver might delay deleting the memory until it detects that all commands dealing with the memory are no longer in the queue. Note that it will then be up to the driver to ensure that the specified memoryBlock no longer is being used.
Reimplemented from QScreen.
Definition at line 995 of file qscreenlinuxfb_qws.cpp.
|
virtual |
Definition at line 1415 of file qscreenlinuxfb_qws.cpp.
Referenced by connect().
|
private |
Definition at line 64 of file qlinuxfbintegration.h.
Referenced by QLinuxFbScreen(), setFormat(), and setGeometry().
|
protected |
Definition at line 113 of file qscreenlinuxfb_qws.h.
Referenced by cache(), and setupOffScreen().
|
protected |
Definition at line 111 of file qscreenlinuxfb_qws.h.
Referenced by cache(), clearCache(), connect(), initDevice(), and QLinuxFbScreen().
|
private |
Definition at line 66 of file qlinuxfbintegration.h.
Referenced by doRedraw(), setFormat(), and setGeometry().
|
private |
Definition at line 126 of file qscreenlinuxfb_qws.h.
Referenced by blank(), connect(), disconnect(), initDevice(), restore(), set(), setDirty(), setMode(), shutdownDevice(), useOffscreen(), and ~QLinuxFbScreen().
|
private |
Definition at line 63 of file qlinuxfbintegration.h.
Referenced by cache(), connect(), deleteEntry(), disconnect(), QLinuxFbScreen(), setFormat(), setGeometry(), and setupOffScreen().
|
protected |
Definition at line 112 of file qscreenlinuxfb_qws.h.
Referenced by connect(), and disconnect().
|
private |
Definition at line 62 of file qlinuxfbintegration.h.
Referenced by doRedraw(), QLinuxFbScreen(), setFormat(), and setGeometry().
QLinuxFb_Shared* QLinuxFbScreen::shared |
Definition at line 105 of file qscreenlinuxfb_qws.h.
Referenced by initDevice(), and sharedRamSize().