Qt 4.8
Public Functions | Private Functions | Properties | List of all members
QProxyScreen Class Reference

The QProxyScreen class provides a generic interface to QScreen implementations. More...

#include <qscreenproxy_qws.h>

Inheritance diagram for QProxyScreen:
QScreen QTransformedScreen QVNCScreen

Public Functions

void blank (bool on)
 Reimplemented Function More...
 
void blit (const QImage &img, const QPoint &topLeft, const QRegion &region)
 Reimplemented Function More...
 
bool connect (const QString &displaySpec)
 Reimplemented Function More...
 
QWSWindowSurfacecreateSurface (QWidget *widget) const
 Reimplemented Function More...
 
QWSWindowSurfacecreateSurface (const QString &key) const
 Reimplemented Function More...
 
void disconnect ()
 Reimplemented Function More...
 
void exposeRegion (QRegion r, int changing)
 Reimplemented Function More...
 
void haltUpdates ()
 
bool initDevice ()
 This function is called by the Qt for Embedded Linux server to initialize the framebuffer. More...
 
bool isInterlaced () const
 Reimplemented Function More...
 
bool isTransformed () const
 Reimplemented Function More...
 
QSize mapFromDevice (const QSize &s) const
 Reimplemented Function More...
 
QPoint mapFromDevice (const QPoint &, const QSize &) const
 Reimplemented Function More...
 
QRect mapFromDevice (const QRect &, const QSize &) const
 Reimplemented Function More...
 
QRegion mapFromDevice (const QRegion &, const QSize &) const
 Reimplemented Function More...
 
QSize mapToDevice (const QSize &s) const
 Reimplemented Function More...
 
QPoint mapToDevice (const QPoint &, const QSize &) const
 Reimplemented Function More...
 
QRect mapToDevice (const QRect &, const QSize &) const
 Reimplemented Function More...
 
QRegion mapToDevice (const QRegion &, const QSize &) const
 Reimplemented Function More...
 
int memoryNeeded (const QString &)
 
bool onCard (const unsigned char *) const
 Reimplemented Function More...
 
bool onCard (const unsigned char *, ulong &out_offset) const
 Reimplemented Function More...
 
 QProxyScreen (int display_id, ClassId=ProxyClass)
 Constructs a proxy screen with the given displayId and classId. More...
 
QRegion region () const
 Reimplemented Function More...
 
void restore ()
 Reimplemented Function More...
 
void resumeUpdates ()
 
void save ()
 Reimplemented Function More...
 
QScreenscreen () const
 Returns the real screen used by the proxy screen. More...
 
void setDirty (const QRect &)
 Reimplemented Function More...
 
void setMode (int width, int height, int depth)
 Reimplemented Function More...
 
void setScreen (QScreen *screen)
 Sets the real screen to be used by the proxy screen. More...
 
int sharedRamSize (void *)
 
void shutdownDevice ()
 Reimplemented Function More...
 
void solidFill (const QColor &color, const QRegion &region)
 Reimplemented Function More...
 
QList< QScreen * > subScreens () const
 Reimplemented Function More...
 
bool supportsDepth (int) const
 Reimplemented Function More...
 
int transformOrientation () const
 Reimplemented Function More...
 
 ~QProxyScreen ()
 Destroys the proxy screen. More...
 
- Public Functions inherited from QScreen
virtual int alloc (unsigned int, unsigned int, unsigned int)
 Returns the index in the screen's palette which is the closest match to the given RGB value (red, green, blue). More...
 
ucharbase () const
 Returns a pointer to the beginning of the framebuffer. More...
 
void blit (QWSWindow *bs, const QRegion &clip)
 
virtual ucharcache (int)
 
ClassId classId () const
 Returns the class identifier for the screen object. More...
 
QRgbclut ()
 Returns a pointer to the screen's color lookup table (i. More...
 
int colorCount ()
 Returns the number of entries in the screen's color lookup table (i. More...
 
int depth () const
 Returns the depth of the framebuffer, in bits per pixel. More...
 
int deviceHeight () const
 Returns the full height of the framebuffer device in pixels. More...
 
int deviceWidth () const
 Returns the physical width of the framebuffer device in pixels. More...
 
