44 #ifndef QT_NO_QWS_PROXYSCREEN 49 #ifndef QT_NO_QWS_CURSOR 170 #endif // QT_NO_QWS_CURSOR 243 #if Q_BYTE_ORDER == Q_BIG_ENDIAN 250 #ifdef QT_QWS_CLIENTBLIT 251 setSupportsBlitInClients(
realScreen->supportsBlitInClients());
267 return capture.
toInt();
298 for (
int i = 0; i < rects.
size(); ++i)
647 #endif // QT_NO_QWS_PROXYSCREEN 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 * screenCursor() const
Returns the real screen cursor used by the proxy screen cursor.
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).
bool frameBufferLittleEndian() const
int height() const
Returns the logical height of the framebuffer in pixels.
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.
void disconnect()
Reimplemented Function
void setScreen(QScreen *screen)
Sets the real screen to be used by the proxy screen.
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 *)
void blank(bool on)
Reimplemented Function
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 ...
QProxyScreen(int display_id, ClassId=ProxyClass)
Constructs a proxy screen with the given displayId and classId.
int sharedRamSize(void *)
void setScreenCursor(QScreenCursor *cursor)
Sets the real screen cursor to be used for the proxy screen cursor to the cursor specified.
void save()
Reimplemented Function
virtual void restore()
Restores the previously saved state of the graphics card.
bool isInterlaced() const
Reimplemented Function
QRegion region() const
Reimplemented Function
virtual void setMode(int, int, int)=0
Implement this function to reset the framebuffer's resolution (width and height) and bit depth...
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
Q_GUI_EXPORT QScreen * qt_get_screen(int display_id, const char *spec)
int deviceWidth() const
Returns the physical width of the framebuffer device in pixels.
virtual QSize mapFromDevice(const QSize &) const
Maps the given size from the framebuffer coordinate system to the coordinate space used by the applic...
int physHeight
the physical height of the screen in millimeters.
The QString class provides a Unicode character string.
int size
the number of bytes in the visible region of the frame buffer
QProxyScreenCursorPrivate * d_ptr
bool isTransformed() const
Reimplemented Function
virtual void setDirty(const QRect &)
Marks the given rectangle as dirty.
PixelType pixeltype
set to BGRPixel
int physWidth
the physical width of the screen in millimeters.
QImage image() const
Returns the cursor's image.
virtual QSize mapToDevice(const QSize &) const
Maps the given size from the coordinate space used by the application to the framebuffer coordinate s...
void setPixelFormat(QImage::Format format)
Sets the screen's pixel format to format.
bool initDevice()
This function is called by the Qt for Embedded Linux server to initialize the framebuffer.
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...
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.
int transformOrientation() const
Reimplemented Function
#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.
virtual void resumeUpdates()
QScreenCursor * realCursor
void exposeRegion(QRegion r, int changing)
Reimplemented Function
virtual bool initDevice()=0
This function is called by the Qt for Embedded Linux server to initialize the framebuffer.
int w
the logical width of the screen.
The QImage class provides a hardware-independent image representation that allows direct access to th...
void setDirty(const QRect &)
Reimplemented Function
void hide()
Reimplemented Function
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.
~QProxyScreenCursor()
Destroys the proxy screen cursor.
QSize mapFromDevice(const QSize &s) const
Reimplemented Function
int memoryNeeded(const QString &)
const T & at(int i) const
Returns the item at index position i in the vector.
QSize size() const
Returns the size of the image, i.
virtual void hide()
Hides the cursor from the screen.
bool supportsDepth(int) const
Reimplemented Function
virtual QWSWindowSurface * createSurface(QWidget *widget) const
Creates and returns a new window surface for the given widget.
const char * constData() const
Returns a pointer to the data stored in the byte array.
static int getDisplayId(const QString &spec)
Returns the display ID that corresponds to the given spec.
void show()
Reimplemented Function
uchar * base() const
Returns a pointer to the beginning of the framebuffer.
virtual void blank(bool on)
Prevents the screen driver form displaying any content on the screen.
void blit(const QImage &img, const QPoint &topLeft, const QRegion ®ion)
Reimplemented Function
QImage::Format pixelFormat() const
Returns the pixel format of the screen, or QImage::Format_Invalid if the pixel format is not a suppor...
virtual void save()
Saves the current state of the graphics card.
virtual int memoryNeeded(const QString &)
void set(const QImage &image, int hotx, int hoty)
Reimplemented Function
bool onCard(const unsigned char *) const
Reimplemented Function
int deviceHeight() const
Returns the full height of the framebuffer device in pixels.
virtual void haltUpdates()
void restore()
Reimplemented Function
ClassId
This enum defines the class identifiers for the known screen subclasses.
virtual bool isInterlaced() const
Returns true if the display is interlaced (i.
void setFrameBufferLittleEndian(bool littleEndian)
virtual QList< QScreen * > subScreens() const
virtual bool isTransformed() const
Returns true if the screen is transformed (for instance, rotated 90 degrees); otherwise returns false...
The QPoint class defines a point in the plane using integer precision.
QVector< QRect > rects() const
Returns an array of non-overlapping rectangles that make up the region.
QProxyScreenCursor()
Constructs a proxy screen cursor.
~QProxyScreen()
Destroys the proxy screen.
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...
void shutdownDevice()
Reimplemented Function
virtual int transformOrientation() const
Returns the current rotation as an integer value.
QWSWindowSurface * createSurface(QWidget *widget) const
Reimplemented Function
virtual bool onCard(const unsigned char *) const
Returns true if the specified buffer is within the graphics card's memory; otherwise returns false (i...
QSize mapToDevice(const QSize &s) const
Reimplemented Function
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.
QList< QScreen * > subScreens() const
Reimplemented Function
int h
the logical height of the screen.
QScreen * screen() const
Returns the real screen used by the proxy screen.
virtual bool supportsDepth(int) const
Returns true if the screen supports the specified color depth; otherwise returns false.
virtual void exposeRegion(QRegion r, int changing)
This function is called by the Qt for Embedded Linux server whenever a screen update is required...
virtual void show()
Shows the mouse cursor.
int physicalWidth() const
Returns the physical width of the screen in millimeters.
int screenSize() const
Returns the size of the screen in bytes.
int size() const
Returns the number of items in the vector.
void move(int x, int y)
Reimplemented Function
void setMode(int width, int height, int depth)
Reimplemented Function
bool connect(const QString &displaySpec)
Reimplemented Function
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.
The QList class is a template class that provides lists.
void solidFill(const QColor &color, const QRegion ®ion)
Reimplemented Function