Qt 4.8
|
The QWSDisplay class provides a display for QWS; it is an internal class. More...
#include <qwsdisplay_qws.h>
Classes | |
class | Data |
Public Functions | |
void | addProperty (int winId, int property) |
void | convertSelection (int winId, int selectionProperty, const QString &mimeTypes) |
void | defineCursor (int id, const QBitmap &curs, const QBitmap &mask, int hotX, int hotY) |
int | depth () const |
void | destroyCursor (int id) |
void | destroyRegion (int winId) |
bool | eventPending () const |
void | flushCommands () |
uchar * | frameBuffer () const |
QWSEvent * | getEvent () |
bool | getProperty (int winId, int property, char *&data, int &len) |
void | grabKeyboard (QWidget *w, bool grab) |
void | grabMouse (QWidget *w, bool grab) |
int | height () const |
void | moveRegion (int winId, int dx, int dy) |
void | nameRegion (int winId, const QString &n, const QString &c) |
int | pixmapDepth () const |
void | playSoundFile (const QString &) |
QWSDisplay () | |
void | registerChannel (const QString &channel) |
void | removeProperty (int winId, int property) |
void | repaintRegion (int winId, int windowFlags, bool opaque, QRegion) |
void | requestFocus (int winId, bool get) |
void | requestRegion (int winId, const QString &surfacekey, const QByteArray &surfaceData, const QRegion ®ion) |
void | resetIM () |
void | selectCursor (QWidget *w, unsigned int id) |
void | sendFontCommand (int type, const QByteArray &fontName) |
void | sendIMMouseEvent (int index, bool isPress) |
void | sendIMResponse (int winId, int property, const QVariant &result) |
void | sendIMUpdate (int type, int winId, int widgetid) |
void | sendMessage (const QString &channel, const QString &msg, const QByteArray &data) |
void | setAltitude (int winId, int altitude, bool fixed=false) |
void | setCursorPosition (int x, int y) |
void | setIdentity (const QString &appName) |
void | setOpacity (int winId, int opacity) |
void | setProperty (int winId, int property, int mode, const QByteArray &data) |
void | setProperty (int winId, int property, int mode, const char *data) |
void | setSelectionOwner (int winId, const QTime &time) |
void | setWindowCaption (QWidget *w, const QString &) |
uchar * | sharedRam () const |
int | sharedRamSize () const |
bool | supportsDepth (int) const |
int | takeId () |
QWSQCopMessageEvent * | waitForQCopResponse () |
int | width () const |
int | windowAt (const QPoint &) |
QList< QWSWindowInfo > | windowList () |
~QWSDisplay () | |
Static Public Functions | |
static void | grab () |
static void | grab (bool write) |
static bool | grabbed () |
static bool | initLock (const QString &filename, bool create=false) |
static QWSDisplay * | instance () |
static void | setRawMouseEventFilter (void(*filter)(QWSMouseEvent *)) |
static void | setTransformation (int transformation, int screenNo=-1) |
static void | ungrab () |
Properties | |
Data * | d |
char * | getPropertyData |
int | getPropertyLen |
Static Private Attributes | |
static QLock * | lock = 0 |
Friends | |
class | Data |
class | QApplication |
class | QCopChannel |
void | qt_app_reinit (const QString &newAppName) |
int | qt_fork_qapplication () |
class | QWSDirectPainterSurface |
class | QWSEmbedWidget |
class | QWSEmbedWidgetPrivate |
class | QWSMemorySurface |
class | QWSOnScreenSurface |
The QWSDisplay class provides a display for QWS; it is an internal class.
Definition at line 82 of file qwsdisplay_qws.h.
QWSDisplay::QWSDisplay | ( | ) |
Definition at line 1295 of file qapplication_qws.cpp.
QWSDisplay::~QWSDisplay | ( | ) |
Definition at line 1300 of file qapplication_qws.cpp.
void QWSDisplay::addProperty | ( | int | winId, |
int | property | ||
) |
Definition at line 1367 of file qapplication_qws.cpp.
Referenced by qwsInitClipboard().
void QWSDisplay::convertSelection | ( | int | winId, |
int | selectionProperty, | ||
const QString & | mimeTypes | ||
) |
Definition at line 1665 of file qapplication_qws.cpp.
void QWSDisplay::defineCursor | ( | int | id, |
const QBitmap & | curs, | ||
const QBitmap & | mask, | ||
int | hotX, | ||
int | hotY | ||
) |
Definition at line 1682 of file qapplication_qws.cpp.
int QWSDisplay::depth | ( | ) | const |
Definition at line 1359 of file qapplication_qws.cpp.
void QWSDisplay::destroyCursor | ( | int | id | ) |
Definition at line 1724 of file qapplication_qws.cpp.
void QWSDisplay::destroyRegion | ( | int | winId | ) |
Definition at line 1572 of file qapplication_qws.cpp.
Referenced by isServerProcess(), and QWSDirectPainterSurface::~QWSDirectPainterSurface().
bool QWSDisplay::eventPending | ( | ) | const |
Definition at line 1334 of file qapplication_qws.cpp.
Referenced by QEventDispatcherQWS::hasPendingEvents(), QEventDispatcherQWS::processEvents(), qwsEventSourceCheck(), qwsEventSourceDispatch(), and qwsEventSourcePrepare().
void QWSDisplay::flushCommands | ( | ) |
uchar * QWSDisplay::frameBuffer | ( | ) | const |
Definition at line 1356 of file qapplication_qws.cpp.
QWSEvent * QWSDisplay::getEvent | ( | ) |
Definition at line 1347 of file qapplication_qws.cpp.
Referenced by QEventDispatcherQWS::processEvents(), and qwsEventSourceDispatch().
bool QWSDisplay::getProperty | ( | int | winId, |
int | property, | ||
char *& | data, | ||
int & | len | ||
) |
Definition at line 1407 of file qapplication_qws.cpp.
|
static |
Definition at line 1312 of file qapplication_qws.cpp.
Referenced by QWSServer::beginDisplayReconfigure(), QTransformedScreen::blit(), QScreen::blit(), QLinuxFbScreen::cache(), QLinuxFbScreen::clearCache(), QLinuxFbScreen::deleteEntry(), QWSWindowSurface::flush(), QDirectPainter::lock(), QWSDirectPainterSurface::lock(), QScreen::solidFill(), QWSServerPrivate::update_regions(), QWSDisplay::Data::waitForRegionEvents(), QRfbRawEncoder::write(), and QRfbHextileEncoder< SRC >::write().
|
static |
Definition at line 1317 of file qapplication_qws.cpp.
|
static |
Definition at line 1307 of file qapplication_qws.cpp.
Referenced by QWSDisplay::Data::waitForRegionEvents().
void QWSDisplay::grabKeyboard | ( | QWidget * | w, |
bool | grab | ||
) |
Definition at line 1831 of file qapplication_qws.cpp.
void QWSDisplay::grabMouse | ( | QWidget * | w, |
bool | grab | ||
) |
Definition at line 1818 of file qapplication_qws.cpp.
int QWSDisplay::height | ( | ) | const |
Definition at line 1358 of file qapplication_qws.cpp.
|
static |
Definition at line 1639 of file qapplication_qws.cpp.
Referenced by QWSDisplay::Data::init(), and QWSDisplay::Data::reinit().
|
inlinestatic |
Definition at line 88 of file qwsdisplay_qws.h.
Referenced by QWSDirectPainterSurface::beginPaint(), effectiveState(), QWSDirectPainterSurface::flush(), QWSDirectPainterSurface::hasPendingRegionEvents(), QWSEmbedWidgetPrivate::resize(), QWSDirectPainterSurface::setRegion(), QScreen::setTransformation(), QWSEmbedWidgetPrivate::updateWindow(), QWSWindowSurface::winId(), QWSDirectPainterSurface::~QWSDirectPainterSurface(), and QWSEmbedWidget::~QWSEmbedWidget().
void QWSDisplay::moveRegion | ( | int | winId, |
int | dx, | ||
int | dy | ||
) |
Definition at line 1557 of file qapplication_qws.cpp.
Referenced by effectiveState().
Definition at line 1499 of file qapplication_qws.cpp.
Referenced by isServerProcess(), QWSDirectPainterSurface::QWSDirectPainterSurface(), QWSYellowSurface::QWSYellowSurface(), and QWSWindowSurface::winId().
int QWSDisplay::pixmapDepth | ( | ) | const |
Definition at line 1360 of file qapplication_qws.cpp.
void QWSDisplay::playSoundFile | ( | const QString & | f | ) |
Definition at line 1738 of file qapplication_qws.cpp.
void QWSDisplay::registerChannel | ( | const QString & | channel | ) |
Definition at line 1747 of file qapplication_qws.cpp.
Referenced by QCopChannel::init(), and QCopChannel::reregisterAll().
void QWSDisplay::removeProperty | ( | int | winId, |
int | property | ||
) |
Definition at line 1396 of file qapplication_qws.cpp.
void QWSDisplay::repaintRegion | ( | int | winId, |
int | windowFlags, | ||
bool | opaque, | ||
QRegion | r | ||
) |
Definition at line 1524 of file qapplication_qws.cpp.
Referenced by QWSWindowSurface::flush(), QWSYellowSurface::flush(), and QWSDirectPainterSurface::flush().
void QWSDisplay::requestFocus | ( | int | winId, |
bool | get | ||
) |
Definition at line 1473 of file qapplication_qws.cpp.
Referenced by isServerProcess().
void QWSDisplay::requestRegion | ( | int | winId, |
const QString & | surfacekey, | ||
const QByteArray & | surfaceData, | ||
const QRegion & | region | ||
) |
Definition at line 1510 of file qapplication_qws.cpp.
Referenced by QWSYellowSurface::flush(), QWidget::setAttribute(), QWSWindowSurface::setGeometry(), and QWSDirectPainterSurface::setRegion().
void QWSDisplay::resetIM | ( | ) |
Definition at line 1615 of file qapplication_qws.cpp.
Referenced by QWSInputContext::reset().
void QWSDisplay::selectCursor | ( | QWidget * | w, |
unsigned int | id | ||
) |
Definition at line 1795 of file qapplication_qws.cpp.
Referenced by effectiveState(), parseGeometry(), and QApplication::qwsProcessEvent().
void QWSDisplay::sendFontCommand | ( | int | type, |
const QByteArray & | fontName | ||
) |
Definition at line 1779 of file qapplication_qws.cpp.
Referenced by QFontEngineQPF::QFontEngineQPF(), and QFontEngineQPF::~QFontEngineQPF().
void QWSDisplay::sendIMMouseEvent | ( | int | index, |
bool | isPress | ||
) |
Definition at line 1620 of file qapplication_qws.cpp.
Referenced by QWSInputContext::mouseHandler().
void QWSDisplay::sendIMResponse | ( | int | winId, |
int | property, | ||
const QVariant & | result | ||
) |
Definition at line 1600 of file qapplication_qws.cpp.
Referenced by QWSInputContext::translateIMQueryEvent().
void QWSDisplay::sendIMUpdate | ( | int | type, |
int | winId, | ||
int | widgetid | ||
) |
Definition at line 1585 of file qapplication_qws.cpp.
Referenced by QWSInputContext::setFocusWidget(), and QWSInputContext::update().
void QWSDisplay::sendMessage | ( | const QString & | channel, |
const QString & | msg, | ||
const QByteArray & | data | ||
) |
Definition at line 1754 of file qapplication_qws.cpp.
Referenced by QCopChannel::send().
void QWSDisplay::setAltitude | ( | int | winId, |
int | altitude, | ||
bool | fixed = false |
||
) |
Definition at line 1443 of file qapplication_qws.cpp.
Referenced by effectiveState(), QWSYellowSurface::flush(), isServerProcess(), QDirectPainter::lower(), QWSYellowSurface::QWSYellowSurface(), QDirectPainter::raise(), and QWSWindowSurface::winId().
void QWSDisplay::setCursorPosition | ( | int | x, |
int | y | ||
) |
Definition at line 1809 of file qapplication_qws.cpp.
void QWSDisplay::setIdentity | ( | const QString & | appName | ) |
Definition at line 1484 of file qapplication_qws.cpp.
void QWSDisplay::setOpacity | ( | int | winId, |
int | opacity | ||
) |
Definition at line 1459 of file qapplication_qws.cpp.
Referenced by effectiveState().
void QWSDisplay::setProperty | ( | int | winId, |
int | property, | ||
int | mode, | ||
const QByteArray & | data | ||
) |
Definition at line 1375 of file qapplication_qws.cpp.
void QWSDisplay::setProperty | ( | int | winId, |
int | property, | ||
int | mode, | ||
const char * | data | ||
) |
Definition at line 1385 of file qapplication_qws.cpp.
|
static |
Definition at line 1875 of file qapplication_qws.cpp.
void QWSDisplay::setSelectionOwner | ( | int | winId, |
const QTime & | time | ||
) |
Definition at line 1654 of file qapplication_qws.cpp.
|
static |
Definition at line 1787 of file qapplication_qws.cpp.
Referenced by isServerProcess().
uchar * QWSDisplay::sharedRam | ( | ) | const |
Definition at line 1362 of file qapplication_qws.cpp.
int QWSDisplay::sharedRamSize | ( | ) | const |
Definition at line 1363 of file qapplication_qws.cpp.
bool QWSDisplay::supportsDepth | ( | int | depth | ) | const |
Definition at line 1361 of file qapplication_qws.cpp.
int QWSDisplay::takeId | ( | ) |
Definition at line 1634 of file qapplication_qws.cpp.
Referenced by isServerProcess(), and QWSWindowSurface::winId().
|
static |
Definition at line 1322 of file qapplication_qws.cpp.
Referenced by QTransformedScreen::blit(), QScreen::blit(), QLinuxFbScreen::cache(), QLinuxFbScreen::clearCache(), QLinuxFbScreen::deleteEntry(), QWSServer::endDisplayReconfigure(), QWSWindowSurface::flush(), QScreen::solidFill(), QDirectPainter::unlock(), QWSDirectPainterSurface::unlock(), QWSServerPrivate::update_regions(), QWSDisplay::Data::waitForRegionEvents(), QRfbRawEncoder::write(), and QRfbHextileEncoder< SRC >::write().
QWSQCopMessageEvent * QWSDisplay::waitForQCopResponse | ( | ) |
Definition at line 1770 of file qapplication_qws.cpp.
Referenced by QCopChannel::isRegistered().
int QWSDisplay::width | ( | ) | const |
Definition at line 1357 of file qapplication_qws.cpp.
int QWSDisplay::windowAt | ( | const QPoint & | p | ) |
Definition at line 1863 of file qapplication_qws.cpp.
Referenced by parseGeometry().
QList< QWSWindowInfo > QWSDisplay::windowList | ( | ) |
Definition at line 1844 of file qapplication_qws.cpp.
Definition at line 169 of file qwsdisplay_qws.h.
|
friend |
Definition at line 165 of file qwsdisplay_qws.h.
|
friend |
Definition at line 166 of file qwsdisplay_qws.h.
|
friend |
Definition at line 690 of file qapplication_qws.cpp.
|
friend |
|
friend |
Definition at line 175 of file qwsdisplay_qws.h.
|
friend |
Definition at line 167 of file qwsdisplay_qws.h.
|
friend |
Definition at line 168 of file qwsdisplay_qws.h.
|
friend |
Definition at line 173 of file qwsdisplay_qws.h.
|
friend |
Definition at line 174 of file qwsdisplay_qws.h.
|
private |
Definition at line 171 of file qwsdisplay_qws.h.
Referenced by QWSDirectPainterSurface::beginPaint(), flushCommands(), QWSDirectPainterSurface::hasPendingRegionEvents(), qt_app_reinit(), registerChannel(), QWSEmbedWidgetPrivate::resize(), sendMessage(), setRawMouseEventFilter(), QWSDirectPainterSurface::setRegion(), QScreen::setTransformation(), QWSEmbedWidgetPrivate::updateWindow(), waitForQCopResponse(), and QWSEmbedWidget::~QWSEmbedWidget().
|
private |
Definition at line 177 of file qwsdisplay_qws.h.
Referenced by QWSDisplay::Data::fillQueue().
|
private |
Definition at line 176 of file qwsdisplay_qws.h.
Referenced by QWSDisplay::Data::fillQueue(), and QWSDisplay::Data::waitForPropertyReply().
|
staticprivate |
Definition at line 178 of file qwsdisplay_qws.h.