64 class QWSWindowSurface;
65 class QGraphicsSystem;
68 #ifndef QT_QWS_DEPTH16_RGB
69 #define QT_QWS_DEPTH16_RGB 565
92 return (tb & qt_blue_mask) | (tg &
qt_green_mask) | (tr & qt_red_mask);
101 return (tb & qt_blue_mask) | (tg &
qt_green_mask) | (tr & qt_red_mask);
113 return qRgb(tr,tg,tb);
129 #ifndef QT_NO_QWS_CURSOR
135 class Q_GUI_EXPORT QScreenCursor
139 virtual ~QScreenCursor();
141 virtual void set(
const QImage &
image,
int hotx,
int hoty);
142 virtual void move(
int x,
int y);
155 static void initSoftwareCursor();
166 uint supportsAlpha : 1;
172 #endif // QT_NO_QWS_CURSOR
185 class QScreenPrivate;
186 class QPixmapDataFactory;
198 QScreen(
int display_id, ClassId classId);
199 explicit QScreen(
int display_id);
202 virtual bool initDevice() = 0;
203 virtual bool connect(
const QString &displaySpec) = 0;
204 virtual void disconnect() = 0;
205 virtual void shutdownDevice();
206 virtual void setMode(
int,
int,
int) = 0;
207 virtual bool supportsDepth(
int)
const;
210 virtual void restore();
211 virtual void blank(
bool on);
217 virtual bool onCard(
const unsigned char *)
const;
218 virtual bool onCard(
const unsigned char *, ulong& out_offset)
const;
223 virtual void set(
unsigned int,
unsigned int,
unsigned int,
unsigned int);
225 virtual int alloc(
unsigned int,
unsigned int,
unsigned int);
230 virtual int pixmapDepth()
const;
237 virtual uchar *
cache(
int) {
return 0; }
247 QT_DEPRECATED
int numCols() {
return screencols; }
251 virtual QSize mapToDevice(
const QSize &)
const;
252 virtual QSize mapFromDevice(
const QSize &)
const;
261 virtual int transformOrientation()
const;
262 virtual bool isTransformed()
const;
263 virtual bool isInterlaced()
const;
265 virtual void setDirty(
const QRect&);
267 virtual int memoryNeeded(
const QString&);
269 virtual void haltUpdates();
270 virtual void resumeUpdates();
273 virtual void exposeRegion(
QRegion r,
int changing);
278 void blit(QWSWindow *bs,
const QRegion &clip);
280 virtual QWSWindowSurface* createSurface(
QWidget *widget)
const;
281 virtual QWSWindowSurface* createSurface(
const QString &key)
const;
285 int subScreenIndexAt(
const QPoint &
p)
const;
287 void setOffset(
const QPoint &
p);
293 QPixmapDataFactory* pixmapDataFactory()
const;
294 QGraphicsSystem* graphicsSystem()
const;
296 #ifdef QT_QWS_CLIENTBLIT
297 bool supportsBlitInClients()
const;
298 void setSupportsBlitInClients(
bool);
301 ClassId classId()
const;
305 void setPixmapDataFactory(QPixmapDataFactory *factory);
306 void setGraphicsSystem(QGraphicsSystem* system);
343 friend class QWSServerPrivate;
348 QImage **blendbuffer,
int changing_level);
349 void paintBackground(
const QRegion &);
351 friend class QWSOnScreenSurface;
352 static bool isWidgetPaintOnScreen(
const QWidget *w);
354 #if Q_BYTE_ORDER == Q_BIG_ENDIAN
355 void setFrameBufferLittleEndian(
bool littleEndian);
356 bool frameBufferLittleEndian()
const;
357 friend class QVNCScreen;
367 #ifdef QT_QWS_DEPTH_GENERIC
369 int len_red,
int len_green,
int len_blue,
370 int len_alpha,
int off_red,
int off_green,
371 int off_blue,
int off_alpha);
374 QScreenPrivate *d_ptr;
379 #ifndef QT_LOADABLE_MODULES
392 #endif // QSCREEN_QWS_H
GLdouble GLdouble GLdouble r
unsigned int(APIENTRYP PFNGLXGETAGPOFFSETMESAPROC)(const void *pointer)
static const int qt_red_rounding_shift
bool isAccelerated() const
int physicalWidth() const
virtual QRegion region() const
static const int qt_bbits
void(* ClearCacheFunc)(QScreen *obj, int)
virtual int sharedRamSize(void *)
GLsizei GLsizei GLuint * obj
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
virtual int pixmapOffsetAlignment()
friend void qt_blit_setup(QScreen *screen, const QImage &image, const QPoint &topLeft, const QRegion ®ion)
static const int qt_blue_mask
ushort qt_convRgbTo16(const int r, const int g, const int b)
GLenum GLsizei GLenum GLenum const GLvoid * image
static const int qt_red_mask
QT_BEGIN_HEADER QT_BEGIN_NAMESPACE typedef unsigned int QRgb
int int int int int int * dh
Q_GUI_EXPORT_INLINE int qRed(QRgb rgb)
static QScreen * instance()
virtual int pixmapLinestepAlignment()
#define QT_BEGIN_NAMESPACE
GLsizei GLsizei GLenum GLenum const GLvoid * data
QRect boundingRect() const
GLenum GLsizei GLenum format
static const int qt_gbits
PixelType pixelType() const
static const int qt_green_shift
Q_GUI_EXPORT_INLINE int qBlue(QRgb rgb)
QRgb qt_conv16ToRgb(ushort c)
static const int qt_green_mask
static const int qt_rbits
#define QT_QWS_DEPTH16_RGB
virtual void uncache(uchar *)
static const int qt_neg_blue_shift
int int int int int int h
Q_GUI_EXPORT QScreen * qt_screen
Q_GUI_EXPORT_INLINE QRgb qRgb(int r, int g, int b)
static const int qt_red_shift
int physicalHeight() const
QScreen * qt_get_screen(int display_id, const char *spec)
Q_GUI_EXPORT_INLINE int qGreen(QRgb rgb)
virtual QList< QScreen * > subScreens() const
bool supportsAlphaCursor() const
QScreenCursor * qt_screencursor
GLubyte GLubyte GLubyte GLubyte w
static const int qt_blue_rounding_shift
const unsigned char * qt_probe_bus()
virtual uchar * cache(int)
static const int qt_green_rounding_shift
friend void qt_solidFill_setup(QScreen *, const QColor &, const QRegion &)
static ClearCacheFunc clearCacheFunc
static QScreenCursor * instance()