dillo  3.0.5
About: dillo is a small, fast, extensible Web browser particularly suitable for older or smaller computers and embedded systems (but only limited or no support for frames, CSS, JavaScript, Java).
  Fossies Dox: dillo-3.0.5.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

imgbuf.hh
Go to the documentation of this file.
1 #ifndef __DW_IMGBUF_HH__
2 #define __DW_IMGBUF_HH__
3 
4 #ifndef __INCLUDED_FROM_DW_CORE_HH__
5 # error Do not include this file directly, use "core.hh" instead.
6 #endif
7 
8 #include "../lout/debug.hh"
9 
10 namespace dw {
11 namespace core {
12 
162 {
163 public:
165 
166  inline Imgbuf () {
167  DBG_OBJ_CREATE ("dw::core::Imgbuf");
170  }
171 
172  /*
173  * Methods called from the image decoding
174  */
175 
176  virtual void setCMap (int *colors, int num_colors) = 0;
177  virtual void copyRow (int row, const byte *data) = 0;
178  virtual void newScan () = 0;
179 
180  /*
181  * Methods called from dw::Image
182  */
183 
184  virtual Imgbuf* getScaledBuf (int width, int height) = 0;
185  virtual void getRowArea (int row, dw::core::Rectangle *area) = 0;
186  virtual int getRootWidth () = 0;
187  virtual int getRootHeight () = 0;
188 
189 
194  virtual Imgbuf *createSimilarBuf (int width, int height) = 0;
195 
199  virtual void copyTo (Imgbuf *dest, int xDestRoot, int yDestRoot,
200  int xSrc, int ySrc, int widthSrc, int heightSrc) = 0;
201 
202  /*
203  * Reference counting.
204  */
205 
206  virtual void ref () = 0;
207  virtual void unref () = 0;
208 
212  virtual bool lastReference () = 0;
213 
214 
218  virtual void setDeleteOnUnref (bool deleteOnUnref) = 0;
219 
223  virtual bool isReferred () = 0;
224 };
225 
226 } // namespace core
227 } // namespace dw
228 
229 #endif // __DW_IMGBUF_HH__
dw::core::Imgbuf::INDEXED
Definition: imgbuf.hh:164
dw::core::Imgbuf::copyTo
virtual void copyTo(Imgbuf *dest, int xDestRoot, int yDestRoot, int xSrc, int ySrc, int widthSrc, int heightSrc)=0
DBG_OBJ_CREATE
#define DBG_OBJ_CREATE(klass)
Definition: debug.hh:175
dw::core::Imgbuf::getScaledBuf
virtual Imgbuf * getScaledBuf(int width, int height)=0
dw::core::Imgbuf::copyRow
virtual void copyRow(int row, const byte *data)=0
dw::core::Imgbuf::isReferred
virtual bool isReferred()=0
dw::core::Imgbuf::INDEXED_ALPHA
Definition: imgbuf.hh:164
dw::core::Imgbuf::setDeleteOnUnref
virtual void setDeleteOnUnref(bool deleteOnUnref)=0
lout::object::Object
This is the base class for many other classes, which defines very common virtual methods.
Definition: object.hh:24
dw::core::Imgbuf::getRootHeight
virtual int getRootHeight()=0
dw::core::Imgbuf::getRootWidth
virtual int getRootWidth()=0
dw::core::Imgbuf
The platform independent interface for image buffers.
Definition: imgbuf.hh:161
dw::core::Rectangle
dw::core::Shape implemtation for simple rectangles.
Definition: types.hh:69
dw::core::Imgbuf::unref
virtual void unref()=0
dw::core::Imgbuf::Type
Type
Definition: imgbuf.hh:164
dw::core::Imgbuf::setCMap
virtual void setCMap(int *colors, int num_colors)=0
dw::core::Imgbuf::createSimilarBuf
virtual Imgbuf * createSimilarBuf(int width, int height)=0
dw::core::Imgbuf::ref
virtual void ref()=0
dw::core::Imgbuf::RGB
Definition: imgbuf.hh:164
dw::core::Imgbuf::RGBA
Definition: imgbuf.hh:164
lout::signal::ObservedObject
An observed object has a signal emitter, which tells the receivers, when the object is deleted.
Definition: signal.hh:274
dw::core::Imgbuf::getRowArea
virtual void getRowArea(int row, dw::core::Rectangle *area)=0
dw::core::Imgbuf::lastReference
virtual bool lastReference()=0
DBG_OBJ_BASECLASS
#define DBG_OBJ_BASECLASS(klass)
Definition: debug.hh:177
dw::core::Imgbuf::Imgbuf
Imgbuf()
Definition: imgbuf.hh:166
dw::core::Imgbuf::newScan
virtual void newScan()=0
dw
Dw is in this namespace, or sub namespaces of this one.
Definition: alignedtextblock.cc:26
dw::core::Imgbuf::GRAY
Definition: imgbuf.hh:164