krita

kis_paint_device_iface.h

00001 /*
00002  *  This file is part of the KDE project
00003  *
00004  *  Copyright (C) 2005 Boudewijn Rempt <boud@valdyas.org>
00005  *
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License as published by
00008  *  the Free Software Foundation; either version 2 of the License, or
00009  *  (at your option) any later version.
00010  *
00011  *  This program is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License
00017  *  along with this program; if not, write to the Free Software
00018  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
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
KDE Home | KDE Accessibility Home | Description of Access Keys