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

#include <qeglfswindowsurface.h>

Inheritance diagram for QEglFSWindowSurface:
QWindowSurface

Public Functions

void flush (QWidget *widget, const QRegion &region, const QPoint &offset)
 Flushes the given region from the specified widget onto the screen. More...
 
QPaintDevicepaintDevice ()
 Implement this function to return the appropriate paint device. More...
 
 QEglFSWindowSurface (QEglFSScreen *screen, QWidget *window)
 
void resize (const QSize &size)
 
 ~QEglFSWindowSurface ()
 
- Public Functions inherited from QWindowSurface
virtual void beginPaint (const QRegion &)
 This function is called before painting onto the surface begins, with the region in which the painting will occur. More...
 
virtual QImagebuffer (const QWidget *widget)
 Returns a QImage pointer which represents the actual buffer the widget is drawn into or 0 if this is unavailable. More...
 
virtual void endPaint (const QRegion &)
 This function is called after painting onto the surface has ended, with the region in which the painting was performed. More...
 
virtual WindowSurfaceFeatures features () const
 
QRect geometry () const
 Returns the currently allocated area on the screen. More...
 
virtual QPixmap grabWidget (const QWidget *widget, const QRect &rectangle=QRect()) const
 Returns a QPixmap generated from the part of the backing store corresponding to widget. More...
 
bool hasFeature (WindowSurfaceFeature feature) const
 
virtual QPoint offset (const QWidget *widget) const
 Returns the offset of widget in the coordinates of this window surface. More...
 
 QWindowSurface (QWidget *window, bool setDefaultSurface=true)
 Constructs an empty surface for the given top-level window. More...
 
QRect rect (const QWidget *widget) const
 Returns the rectangle for widget in the coordinates of this window surface. More...
 
virtual bool scroll (const QRegion &area, int dx, int dy)
 Scrolls the given area dx pixels to the right and dy downward; both dx and dy may be negative. More...
 
virtual void setGeometry (const QRect &rect)
 Sets the currently allocated area to be the given rect. More...
 
void setStaticContents (const QRegion &region)
 
QRegion staticContents () const
 
QWidgetwindow () const
 Returns a pointer to the top-level window associated with this surface. More...
 
virtual ~QWindowSurface ()
 Destroys this surface. More...
 

Properties

QPaintDevicem_paintDevice
 

Additional Inherited Members

- Public Types inherited from QWindowSurface
enum  WindowSurfaceFeature { PartialUpdates = 0x00000001, PreservedContents = 0x00000002, StaticContents = 0x00000004, AllFeatures = 0xffffffff }
 
- Protected Functions inherited from QWindowSurface
bool hasStaticContents () const
 

Detailed Description

Definition at line 52 of file qeglfswindowsurface.h.

Constructors and Destructors

◆ QEglFSWindowSurface()

QEglFSWindowSurface::QEglFSWindowSurface ( QEglFSScreen screen,
QWidget window 
)

Definition at line 76 of file qeglfswindowsurface.cpp.

77  :QWindowSurface(window)
78 {
79 #ifdef QEGL_EXTRA_DEBUG
80  qWarning("QEglWindowSurface %p, %p", window, screen);
81 #endif
82  m_paintDevice = new QEglFSPaintDevice(screen,window);
83 }
QPaintDevice * m_paintDevice
Q_CORE_EXPORT void qWarning(const char *,...)
QWindowSurface(QWidget *window, bool setDefaultSurface=true)
Constructs an empty surface for the given top-level window.

◆ ~QEglFSWindowSurface()

QEglFSWindowSurface::~QEglFSWindowSurface ( )
inline

Definition at line 56 of file qeglfswindowsurface.h.

56 {}

Functions

◆ flush()

void QEglFSWindowSurface::flush ( QWidget widget,
const QRegion region,
const QPoint offset 
)
virtual

Flushes the given region from the specified widget onto the screen.

Note that the offset parameter is currently unused.

Implements QWindowSurface.

Definition at line 85 of file qeglfswindowsurface.cpp.

Referenced by paintDevice().

86 {
87  Q_UNUSED(widget);
88  Q_UNUSED(region);
89  Q_UNUSED(offset);
90 #ifdef QEGL_EXTRA_DEBUG
91  qWarning("QEglWindowSurface::flush %p",widget);
92 #endif
93  widget->platformWindow()->glContext()->swapBuffers();
94 }
Q_CORE_EXPORT void qWarning(const char *,...)
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729

◆ paintDevice()

QPaintDevice* QEglFSWindowSurface::paintDevice ( )
inlinevirtual

Implement this function to return the appropriate paint device.

Implements QWindowSurface.

Definition at line 58 of file qeglfswindowsurface.h.

58 { return m_paintDevice; }
QPaintDevice * m_paintDevice

◆ resize()

void QEglFSWindowSurface::resize ( const QSize size)

Definition at line 96 of file qeglfswindowsurface.cpp.

Referenced by paintDevice().

97 {
98  Q_UNUSED(size);
99 }
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729

Properties

◆ m_paintDevice

QPaintDevice* QEglFSWindowSurface::m_paintDevice
private

Definition at line 62 of file qeglfswindowsurface.h.

Referenced by paintDevice(), and QEglFSWindowSurface().


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