QGraphicsSystemgraphicsSystem () const
 
int height () const
 Returns the logical height of the framebuffer in pixels. More...
 
int linestep () const
 Returns the length of each scanline of the framebuffer in bytes. More...
 
virtual QImage mapFromDevice (const QImage &) const
 Maps the given image from the framebuffer coordinate system to the coordinate space used by the application. More...
 
virtual QImage mapToDevice (const QImage &) const
 Maps the given image from the coordinate space used by the application to the framebuffer coordinate system. More...
 
QT_DEPRECATED int numCols ()
 
QPoint offset () const
 Returns the logical offset of the screen, i. More...
 
int physicalHeight () const
 Returns the physical height of the screen in millimeters. More...
 
int physicalWidth () const
 Returns the physical width of the screen in millimeters. More...
 
QImage::Format pixelFormat () const
 Returns the pixel format of the screen, or QImage::Format_Invalid if the pixel format is not a supported image format. More...
 
PixelType pixelType () const
 Returns the pixel storage format of the screen. More...
 
QPixmapDataFactorypixmapDataFactory () const
 
virtual int pixmapDepth () const
 Returns the preferred depth for pixmaps, in bits per pixel. More...
 
virtual int pixmapLinestepAlignment ()
 Returns the value (in bits) to which individual scanlines of pixmaps held in the graphics card's memory, should be aligned. More...
 
virtual int pixmapOffsetAlignment ()
 Returns the value (in bits) to which the start address of pixmaps held in the graphics card's memory, should be aligned. More...
 
 QScreen (int display_id, ClassId classId)
 Constructs a new screen driver. More...
 
 QScreen (int display_id)
 Constructs a new screen driver. More...
 
int screenSize () const
 Returns the size of the screen in bytes. More...
 
virtual void set (unsigned int, unsigned int, unsigned int, unsigned int)
 
void setOffset (const QPoint &p)
 
int subScreenIndexAt (const QPoint &p) const
 Returns the index of the subscreen at the given position; returns -1 if no screen is found. More...
 
int totalSize () const
 Returns the size of the available graphics card memory (including the screen) in bytes. More...
 
virtual void uncache (uchar *)
 
int width () const
 Returns the logical width of the framebuffer in pixels. More...
 
virtual ~QScreen ()
 Destroys this screen driver. More...
 

Private Functions

void configure ()
 

Properties

QProxyScreenPrivate * d_ptr
 
QScreenrealScreen
 

Additional Inherited Members

- Public Types inherited from QScreen
enum  ClassId {
  LinuxFBClass, TransformedClass, VNCClass, MultiClass,
  VFbClass, DirectFBClass, SvgalibClass, ProxyClass,
  GLClass, IntfbClass, CustomClass = 1024
}
 This enum defines the class identifiers for the known screen subclasses. More...
 
enum  PixelType { NormalPixel, BGRPixel }
 This enum describes the pixel storage format of the screen, i. More...
 
- Static Public Functions inherited from QScreen
static QScreeninstance ()
 Returns a pointer to the application's QScreen instance. More...
 
- Protected Functions inherited from QScreen
void setGraphicsSystem (QGraphicsSystem *system)
 
void setPixelFormat (QImage::Format format)
 Sets the screen's pixel format to format. More...
 
void setPixmapDataFactory (QPixmapDataFactory *factory)
 
- Protected Variables inherited from QScreen
int d
 the pixel depth More...
 
uchardata
 points to the first visible pixel in the frame buffer. More...
 
int dh
 the device height More...
 
int displayId
 
int dw
 the device width More...
 
QPoolEntryentries
 
int * entryp
 
bool grayscale
 the gray scale screen mode flag More...
 
int h
 the logical height of the screen. More...
 
unsigned int * lowest
 
int lstep
 the number of bytes representing a line in the frame buffer. More...
 
int mapsize
 the total number of bytes in the frame buffer More...
 
int physHeight
 the physical height of the screen in millimeters. More...
 
int physWidth
 the physical width of the screen in millimeters. More...
 
PixelType pixeltype
 set to BGRPixel More...
 
QRgb screenclut [256]
 the color table More...
 
int screencols
 the number of entries in the color table More...
 
