|
virtual void | beginRequestBatch () = 0 |
|
virtual bool | dereferenceBuffer (void *bufferId) = 0 |
|
virtual void * | eglImageForBuffer (void *bufferId) = 0 |
|
virtual void | endRequestBatch () = 0 |
|
virtual void | ensureCacheInitialized (const QByteArray &cacheId, BufferType bufferType, PixelFormat pixelFormat) = 0 |
|
virtual void | insertItems (const QByteArray &cacheId, const QVector< quint32 > &itemIds, const QVector< QImage > &items) = 0 |
|
virtual void | referenceBuffer (void *bufferId) = 0 |
|
virtual void | releaseItems (const QByteArray &cacheId, const QVector< quint32 > &itemIds) = 0 |
|
virtual bool | requestBatchStarted () const = 0 |
|
virtual void | requestItems (const QByteArray &cacheId, const QVector< quint32 > &itemIds) = 0 |
|
virtual QSize | sizeOfBuffer (void *bufferId) = 0 |
|
virtual uint | textureIdForBuffer (void *bufferId) = 0 |
|
| QObject (QObject *parent=nullptr) |
|
| ~QObject () |
|
bool | blockSignals (bool block) |
|
const QList< QObject * > & | children () const |
|
bool | connect (const QObject *sender, const QString &signalMethod, const QString &location, const QString &slotMethod, Qt::ConnectionType type=Qt::AutoConnection) |
|
bool | connect (const QObject *sender, const QString &signalMethod, const QString &slotMethod, Qt::ConnectionType type=Qt::AutoConnection) |
|
bool | disconnect (const QObject *receiver, const QString &slotMethod=QString ()) const |
|
bool | disconnect (const QString &signalMethod, const QString &location, const QObject *receiver=nullptr, const QString &slotMethod=QString ()) const |
|
bool | disconnect (const QString &signalMethod=QString (), const QObject *receiver=nullptr, const QString &slotMethod=QString ()) const |
|
void | dumpObjectInfo () |
|
void | dumpObjectTree () |
|
QList< QString > | dynamicPropertyNames () const |
|
virtual bool | event (QEvent *event) |
|
virtual bool | eventFilter (QObject *watched, QEvent *event) |
|
template<typename T > |
T | findChild (const QString &childName=QString ()) const |
|
template<class T > |
QList< T > | findChildren (const QRegularExpression ®Exp, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
|
template<class T > |
QList< T > | findChildren (const QString &childName=QString (), Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
|
bool | inherits (const QString &className) const |
|
void | installEventFilter (QObject *filterObj) |
|
bool | isWidgetType () const |
|
bool | isWindowType () const |
|
void | killTimer (int id) |
|
const QMetaObject * | metaObject () const |
|
void | moveToThread (QThread *targetThread) |
|
QString | objectName () const |
|
QObject * | parent () const |
|
template<class T = QVariant> |
T | property (const QString &name) const |
|
void | removeEventFilter (QObject *obj) |
|
void | setObjectName (const QString &name) |
|
void | setParent (QObject *parent) |
|
bool | setProperty (const QString &name, const QVariant &value) |
|
bool | signalsBlocked () const |
|
int | startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer) |
|
QThread * | thread () const |
|
|
void | deleteLater () |
|
static bool | connect (const QObject *sender, const QMetaMethod &signalMethod, const QObject *receiver, const QMetaMethod &slotMethod, Qt::ConnectionType type=Qt::AutoConnection) |
|
static bool | connect (const QObject *sender, const QString &signalMethod, const QObject *receiver, const QString &slotMethod, Qt::ConnectionType type=Qt::AutoConnection, const QString &location=QString ()) |
|
static bool | connect (const QObject *sender, const QString &signalMethod, const QString &location, const QObject *receiver, const QString &slotMethod, Qt::ConnectionType type=Qt::AutoConnection) |
|
template<class Sender , class SignalClass , class... SignalArgs, class Receiver , class SlotClass , class... SlotArgs, class SlotReturn > |
static bool | connect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, SlotReturn (SlotClass::*slotMethod)(SlotArgs...), Qt::ConnectionType type=Qt::AutoConnection) |
|
template<class Sender , class SignalClass , class... SignalArgs, class Receiver , class T > |
static bool | connect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, T slotLambda, Qt::ConnectionType type=Qt::AutoConnection) |
|
static bool | disconnect (const QObject *sender, const QMetaMethod &signalMethod, const QObject *receiver, const QMetaMethod &slotMethod) |
|
static bool | disconnect (const QObject *sender, const QString &signalMethod, const QObject *receiver, const QString &slotMethod) |
|
static bool | disconnect (const QObject *sender, const QString &signalMethod, const QString &location, const QObject *receiver, const QString &slotMethod) |
|
static bool | disconnect (const QObject *sender, std::nullptr_t, const QObject *receiver, std::nullptr_t) |
|
template<class Sender , class SignalClass , class... SignalArgs, class Receiver , class SlotClass , class... SlotArgs, class SlotReturn > |
static bool | disconnect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, SlotReturn (SlotClass::*slotMethod)(SlotArgs...)) |
|
template<class Sender , class SignalClass , class... SignalArgs, class Receiver > |
static bool | disconnect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, std::nullptr_t slotMethod=nullptr) |
|
template<class Sender , class SignalClass , class... SignalArgs, class Receiver , class T > |
static bool | disconnect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, T slotMethod) |
|
static QMetaObject & | staticMetaObject () |
|
static QString | tr (const char *text, const char *comment=nullptr, std::optional< int > numArg=std::optional< int >()) |
|
virtual void | childEvent (QChildEvent *event) |
|
virtual void | connectNotify (const QMetaMethod &signalMethod) const |
|
virtual void | customEvent (QEvent *event) |
|
virtual void | disconnectNotify (const QMetaMethod &signalMethod) const |
|
bool | isSignalConnected (const QMetaMethod &signalMethod) const |
|
int | receivers (const QString &signal) const |
|
QObject * | sender () const |
|
int | senderSignalIndex () const |
|
virtual void | timerEvent (QTimerEvent *event) |
|
| objectName |
|
T | qobject_cast (QObject *object) |
|
| QObjectList |
|
The QPlatformSharedGraphicsCache is an abstraction of a cross-process graphics cache.
If supported, it is possible to retrieve a QPlatformSharedGraphicsCache object from the platform integration. This is typically used to store graphical items which should be shared between several processes.
Items are requested from the cache by calling requestItems(). If the cache contains the requested items in the requested cache, the itemsAvailable() signal is emitted with the ID of the graphical buffer and each item's coordinates inside the buffer. Before requesting items from a cache, the user must call ensureCacheInitialized() to set the correct parameters for the cache.
If the cache does not yet contain the requested items, it will emit a similar itemsMissing() signal. The client can then call updateItems() with rasterizations of the items and they will be entered into the shared cache. As the items are rendered into the cache, itemsAvailable() signals will be emitted for each of the items which have previously been requested and which have not yet been reported as ready.
Using beginRequestBatch() and endRequestBatch(), it is possible to batch glyph requests, which could improve performance in cases where you have a sequence of requests pending, and you do not need the results during this sequence.
This signal can be emitted at any time when either requestItems() or insertItems() has been called by the application for one or more items in the cache named cacheId, as long as releaseItems() has not subsequently been called for the same items. It instructs the application on where to find the items that have been entered into the cache. When the application receives a buffer, it is expected to reference it using referenceBuffer() on it if it keeps a reference to the buffer.
The bufferId is an ID for the buffer that contains the items. The bufferId can be converted to a format usable by the application depending on which format it was given at initialization. If it is a OpenGLTexture, its texture ID can be requested using the textureIdForBuffer() function. The dimensions of the buffer are given by bufferSize.
The items provided by the cache are identified in the itemIds vector. The positionsInBuffer vector contains the locations inside the buffer of each item. Each entry in positionsInBuffer corresponds to an item in itemIds.
The buffer and the items' locations within the buffer can be considered valid until an itemsInvalidated() signal has been emitted for the items, or until releaseItems() is called for the items.
- See also
- itemsMissing(), requestItems()