44 #ifndef QT_NO_QWS_MULTISCREEN 53 #ifndef QT_NO_QWS_CURSOR 62 void move(
int x,
int y);
102 oldCursor->move(x, y);
107 if (newIndex != -1) {
112 if (oldCursor->isVisible())
117 newCursor->
move(x, y);
146 #ifndef QT_NO_QWS_CURSOR 152 #ifndef QT_NO_QWS_CURSOR 159 #ifndef QT_NO_QWS_CURSOR 178 #ifndef QT_NO_QWS_CURSOR 183 for (
int i = 0; i < n; ++i) {
186 #ifndef QT_NO_QWS_CURSOR 191 #ifndef QT_NO_QWS_CURSOR 204 return capture.
toInt();
212 if (regexp.
indexIn(spec) == -1)
215 const int x = regexp.
cap(1).
toInt();
216 const int y = regexp.
cap(2).
toInt();
229 dSpec = dSpec.
left(dSpec.
size() - displayIdSpec.
size());
232 foreach (
QString spec, specs) {
235 spec.
append(
":noDisablePainting");
274 for (
int i = 0; i < n; ++i)
281 for (
int i = 0; i < n; ++i)
298 for (
int i = 0; i < n; ++i)
305 for (
int i = 0; i < n; ++i)
312 for (
int i = 0; i < n; ++i)
319 for (
int i = 0; i < n; ++i)
328 for (
int i = 0; i < n; ++i)
337 for (
int i = 0; i < n; ++i)
348 for (
int i = 0; i < n; ++i)
357 for (
int i = 0; i < n; ++i)
365 for (
int i = 0; i < n; ++i)
372 for (
int i = 0; i < n; ++i)
379 for (
int i = 0; i < n; ++i) {
391 for (
int i = 0; i < n; ++i) {
404 for (
int i = 0; i < n; ++i) {
409 screen->
blit(img, topLeft, r);
416 for (
int i = 0; i < n; ++i) {
428 for (
int i = 0; i < n; ++i) {
442 for (
int i = 0; i < n; ++i) {
486 #endif // QT_NO_QWS_MULTISCREEN Q_GUI_EXPORT QScreen * qt_screen
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.
QScreenCursor * currentCursor
bool initDevice()
This function is called by the Qt for Embedded Linux server to initialize the framebuffer.
bool onCard(const unsigned char *) const
Returns true if the specified buffer is within the graphics card's memory; otherwise returns false (i...
The QWSWindowSurface class provides the drawing area for top-level windows in Qt for Embedded Linux...
virtual void move(int x, int y)
Moves the mouse cursor to the given position, i.e., (x, y).
int height() const
Returns the logical height of the framebuffer in pixels.
void move(int x, int y)
Moves the mouse cursor to the given position, i.e., (x, y).
void exposeRegion(QRegion r, int changing)
This function is called by the Qt for Embedded Linux server whenever a screen update is required...
void setOffset(const QPoint &p)
QString cap(int nth=0) const
Returns the text captured by the nth subexpression.
#define QT_END_NAMESPACE
This macro expands to.
int lastIndexIn(const QString &str, int offset=-1, CaretMode caretMode=CaretAtZero) const
Attempts to find a match backwards in str from position offset.
QPointer< QWidget > widget
virtual int sharedRamSize(void *)
int physicalHeight() const
Returns the physical height of the screen in millimeters.
The QRegExp class provides pattern matching using regular expressions.
int toInt(bool *ok=0, int base=10) const
Returns the string converted to an int using base base, which is 10 by default and must be between 2 ...
bool connect(const QString &displaySpec)
This function is called by every Qt for Embedded Linux application on startup, and must be implemente...
void setCurrentCursor(QScreenCursor *newCursor)
QMultiScreen(int displayId)
virtual void restore()
Restores the previously saved state of the graphics card.
int pos(int nth=0) const
Returns the position of the nth captured text in the searched string.
int matchedLength() const
Returns the length of the last matched string, or -1 if there was no match.
int width() const
Returns the width of the rectangle.
bool startsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string starts with s; otherwise returns false.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
Q_GUI_EXPORT QScreen * qt_get_screen(int display_id, const char *spec)
int count(const T &t) const
Returns the number of occurrences of value in the list.
QRect boundingRect() const
Returns the bounding rectangle of this region.
int physHeight
the physical height of the screen in millimeters.
int height() const
Returns the height of the rectangle.
The QString class provides a Unicode character string.
QRegion region() const
Returns the region covered by this screen driver.
int size
the number of bytes in the visible region of the frame buffer
virtual void setDirty(const QRect &)
Marks the given rectangle as dirty.
void removeSubScreen(QScreen *screen)
void hide()
Hides the cursor from the screen.
void addCursor(QScreenCursor *cursor)
QList< QScreenCursor * > cursors
int physWidth
the physical width of the screen in millimeters.
QImage image() const
Returns the cursor's image.
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...
void shutdownDevice()
This function is called by the Qt for Embedded Linux server before it calls the disconnect() function...
bool supportsDepth(int) const
Returns true if the screen supports the specified color depth; otherwise returns false.
The QWSWindow class encapsulates a top-level window in Qt for Embedded Linux.
void addSubScreen(QScreen *screen)
virtual void disconnect()=0
This function is called by every Qt for Embedded Linux application before exiting, and must be implemented to unmap the framebuffer.
virtual QRegion region() const
Returns the region covered by this screen driver.
int width() const
Returns the logical width of the framebuffer in pixels.
uchar * data
points to the first visible pixel in the frame buffer.
void append(const T &t)
Inserts value at the end of the list.
void setMode(int, int, int)
Implement this function to reset the framebuffer's resolution (width and height) and bit depth...
#define QT_BEGIN_NAMESPACE
This macro expands to.
virtual void resumeUpdates()
void blank(bool on)
Prevents the screen driver form displaying any content on the screen.
QPoint bottomRight() const
Returns the position of the rectangle's bottom-right corner.
int indexIn(const QString &str, int offset=0, CaretMode caretMode=CaretAtZero) const
Attempts to find a match in str from position offset (0 by default).
QString left(int n) const Q_REQUIRED_RESULT
Returns a substring that contains the n leftmost characters of the string.
int size() const
Returns the number of characters in this string.
static int getDisplayId(const QString &spec)
bool isEmpty() const
Returns true if the region is empty; otherwise returns false.
virtual bool initDevice()=0
This function is called by the Qt for Embedded Linux server to initialize the framebuffer.
QList< QScreen * > screens
const T & at(int i) const
Returns the item at index position i in the list.
The QStringList class provides a list of strings.
int w
the logical width of the screen.
The QImage class provides a hardware-independent image representation that allows direct access to th...
bool contains(const QPoint &p) const
Returns true if the region contains the point p; otherwise returns false.
void show()
Shows the mouse cursor.
The QLatin1String class provides a thin wrapper around an US-ASCII/Latin-1 encoded string literal...
The QRegion class specifies a clip region for a painter.
const T * ptr(const T &t)
QByteArray toLatin1() const Q_REQUIRED_RESULT
Returns a Latin-1 representation of the string as a QByteArray.
void set(const QImage &image, int hotx, int hoty)
Sets the cursor's image to be the given image.
int memoryNeeded(const QString &)
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...
void solidFill(const QColor &color, const QRegion ®ion)
Fills the given region of the screen with the specified color.
virtual void hide()
Hides the cursor from the screen.
QList< QScreen * > subScreens() const
virtual QWSWindowSurface * createSurface(QWidget *widget) const
Creates and returns a new window surface for the given widget.
void save()
Saves the current state of the graphics card.
int sharedRamSize(void *)
const char * constData() const
Returns a pointer to the data stored in the byte array.
QString mid(int position, int n=-1) const Q_REQUIRED_RESULT
Returns a string that contains n characters of this string, starting at the specified position index...
int subScreenIndexAt(const QPoint &p) const
Returns the index of the subscreen at the given position; returns -1 if no screen is found...
QString arg(qlonglong a, int fieldwidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
virtual void blank(bool on)
Prevents the screen driver form displaying any content on the screen.
virtual void save()
Saves the current state of the graphics card.
QString & append(QChar c)
virtual int memoryNeeded(const QString &)
virtual void haltUpdates()
virtual bool isInterlaced() const
Returns true if the display is interlaced (i.
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
virtual QList< QScreen * > subScreens() const
void disconnect()
This function is called by every Qt for Embedded Linux application before exiting, and must be implemented to unmap the framebuffer.
The QPoint class defines a point in the plane using integer precision.
int size() const
Returns the number of items in the list.
QMultiScreenCursor * cursor
void restore()
Restores the previously saved state of the graphics card.
QMultiScreenPrivate * d_ptr
The QRect class defines a rectangle in the plane using integer precision.
The QScreen class is a base class for screen drivers in Qt for Embedded Linux.
virtual void shutdownDevice()
This function is called by the Qt for Embedded Linux server before it calls the disconnect() function...
int y() const
Returns the y coordinate of this point.
virtual bool onCard(const unsigned char *) const
Returns true if the specified buffer is within the graphics card's memory; otherwise returns false (i...
int lstep
the number of bytes representing a line in the frame buffer.
QStringList split(const QString &sep, SplitBehavior behavior=KeepEmptyParts, Qt::CaseSensitivity cs=Qt::CaseSensitive) const Q_REQUIRED_RESULT
Splits the string into substrings wherever sep occurs, and returns the list of those strings...
int x() const
Returns the x coordinate of this point.
int h
the logical height of the screen.
Q_GUI_EXPORT QScreenCursor * qt_screencursor
static QPoint filterDisplayOffset(QString &spec)
QString & remove(int i, int len)
Removes n characters from the string, starting at the given position index, and returns a reference t...
virtual void exposeRegion(QRegion r, int changing)
This function is called by the Qt for Embedded Linux server whenever a screen update is required...
bool endsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string ends with s; otherwise returns false.
void setDirty(const QRect &)
Marks the given rectangle as dirty.
virtual void show()
Shows the mouse cursor.
QWSWindowSurface * createSurface(QWidget *widget) const
Creates and returns a new window surface for the given widget.
int physicalWidth() const
Returns the physical width of the screen in millimeters.
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
virtual void solidFill(const QColor &color, const QRegion ®ion)
Fills the given region of the screen with the specified color.
virtual void set(const QImage &image, int hotx, int hoty)
Sets the cursor's image to be the given image.
QPoint offset() const
Returns the logical offset of the screen, i.
int depth() const
Returns the depth of the framebuffer, in bits per pixel.
bool isInterlaced() const
Returns true if the display is interlaced (i.
The QList class is a template class that provides lists.
QPoint topLeft() const
Returns the position of the rectangle's top-left corner.
int removeAll(const T &t)
Removes all occurrences of value in the list and returns the number of entries removed.