int size
 the number of bytes in the visible region of the frame buffer More...
 
int w
 the logical width of the screen. More...
 
- Static Protected Variables inherited from QScreen
static ClearCacheFunc clearCacheFunc = 0
 

Detailed Description

The QProxyScreen class provides a generic interface to QScreen implementations.

Definition at line 84 of file qscreenproxy_qws.h.

Constructors and Destructors

◆ QProxyScreen()

QProxyScreen::QProxyScreen ( int  display_id,
QScreen::ClassId  classId = ProxyClass 
)

Constructs a proxy screen with the given displayId and classId.

Definition at line 189 of file qscreenproxy_qws.cpp.

191 {
192 }
QScreen * realScreen
int displayId
Definition: qscreen_qws.h:337
QScreen(int display_id, ClassId classId)
Constructs a new screen driver.
ClassId classId() const
Returns the class identifier for the screen object.
QProxyScreenPrivate * d_ptr

◆ ~QProxyScreen()

QProxyScreen::~QProxyScreen ( )

Destroys the proxy screen.

Definition at line 197 of file qscreenproxy_qws.cpp.

198 {
199 }

Functions

◆ blank()

void QProxyScreen::blank ( bool  on)
virtual

Reimplemented Function

Reimplemented from QScreen.

Definition at line 496 of file qscreenproxy_qws.cpp.

497 {
498  if (realScreen)
499  realScreen->blank(on);
500 }
QScreen * realScreen
virtual void blank(bool on)
Prevents the screen driver form displaying any content on the screen.

◆ blit()

void QProxyScreen::blit ( const QImage img,
const QPoint topLeft,
const QRegion region 
)
virtual

Reimplemented Function

Reimplemented from QScreen.

Reimplemented in QTransformedScreen.

Definition at line 305 of file qscreenproxy_qws.cpp.

Referenced by QTransformedScreen::blit(), and QTransformedScreen::isTransformed().

307 {
308  if (!realScreen) {
309  QScreen::blit(image, topLeft, region);
310  return;
311  }
312 
313  realScreen->blit(image, topLeft, region);
314 }
virtual void blit(const QImage &img, const QPoint &topLeft, const QRegion &region)
Copies the given region in the given image to the point specified by topLeft using device coordinates...
QScreen * realScreen

◆ configure()

void QProxyScreen::configure ( )
private
Warning
This function is not part of the public interface.

Definition at line 226 of file qscreenproxy_qws.cpp.

Referenced by connect(), setMode(), and setScreen().

227 {
228  if (!realScreen)
229  return;
230 
231  d = realScreen->depth();
232  w = realScreen->width();
233  h = realScreen->height();
237  data = realScreen->base();
243 #if Q_BYTE_ORDER == Q_BIG_ENDIAN
245 #endif
246 
249 
250 #ifdef QT_QWS_CLIENTBLIT
251  setSupportsBlitInClients(realScreen->supportsBlitInClients());
252 #endif
253 }
bool frameBufferLittleEndian() const
int height() const
Returns the logical height of the framebuffer in pixels.
Definition: qscreen_qws.h:228
void setOffset(const QPoint &p)
int physicalHeight() const
Returns the physical height of the screen in millimeters.
Definition: qscreen_qws.h:291
int d
the pixel depth
Definition: qscreen_qws.h:327
int deviceWidth() const
Returns the physical width of the framebuffer device in pixels.
Definition: qscreen_qws.h:233
int physHeight
the physical height of the screen in millimeters.
Definition: qscreen_qws.h:340
int size
the number of bytes in the visible region of the frame buffer
Definition: qscreen_qws.h:334
PixelType pixeltype
set to BGRPixel
Definition: qscreen_qws.h:328
int physWidth
the physical width of the screen in millimeters.
Definition: qscreen_qws.h:339
void setPixelFormat(QImage::Format format)
Sets the screen&#39;s pixel format to format.
int width() const
Returns the logical width of the framebuffer in pixels.
Definition: qscreen_qws.h:227
uchar * data
points to the first visible pixel in the frame buffer.
Definition: qscreen_qws.h:311
PixelType pixelType() const
Returns the pixel storage format of the screen.
Definition: qscreen_qws.h:231
int linestep() const
Returns the length of each scanline of the framebuffer in bytes.
Definition: qscreen_qws.h:232
int w
the logical width of the screen.
Definition: qscreen_qws.h:324
QScreen * realScreen
uchar * base() const
Returns a pointer to the beginning of the framebuffer.
Definition: qscreen_qws.h:235
int dw
the device width
Definition: qscreen_qws.h:331
int dh
the device height
Definition: qscreen_qws.h:332
QImage::Format pixelFormat() const
Returns the pixel format of the screen, or QImage::Format_Invalid if the pixel format is not a suppor...
int deviceHeight() const
Returns the full height of the framebuffer device in pixels.
Definition: qscreen_qws.h:234
void setFrameBufferLittleEndian(bool littleEndian)
int lstep
the number of bytes representing a line in the frame buffer.
Definition: qscreen_qws.h:325
int h
the logical height of the screen.
Definition: qscreen_qws.h:326
int physicalWidth() const
Returns the physical width of the screen in millimeters.
Definition: qscreen_qws.h:290
int screenSize() const
Returns the size of the screen in bytes.
Definition: qscreen_qws.h:242
QPoint offset() const
Returns the logical offset of the screen, i.
int depth() const
Returns the depth of the framebuffer, in bits per pixel.
Definition: qscreen_qws.h:229

