KSharedPixmap Class Reference
Shared pixmap client. More...
#include <ksharedpixmap.h>
Inheritance diagram for KSharedPixmap:


Signals | |
void | done (bool success) |
This signal is raised when a pixmap load operation has finished. | |
Public Member Functions | |
KSharedPixmap () | |
Construct an empty pixmap. | |
~KSharedPixmap () | |
Destroys the pixmap. | |
bool | loadFromShared (const QString &name, const QRect &rect=QRect()) |
Load from a shared pixmap reference. | |
bool | isAvailable (const QString &name) const |
Check whether a shared pixmap is available. | |
Protected Member Functions | |
bool | x11Event (XEvent *) |
Detailed Description
Shared pixmap client.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");
- Author:
- Geert Jansen <jansen@kde.org>
- Version:
- Id
- ksharedpixmap.h,v 1.7.4.1 2003/06/05 23:42:37 mueller Exp
Definition at line 51 of file ksharedpixmap.h.
Constructor & Destructor Documentation
|
Construct an empty pixmap.
Definition at line 65 of file ksharedpixmap.cpp. |
|
Destroys the pixmap.
Definition at line 73 of file ksharedpixmap.cpp. |
Member Function Documentation
|
Load from a shared pixmap reference. The signal done() is emitted when the operation has finished.
Definition at line 99 of file ksharedpixmap.cpp. References QString::latin1(), KStdAccel::name(), QPixmap::resize(), and QWidget::winId(). Referenced by KRootPixmap::repaint(). |
|
Check whether a shared pixmap is available.
Definition at line 89 of file ksharedpixmap.cpp. References QString::latin1(), and KStdAccel::name(). Referenced by KRootPixmap::isAvailable(). |
|
This signal is raised when a pixmap load operation has finished.
|
The documentation for this class was generated from the following files: