diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2009-02-09 14:56:31 -0300 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2009-02-09 14:56:31 -0300 |
commit | e32686c10a4f4fe7c34b181845220b5c491f32fb (patch) | |
tree | c090052c311a3a1732d03dc17fe357f97437b397 /dw/imgbuf.hh | |
parent | 74f64426001a693759e47963f99965e0e6ee847d (diff) |
whitespace cleanup: 's/ +$//g'
Diffstat (limited to 'dw/imgbuf.hh')
-rw-r--r-- | dw/imgbuf.hh | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/dw/imgbuf.hh b/dw/imgbuf.hh index 8948bbef..43320aeb 100644 --- a/dw/imgbuf.hh +++ b/dw/imgbuf.hh @@ -53,16 +53,16 @@ using namespace lout; * * * <h3>Scaling</h3> - * + * * The buffer with the original size, which was created by * dw::core::Platform::createImgbuf, is called root buffer. Imgbuf provides * the ability to scale buffers. Generally, both root buffers, as well as * scaled buffers, may be shared, memory management is done by reference * counters. - * + * * Via dw::core::Imgbuf::getScaledBuf, you can retrieve a scaled buffer. * Generally, something like this must work always, in an efficient way: - * + * * \code * dw::core::Imgbuf *curBuf, *oldBuf; * int width, heigt, @@ -71,15 +71,15 @@ using namespace lout; * curBuf = oldBuf->getScaledBuf(oldBuf, width, height); * oldBuf->unref(); * \endcode - * + * * \em oldBuf may both be a root buffer, or a scaled buffer. - * + * * The root buffer keeps a list of all children, and all methods * operating on the image data (dw::core::Imgbuf::copyRow and * dw::core::Imgbuf::setCMap) are delegated to the scaled buffers, when * processed, and inherited, when a new scaled buffer is created. This * means, that they must only be performed for the root buffer. - * + * * A possible implementation could be (dw::fltk::FltkImgbuf does it this way): * * <ul> @@ -92,7 +92,7 @@ using namespace lout; * <li> Otherwise, if this buffer has already been scaled to the given * size, return this scaled buffer, with an increased reference * counter. - * + * * <li> Otherwise, return a new scaled buffer with reference counter 1. * </ul> * @@ -120,7 +120,7 @@ using namespace lout; * \code * dw::fltk::FltkPlatform *platform = new dw::fltk::FltkPlatform (); * dw::core::Layout *layout = new dw::core::Layout (platform); - * + * * dw::core::Imgbuf *rootbuf = * layout->createImgbuf (dw::core::Imgbuf::RGB, 100, 100); * dw::core::Imgbuf *scaledbuf = rootbuf->getScaledBuf (50, 50); @@ -133,12 +133,12 @@ using namespace lout; * the scaled buffer, it is deleted, and after it, the root buffer. * * <h3>Drawing</h3> - * + * * dw::core::Imgbuf provides no methods for drawing, instead, this is * done by the views (implementation of dw::core::View). * * There are two situations, when drawing is necessary: - * + * * <ol> * <li> To react on expose events, the function dw::core::View::drawImage * should be used, with the following parameters: @@ -149,7 +149,7 @@ using namespace lout; * <li> the region within the image, which should be displayed (\em x, * \em y, \em width, \em height). * </ul> - * + * * <li> When a row has been copied, it has to be drawn. To determine the * area, which has to be drawn, the dw::core::Imgbuf::getRowArea * should be used. The result can then passed |