◆ connect()

bool QProxyScreen::connect ( const QString displaySpec)
virtual

Reimplemented Function

Implements QScreen.

Reimplemented in QTransformedScreen, and QVNCScreen.

Definition at line 275 of file qscreenproxy_qws.cpp.

276 {
277  const int id = getDisplayId(displaySpec);
278  realScreen = qt_get_screen(id, displaySpec.toLatin1().constData());
279  configure();
280 
281  return true;
282 }
Q_GUI_EXPORT QScreen * qt_get_screen(int display_id, const char *spec)
QScreen * realScreen
QByteArray toLatin1() const Q_REQUIRED_RESULT
Returns a Latin-1 representation of the string as a QByteArray.
Definition: qstring.cpp:3993
const char * constData() const
Returns a pointer to the data stored in the byte array.
Definition: qbytearray.h:433
static int getDisplayId(const QString &spec)
Returns the display ID that corresponds to the given spec.

◆ createSurface() [1/2]

QWSWindowSurface * QProxyScreen::createSurface ( QWidget widget) const
virtual

Reimplemented Function

Reimplemented from QScreen.

Definition at line 604 of file qscreenproxy_qws.cpp.

605 {
606  if (realScreen)
607  return realScreen->createSurface(widget);
608 
609  return QScreen::createSurface(widget);
610 }
QScreen * realScreen
virtual QWSWindowSurface * createSurface(QWidget *widget) const
Creates and returns a new window surface for the given widget.

◆ createSurface() [2/2]

QWSWindowSurface * QProxyScreen::createSurface ( const QString key) const
virtual

Reimplemented Function

Reimplemented from QScreen.

Definition at line 615 of file qscreenproxy_qws.cpp.

616 {
617  if (realScreen)
618  return realScreen->createSurface(key);
619 
620  return QScreen::createSurface(key);
621 }
QScreen * realScreen
virtual QWSWindowSurface * createSurface(QWidget *widget) const
Creates and returns a new window surface for the given widget.

◆ disconnect()

void QProxyScreen::disconnect ( )
virtual

Reimplemented Function

Implements QScreen.

Reimplemented in QVNCScreen.

Definition at line 419 of file qscreenproxy_qws.cpp.

Referenced by QVNCScreen::disconnect().

420 {
421  if (realScreen) {
423  delete realScreen;
424  realScreen = 0;
425  }
426 }
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.
QScreen * realScreen

◆ exposeRegion()

void QProxyScreen::exposeRegion ( QRegion  r,
int  changing 
)
virtual

Reimplemented Function

Reimplemented from QScreen.

Reimplemented in QTransformedScreen.

Definition at line 287 of file qscreenproxy_qws.cpp.

Referenced by QTransformedScreen::exposeRegion(), QTransformedScreen::isTransformed(), and setMode().

