#include <ksharedpixmap.h>
Inheritance diagram for KSharedPixmap:

Signals | |
| void | done (bool success) |
Public Methods | |
| KSharedPixmap () | |
| ~KSharedPixmap () | |
| bool | loadFromShared (const QString &name, const QRect &rect=QRect()) |
| bool | isAvailable (const QString &name) const |
A shared pixmap is a pixmap that resides on the X server, is referenced by a global id string, and can be accessed by all X clients.
This class is a client class to shared pixmaps in KDE. You can use it to copy (a part of) a shared pixmap into. KSharedPixmap inherits KPixmap for that purpose.
The server part of shared pixmaps is not implemented here. That part is provided by KPixmapServer, in the source file: kdebase/kdesktop/pixmapserver.cc.
An example: copy from a shared pixmap:
KSharedPixmap *pm = new KSharedPixmap;
connect(pm, SIGNAL(done(bool)), SLOT(slotDone(bool)));
pm->loadFromShared("My Pixmap");
Definition at line 51 of file ksharedpixmap.h.
|
|
Construct an empty pixmap. |
|
|
Destroys the pixmap. |
|
|
This signal is raised when a pixmap load operation has finished.
|
|
|
Check whether a shared pixmap is available.
|
|
||||||||||||
|
Load from a shared pixmap reference. The signal done() is emitted when the operation has finished.
|
1.2.18