CopperSpice API  1.9.2
QPlatformSurfaceEvent Class Reference

The QPlatformSurfaceEvent class is used to notify about native platform surface events. More...

Inheritance diagram for QPlatformSurfaceEvent:
QEvent

Public Types

enum  SurfaceEventType
 
- Public Types inherited from QEvent
enum  Type
 

Public Methods

 QPlatformSurfaceEvent (SurfaceEventType surfaceEventType)
 
SurfaceEventType surfaceEventType () const
 
- Public Methods inherited from QEvent
 QEvent (const QEvent &other)
 
 QEvent (Type type)
 
virtual ~QEvent ()
 
void accept ()
 
void ignore ()
 
bool isAccepted () const
 
QEvent & operator= (const QEvent &other)
 
void setAccepted (bool accepted)
 
bool spontaneous () const
 
Type type () const
 

Additional Inherited Members

- Static Public Methods inherited from QEvent
static int registerEventType (int hint=-1)
 

Detailed Description

Platform window events are synchronously sent to windows and offscreen surfaces when their underlying native surfaces are created or are about to be destroyed.

Applications can respond to these events to know when the underlying platform surface exists.

Member Enumeration Documentation

This enum describes the type of platform surface event. The SurfaceAboutToBeDestroyed event type is useful as a means of stopping rendering to a platform window before it is destroyed.

Constant Value Description
QPlatformSurfaceEvent::SurfaceCreated 0 Underlying native surface has been created
QPlatformSurfaceEvent::SurfaceAboutToBeDestroyed 1 Underlying native surface will be destroyed immediately after this event

Constructor & Destructor Documentation

QPlatformSurfaceEvent::QPlatformSurfaceEvent ( SurfaceEventType  surfaceEventType)
explicit

Constructs a platform surface event for the given surfaceEventType.

Method Documentation

QPlatformSurfaceEvent::SurfaceEventType QPlatformSurfaceEvent::surfaceEventType ( ) const
inline

Returns the specific type of platform surface event.