krita
kis_paint_device_iface.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _KIS_PAINT_DEVICE_IFACE_H
00021 #define _KIS_PAINT_DEVICE_IFACE_H
00022
00023 #include <dcopref.h>
00024 #include <dcopobject.h>
00025
00026 #include <qstring.h>
00027
00028 class KisPaintDevice;
00029
00030 class KisPaintDeviceIface : virtual public DCOPObject
00031 {
00032 K_DCOP
00033 public:
00034 KisPaintDeviceIface( KisPaintDevice * parent );
00035 k_dcop:
00036
00040 Q_INT32 pixelSize() const;
00041
00045 Q_INT32 nChannels() const;
00046
00057 QByteArray readBytes(Q_INT32 x, Q_INT32 y, Q_INT32 w, Q_INT32 h);
00058
00067 void writeBytes(QByteArray bytes, Q_INT32 x, Q_INT32 y, Q_INT32 w, Q_INT32 h);
00068
00072 DCOPRef colorSpace() const;
00073
00077 void setColorSpace(DCOPRef colorSpace);
00078
00079
00080 private:
00081
00082 KisPaintDevice *m_parent;
00083 };
00084
00085 #endif
|