288 {
289  if (!realScreen) {
290  QScreen::exposeRegion(r, changing);
291  return;
292  }
293 
294  realScreen->exposeRegion(r, changing);
295  r &= realScreen->region();
296 
297  const QVector<QRect> rects = r.rects();
298  for (int i = 0; i < rects.size(); ++i)
299  setDirty(rects.at(i));
300 }
virtual QRegion region() const
Returns the region covered by this screen driver.
Definition: qscreen_qws.h:284
void setDirty(const QRect &)
Reimplemented Function
QScreen * realScreen
const T & at(int i) const
Returns the item at index position i in the vector.
Definition: qvector.h:350
QVector< QRect > rects() const
Returns an array of non-overlapping rectangles that make up the region.
Definition: qregion.cpp:4412
virtual void exposeRegion(QRegion r, int changing)
This function is called by the Qt for Embedded Linux server whenever a screen update is required...
int size() const
Returns the number of items in the vector.
Definition: qvector.h:137

◆ haltUpdates()

void QProxyScreen::haltUpdates ( )
virtual
Warning
This function is not part of the public interface.

Reimplemented from QScreen.

Definition at line 577 of file qscreenproxy_qws.cpp.

578 {
579  if (realScreen)
581 }
QScreen * realScreen
virtual void haltUpdates()

◆ initDevice()

bool QProxyScreen::initDevice ( )
virtual

This function is called by the Qt for Embedded Linux server to initialize the framebuffer.

Note that a server application will call the connect() function prior to this function.

Implement this function to make accelerated drivers set up the graphics card. Return true to indicate success and false to indicate failure.

See also
shutdownDevice(), connect()

Implements QScreen.

Reimplemented in QVNCScreen.

Definition at line 430 of file qscreenproxy_qws.cpp.

Referenced by QVNCScreen::initDevice().

431 {
432  if (realScreen)
433  return realScreen->initDevice();
434 
435  return false;
436 }
virtual bool initDevice()=0
This function is called by the Qt for Embedded Linux server to initialize the framebuffer.
QScreen * realScreen

◆ isInterlaced()

bool QProxyScreen::isInterlaced ( ) const
virtual

Reimplemented Function

Reimplemented from QScreen.

Definition at line 525 of file qscreenproxy_qws.cpp.

526 {
527  if (realScreen)
528  return realScreen->isInterlaced();
529  return false;
530 }
QScreen * realScreen
virtual bool isInterlaced() const
Returns true if the display is interlaced (i.

◆ isTransformed()

bool QProxyScreen::isTransformed ( ) const
virtual

Reimplemented Function

Reimplemented from QScreen.

Reimplemented in QTransformedScreen.

Definition at line 535 of file qscreenproxy_qws.cpp.

536 {
537  if (realScreen)
538  return realScreen->isTransformed();
539  return QScreen::isTransformed();
540 }
QScreen * realScreen
virtual bool isTransformed() const
Returns true if the screen is transformed (for instance, rotated 90 degrees); otherwise returns false...

◆ mapFromDevice() [1/4]

QSize QProxyScreen::mapFromDevice ( const QSize s) const
virtual

Reimplemented Function

Reimplemented from QScreen.

Reimplemented in QTransformedScreen.

Definition at line 342 of file qscreenproxy_qws.cpp.

Referenced by QTransformedScreen::mapFromDevice().

343 {
344  if (!realScreen)
345  return QScreen::mapFromDevice(s);
346 
347  return realScreen->mapFromDevice(s);
348 }
virtual QSize mapFromDevice(const QSize &) const
Maps the given size from the framebuffer coordinate system to the coordinate space used by the applic...
QScreen * realScreen

◆ mapFromDevice() [2/4]

QPoint QProxyScreen::mapFromDevice ( const QPoint p,
const QSize s 
) const
virtual

Reimplemented Function

Reimplemented from QScreen.

Reimplemented in QTransformedScreen.

Definition at line 364 of file qscreenproxy_qws.cpp.

365 {
366  if (!realScreen)
367  return QScreen::mapFromDevice(p, s);
368 
369  return realScreen->mapFromDevice(p, s);
370 }
virtual QSize mapFromDevice(const QSize &) const
Maps the given size from the framebuffer coordinate system to the coordinate space used by the applic...
QScreen * realScreen

◆ mapFromDevice() [3/4]

QRect QProxyScreen::mapFromDevice ( const QRect r,
const QSize s 
) const
virtual

Reimplemented Function

Reimplemented from QScreen.

Reimplemented in QTransformedScreen.

Definition at line 386 of file qscreenproxy_qws.cpp.

387 {
388  if (!realScreen)
389  return QScreen::mapFromDevice(r, s);
390 
391  return realScreen->mapFromDevice(r, s);
392 }
virtual QSize mapFromDevice(const QSize &) const
Maps the given size from the framebuffer coordinate system to the coordinate space used by the applic...
QScreen * realScreen

◆ mapFromDevice() [4/4]

QRegion QProxyScreen::mapFromDevice ( const QRegion r,
const QSize s 
) const
virtual

Reimplemented Function

Reimplemented from QScreen.

Reimplemented in QTransformedScreen.

Definition at line 408 of file qscreenproxy_qws.cpp.

409 {
410  if (!realScreen)
411  return QScreen::mapFromDevice(r, s);
412 
413  return realScreen->mapFromDevice(r, s);
414 }
virtual QSize mapFromDevice(const QSize &) const
Maps the given size from the framebuffer coordinate system to the coordinate space used by the applic...
QScreen * realScreen

◆ mapToDevice() [1/4]

QSize QProxyScreen::mapToDevice ( const QSize s) const
virtual

Reimplemented Function

Reimplemented from QScreen.

Reimplemented in QTransformedScreen.

Definition at line 331 of file qscreenproxy_qws.cpp.

Referenced by QTransformedScreen::mapToDevice().

332 {
333  if (!realScreen)
334  return QScreen::mapToDevice(s);
335 
336  return realScreen->mapToDevice(s);
337 }
virtual QSize mapToDevice(const QSize &) const
Maps the given size from the coordinate space used by the application to the framebuffer coordinate s...
QScreen * realScreen

◆ mapToDevice() [2/4]

QPoint QProxyScreen::mapToDevice ( const QPoint p,
const QSize s 
) const
virtual

Reimplemented Function

Reimplemented from QScreen.

Reimplemented in QTransformedScreen.

Definition at line 353 of file qscreenproxy_qws.cpp.

354 {
355  if (!realScreen)
356  return QScreen::mapToDevice(p, s);
357 
358  return realScreen->mapToDevice(p, s);
359 }
virtual QSize mapToDevice(const QSize &) const
Maps the given size from the coordinate space used by the application to the framebuffer coordinate s...
QScreen * realScreen

◆ mapToDevice() [3/4]

QRect QProxyScreen::mapToDevice ( const QRect r,
const QSize s 
) const
virtual

Reimplemented Function

Reimplemented from QScreen.

Reimplemented in QTransformedScreen.

Definition at line 375 of file qscreenproxy_qws.cpp.

376 {
377  if (!realScreen)
378  return QScreen::mapToDevice(r, s);
379 
380  return realScreen->mapToDevice(r, s);
381 }
virtual QSize mapToDevice(const QSize &) const
Maps the given size from the coordinate space used by the application to the framebuffer coordinate s...
QScreen * realScreen

◆ mapToDevice() [4/4]

QRegion QProxyScreen::mapToDevice ( const QRegion r,
const QSize s 
) const
virtual

Reimplemented Function

Reimplemented from QScreen.

Reimplemented in QTransformedScreen.

Definition at line 397 of file qscreenproxy_qws.cpp.

398 {
399  if (!realScreen)
400  return QScreen::mapToDevice(r, s);
401 
402  return realScreen->mapToDevice(r, s);
403 }
virtual QSize mapToDevice(const QSize &) const
Maps the given size from the coordinate space used by the application to the framebuffer coordinate s...
QScreen * realScreen

◆ memoryNeeded()

int QProxyScreen::memoryNeeded ( const QString str)
virtual
Warning
This function is not part of the public interface.

Reimplemented from QScreen.

Definition at line 555 of file qscreenproxy_qws.cpp.

556 {
557  if (realScreen)
558  return realScreen->memoryNeeded(str);
559  else
560  return QScreen::memoryNeeded(str);
561 }
QScreen * realScreen
virtual int memoryNeeded(const QString &)

◆ onCard() [1/2]

bool QProxyScreen::onCard ( const unsigned char *  ptr) const
virtual

Reimplemented Function

Reimplemented from QScreen.

Definition at line 505 of file qscreenproxy_qws.cpp.

506 {
507  if (realScreen)
508  return realScreen->onCard(ptr);
509  return false;
510 }
QScreen * realScreen
const T * ptr(const T &t)
virtual bool onCard(const unsigned char *) const
Returns true if the specified buffer is within the graphics card&#39;s memory; otherwise returns false (i...

◆ onCard() [2/2]

bool QProxyScreen::onCard ( const unsigned char *  ptr,
ulong out_offset 
) const
virtual

Reimplemented Function

Reimplemented from QScreen.

Definition at line 515 of file qscreenproxy_qws.cpp.

516 {
517  if (realScreen)
518  return realScreen->onCard(ptr, offset);
519  return false;
520 }
QScreen * realScreen
const T * ptr(const T &t)
virtual bool onCard(const unsigned char *) const
Returns true if the specified buffer is within the graphics card&#39;s memory; otherwise returns false (i...
QPoint offset() const
Returns the logical offset of the screen, i.

◆ region()

QRegion QProxyScreen::region ( ) const
virtual

Reimplemented Function

Reimplemented from QScreen.

Reimplemented in QTransformedScreen.

Definition at line 637 of file qscreenproxy_qws.cpp.

Referenced by QTransformedScreen::isTransformed(), QTransformedScreen::region(), and setMode().

638 {
639  if (realScreen)
640  return realScreen->region();
641  else
642  return QScreen::region();
643 }
virtual QRegion region() const
Returns the region covered by this screen driver.
Definition: qscreen_qws.h:284
QScreen * realScreen

◆ restore()

void QProxyScreen::restore ( )
virtual

Reimplemented Function

Reimplemented from QScreen.

Definition at line 486 of file qscreenproxy_qws.cpp.

487 {
488  if (realScreen)
489  realScreen->restore();
491 }
virtual void restore()
Restores the previously saved state of the graphics card.
QScreen * realScreen

◆ resumeUpdates()

void QProxyScreen::resumeUpdates ( )
virtual
Warning
This function is not part of the public interface.

Reimplemented from QScreen.

Definition at line 586 of file qscreenproxy_qws.cpp.

587 {
588  if (realScreen)
590 }
virtual void resumeUpdates()
QScreen * realScreen

◆ save()

void QProxyScreen::save ( )
virtual

Reimplemented Function

Reimplemented from QScreen.

Definition at line 476 of file qscreenproxy_qws.cpp.

477 {
478  if (realScreen)
479  realScreen->save();
480  QScreen::save();
481 }
QScreen * realScreen
virtual void save()
Saves the current state of the graphics card.

◆ screen()

QScreen * QProxyScreen::screen ( ) const

◆ setDirty()

void QProxyScreen::setDirty ( const QRect rect)
virtual

Reimplemented Function

Reimplemented from QScreen.

Reimplemented in QTransformedScreen, and QVNCScreen.

Definition at line 595 of file qscreenproxy_qws.cpp.

Referenced by exposeRegion(), QTransformedScreen::isTransformed(), and QTransformedScreen::setDirty().

596 {
597  if (realScreen)
598  realScreen->setDirty(rect);
599 }
virtual void setDirty(const QRect &)
Marks the given rectangle as dirty.
QScreen * realScreen

◆ setMode()

void QProxyScreen::setMode ( int  width,
int  height,
int  depth 
)
virtual

Reimplemented Function

Implements QScreen.

Definition at line 450 of file qscreenproxy_qws.cpp.

451 {
452  if (realScreen) {
453  realScreen->setMode(w, h, d);
454  } else {
457  QScreen::d = d;
458  }
459  configure();
460  exposeRegion(region(), 0);
461 }
int d
the pixel depth
Definition: qscreen_qws.h:327
QRegion region() const
Reimplemented Function
virtual void setMode(int, int, int)=0
Implement this function to reset the framebuffer&#39;s resolution (width and height) and bit depth...
void exposeRegion(QRegion r, int changing)
Reimplemented Function
int w
the logical width of the screen.
Definition: qscreen_qws.h:324
QScreen * realScreen
int dw
the device width
Definition: qscreen_qws.h:331
int dh
the device height
Definition: qscreen_qws.h:332
int h
the logical height of the screen.
Definition: qscreen_qws.h:326

◆ setScreen()

void QProxyScreen::setScreen ( QScreen screen)

Sets the real screen to be used by the proxy screen.

See also
screen()

Definition at line 206 of file qscreenproxy_qws.cpp.

Referenced by QVNCScreen::connect(), QTransformedScreen::connect(), and QApplicationPrivate::setScreenTransformation().

207 {
208  realScreen = screen;
209  configure();
210 }
QScreen * realScreen
QScreen * screen() const
Returns the real screen used by the proxy screen.

◆ sharedRamSize()

int QProxyScreen::sharedRamSize ( void *  ptr)
virtual
Warning
This function is not part of the public interface.

Reimplemented from QScreen.

Definition at line 566 of file qscreenproxy_qws.cpp.

567 {
568  if (realScreen)
569  return realScreen->sharedRamSize(ptr);
570  else
571  return QScreen::sharedRamSize(ptr);
572 }
virtual int sharedRamSize(void *)
Definition: qscreen_qws.h:215
QScreen * realScreen
const T * ptr(const T &t)

◆ shutdownDevice()

void QProxyScreen::shutdownDevice ( )
virtual

Reimplemented Function

Reimplemented from QScreen.

Reimplemented in QVNCScreen.

Definition at line 441 of file qscreenproxy_qws.cpp.

Referenced by QVNCScreen::shutdownDevice().

442 {
443  if (realScreen)
445 }
QScreen * realScreen
virtual void shutdownDevice()
This function is called by the Qt for Embedded Linux server before it calls the disconnect() function...

◆ solidFill()

void QProxyScreen::solidFill ( const QColor color,
const QRegion region 
)
virtual

Reimplemented Function

Reimplemented from QScreen.

Reimplemented in QTransformedScreen.

Definition at line 319 of file qscreenproxy_qws.cpp.

Referenced by QTransformedScreen::isTransformed(), and QTransformedScreen::solidFill().

320 {
321  if (!realScreen) {
322  QScreen::solidFill(color, region);
323  return;
324  }
325  realScreen->solidFill(color, region);
326 }
QScreen * realScreen
virtual void solidFill(const QColor &color, const QRegion &region)
Fills the given region of the screen with the specified color.

◆ subScreens()

QList< QScreen * > QProxyScreen::subScreens ( ) const
virtual

Reimplemented Function

Reimplemented from QScreen.

Definition at line 626 of file qscreenproxy_qws.cpp.

627 {
628  if (realScreen)
629  return realScreen->subScreens();
630 
631  return QScreen::subScreens();
632 }
QScreen * realScreen
virtual QList< QScreen * > subScreens() const
Definition: qscreen_qws.h:283

◆ supportsDepth()

bool QProxyScreen::supportsDepth ( int  depth) const
virtual

Reimplemented Function

Reimplemented from QScreen.

Definition at line 466 of file qscreenproxy_qws.cpp.

467 {
468  if (realScreen)
469  return realScreen->supportsDepth(depth);
470  return false;
471 }
QScreen * realScreen
virtual bool supportsDepth(int) const
Returns true if the screen supports the specified color depth; otherwise returns false.
int depth() const
Returns the depth of the framebuffer, in bits per pixel.
Definition: qscreen_qws.h:229

◆ transformOrientation()

int QProxyScreen::transformOrientation ( ) const
virtual

Reimplemented Function

Reimplemented from QScreen.

Reimplemented in QTransformedScreen.

Definition at line 545 of file qscreenproxy_qws.cpp.

546 {
547  if (realScreen)
550 }
QScreen * realScreen
virtual int transformOrientation() const
Returns the current rotation as an integer value.

Properties

◆ d_ptr

QProxyScreenPrivate* QProxyScreen::d_ptr
private

Definition at line 145 of file qscreenproxy_qws.h.

◆ realScreen

QScreen* QProxyScreen::realScreen
private

The documentation for this class was generated from the following files: