42 #ifndef MGRAPHICSSYSTEM_H 43 #define MGRAPHICSSYSTEM_H 45 #include <private/qgraphicssystem_p.h> 47 #include <GLES2/gl2.h> 48 #include <GLES2/gl2ext.h> static void triggerSwitchCallbacks(int type, const char *name)
Q_DECL_EXPORT bool qt_meego_live_texture_release(QPixmap *pixmap, QImage *image)
Q_DECL_EXPORT void qt_meego_switch_to_meego(void)
Format
The following image formats are available in Qt.
static void callback(AuServer *, AuEventHandlerRec *, AuEvent *e, AuPointer p)
Q_DECL_EXPORT Qt::HANDLE qt_meego_live_texture_get_handle(QPixmap *pixmap)
static void * createFenceSync()
static void switchToRaster()
static void updateEGLSharedImagePixmap(QPixmap *pixmap)
static void switchToMeeGo()
QPointer< QWidget > widget
Q_DECL_EXPORT void qt_meego_set_translucent(bool translucent)
static QImage * lockLiveTexture(QPixmap *pixmap, void *fenceSync)
static QPixmapData * pixmapDataFromLiveTextureHandle(Qt::HANDLE handle)
Q_DECL_EXPORT QPixmapData * qt_meego_pixmapdata_from_live_texture_handle(Qt::HANDLE handle)
Q_DECL_EXPORT void qt_meego_set_surface_scaling(int x, int y, int width, int height)
Q_DECL_EXPORT void qt_meego_set_surface_fixed_size(int width, int height)
Q_DECL_EXPORT void qt_meego_register_switch_callback(QMeeGoSwitchCallback callback)
Q_DECL_EXPORT QPixmapData * qt_meego_pixmapdata_with_new_live_texture(int w, int h, QImage::Format format)
static void registerSwitchCallback(QMeeGoSwitchCallback callback)
static void destroySurfaceForLiveTexturePixmap(QPixmapData *pmd)
static bool releaseLiveTexture(QPixmap *pixmap, QImage *image)
static void setSurfaceFixedSize(int width, int height)
The QString class provides a Unicode character string.
The QHash class is a template class that provides a hash-table-based dictionary.
virtual QPixmapData * createPixmapData(QPixmapData::PixelType) const
static SwitchPolicy switchPolicy
Q_DECL_EXPORT QPixmapData * qt_meego_pixmapdata_with_gl_texture(int w, int h)
static QHash< Qt::HANDLE, QPixmap * > liveTexturePixmaps
static QPixmapData * pixmapDataFromEGLImage(Qt::HANDLE handle)
Q_DECL_EXPORT void qt_meego_set_switch_policy(int policy)
static void setSurfaceScaling(int x, int y, int width, int height)
#define Q_DECL_EXPORT
This macro marks a symbol for shared library export (see sharedlibrary.
void(* QMeeGoSwitchCallback)(int type, const char *name)
The QImage class provides a hardware-independent image representation that allows direct access to th...
Q_DECL_EXPORT void qt_meego_destroy_fence_sync(void *fs)
Q_DECL_EXPORT bool qt_meego_destroy_egl_shared_image(Qt::HANDLE handle)
static EGLSurface getSurfaceForLiveTexturePixmap(QPixmap *pixmap)
static void destroyFenceSync(void *fenceSync)
The QWindowSurface class provides the drawing area for top-level windows.
static QPixmapData * pixmapDataWithNewLiveTexture(int w, int h, QImage::Format format)
Q_DECL_EXPORT void qt_meego_invalidate_live_surfaces(void)
Q_DECL_EXPORT void qt_meego_switch_to_raster(void)
static bool meeGoRunning()
Q_DECL_EXPORT QPixmapData * qt_meego_pixmapdata_from_egl_shared_image(Qt::HANDLE handle, const QImage &softImage)
Q_DECL_EXPORT int qt_meego_image_to_egl_shared_image(const QImage &image)
The QPixmap class is an off-screen image representation that can be used as a paint device...
static void setTranslucent(bool translucent)
Q_DECL_EXPORT QImage * qt_meego_live_texture_lock(QPixmap *pixmap, void *fenceSync)
static QList< QMeeGoSwitchCallback > switchCallbacks
Q_DECL_EXPORT void * qt_meego_create_fence_sync(void)
static QString runningGraphicsSystemName()
static bool surfaceWasCreated
virtual QWindowSurface * createWindowSurface(QWidget *widget) const
static QPixmapData * pixmapDataWithGLTexture(int w, int h)
static Qt::HANDLE getLiveTextureHandle(QPixmap *pixmap)
static QPixmapData * pixmapDataFromEGLSharedImage(Qt::HANDLE handle, const QImage &softImage)
Q_DECL_EXPORT void qt_meego_update_egl_shared_image_pixmap(QPixmap *pixmap)
static QPixmapData * wrapPixmapData(QPixmapData *pmd)