42 #ifndef QT_NO_QWS_QVFB 44 #define QTOPIA_QVFB_BRIGHTNESS 47 #include <sys/types.h> 81 #ifndef QT_NO_QWS_KEYBOARD 90 #ifndef QT_NO_QWS_KEYBOARD 100 #ifndef QT_NO_QWS_KEYBOARD 210 #if Q_BYTE_ORDER == Q_BIG_ENDIAN 211 #ifndef QT_QWS_FRAMEBUFFER_LITTLE_ENDIAN 217 int shmId = shmget(key, 0, 0);
219 d_ptr->
shmrgn = (
unsigned char *)shmat(shmId, 0, 0);
267 for (
int i = 0; i < displayArgs.
size(); ++i) {
273 for (
int i = 0; i < displayArgs.
size(); ++i) {
284 int pw = displayArgs.
at(dimIdxW).
mid(pos).
toInt(&ok);
296 int ph = displayArgs.
at(dimIdxH).
mid(pos).
toInt(&ok);
303 if (dimIdxW < 0 && dimIdxH < 0) {
309 qDebug(
"Connected to VFB server %s: %d x %d x %d %dx%dmm (%dx%ddpi)", displaySpec.
toLatin1().
data(),
338 #ifndef QT_NO_QWS_MOUSE_QVFB 346 #if !defined(QT_NO_QWS_KBD_QVFB) && !defined(QT_NO_QWS_KEYBOARD) 359 for(
int loopc=0;loopc<256;loopc++) {
365 for(
int ir = 0x0; ir <= 0xff; ir+=0x33) {
366 for(
int ig = 0x0; ig <= 0xff; ig+=0x33) {
367 for(
int ib = 0x0; ib <= 0xff; ib+=0x33) {
379 for (
int idx = 0; idx < 16; idx++, val += 17) {
393 #ifndef QT_NO_QWS_CURSOR 426 void QVFbScreen::setBrightness(
int b)
435 const int br = connected->
d_ptr->
blank ? 0 : b;
449 #endif // QT_NO_QWS_QVFB int screencols
the number of entries in the color table
virtual void restore()
Reimplemented Function
The QWSKeyboardHandler class is a base class for keyboard drivers in Qt for Embedded Linux...
Q_CORE_EXPORT QByteArray qgetenv(const char *varName)
virtual void blank(bool)
Prevents the screen driver form displaying any content on the screen.
#define QT_END_NAMESPACE
This macro expands to.
char * data()
Returns a pointer to the data stored in the byte array.
const QChar at(int i) const
Returns the character at the given index position in the string.
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 ...
static void setDefaultMouse(const char *)
Sets the mouse driver that will be used if the QWS_MOUSE_PROTO environment variable is not defined...
QRect united(const QRect &other) const
Returns the bounding rectangle of this rectangle and the given rectangle.
The QWSMouseHandler class is a base class for mouse drivers in Qt for Embedded Linux.
The QVFbScreen class implements a screen driver for the virtual framebuffer.
QRgb screenclut[256]
the color table
QRect translated(int dx, int dy) const
Returns a copy of the rectangle that is translated dx along the x axis and dy along the y axis...
QVFbScreenPrivate * d_ptr
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
QRect boundingRect() const
Returns the bounding rectangle of this region.
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
static void initSoftwareCursor()
Initializes the screen cursor.
PixelType pixeltype
set to BGRPixel
int physWidth
the physical width of the screen in millimeters.
void setPixelFormat(QImage::Format format)
Sets the screen's pixel format to format.
Q_CORE_EXPORT void qDebug(const char *,...)
virtual QRegion region() const
Returns the region covered by this screen driver.
uchar * data
points to the first visible pixel in the frame buffer.
#define QT_BEGIN_NAMESPACE
This macro expands to.
QWSKeyboardHandler * keyboard
#define QT_VFB_KEYBOARD_PIPE(DISPLAY)
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.
static int toInt(const QByteArray &str)
The QLatin1String class provides a thin wrapper around an US-ASCII/Latin-1 encoded string literal...
QVFbScreen(int display_id)
Constructs a QVNCScreen object.
QBool contains(const QString &str, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the list contains the string str; otherwise returns false.
QByteArray toLatin1() const Q_REQUIRED_RESULT
Returns a Latin-1 representation of the string as a QByteArray.
virtual void disconnect()
Reimplemented Function
static void setDefaultKeyboard(const char *)
Sets the keyboard driver that will be used if the QWS_KEYBOARD environment variable is not defined...
virtual bool connect(const QString &displaySpec)
Reimplemented Function
virtual void setMode(int nw, int nh, int nd)
Reimplemented Function
virtual ~QVFbScreen()
Destroys this QVFbScreen object.
#define QT_VFB_MOUSE_PIPE(DISPLAY)
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...
void setFrameBufferLittleEndian(bool littleEndian)
Q_GUI_EXPORT_INLINE QRgb qRgb(int r, int g, int b)
int size() const
Returns the number of items in the list.
The QRect class defines a rectangle in the plane using integer precision.
bool grayscale
the gray scale screen mode flag
The QScreen class is a base class for screen drivers in Qt for Embedded Linux.
virtual void shutdownDevice()
Reimplemented Function
virtual bool initDevice()
Reimplemented Function
int lstep
the number of bytes representing a line in the frame buffer.
virtual void save()
Reimplemented Function
static QVFbScreen * connected
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 h
the logical height of the screen.
int mapsize
the total number of bytes in the frame buffer
virtual void setDirty(const QRect &r)
Reimplemented Function
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
Q_DECL_CONSTEXPR int qRound(qreal d)
QPoint offset() const
Returns the logical offset of the screen, i.
QWSServer Q_GUI_EXPORT * qwsServer
void setScreen(const QScreen *screen)
Sets the screen for this mouse driver to be the given screen.
#define QT_VERSION
This macro expands a numeric value of the form 0xMMNNPP (MM = major, NN = minor, PP = patch) that spe...