Dillo v3.1.1-119-g140d9ebd
Loading...
Searching...
No Matches
imgrenderer.cc
Go to the documentation of this file.
1/*
2 * Dillo Widget
3 *
4 * Copyright 2013 Sebastian Geerken <sgeerken@dillo.org>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#include "core.hh"
21
22namespace dw {
23namespace core {
24
25using namespace lout::container;
26using namespace lout::object;
27
28void ImgRendererDist::setBuffer (core::Imgbuf *buffer, bool resize)
29{
30 for (typed::Iterator <TypedPointer <ImgRenderer> > it =
31 children->iterator (); it.hasNext (); ) {
32 TypedPointer <ImgRenderer> *tp = it.getNext ();
33 tp->getTypedValue()->setBuffer (buffer, resize);
34 }
35}
36
38{
39 for (typed::Iterator <TypedPointer <ImgRenderer> > it =
40 children->iterator (); it.hasNext (); ) {
41 TypedPointer <ImgRenderer> *tp = it.getNext ();
42 tp->getTypedValue()->drawRow (row);
43 }
44}
45
46
48{
49 for (typed::Iterator <TypedPointer <ImgRenderer> > it =
50 children->iterator (); it.hasNext (); ) {
51 TypedPointer <ImgRenderer> *tp = it.getNext ();
52 tp->getTypedValue()->finish ();
53 }
54}
55
57{
58 for (typed::Iterator <TypedPointer <ImgRenderer> > it =
59 children->iterator (); it.hasNext (); ) {
60 TypedPointer <ImgRenderer> *tp = it.getNext ();
61 tp->getTypedValue()->fatal ();
62 }
63}
64
65
66} // namespace core
67} // namespace dw
void setBuffer(core::Imgbuf *buffer, bool resize)
Called, when an image buffer is attached.
lout::container::typed::HashSet< lout::object::TypedPointer< ImgRenderer > > * children
void drawRow(int row)
Called, when data from a row is available and has been copied into the image buffer.
void finish()
Called, when all image data has been retrieved.
void fatal()
Called, when there are problems with the retrieval of image data.
The platform independent interface for image buffers.
Definition imgbuf.hh:162
Typed version of container::untyped::Iterator.
Definition container.hh:395
Dw is in this namespace, or sub namespaces of this one.
This namespace contains a framework for container classes, which members are instances of object::Obj...
Definition container.cc:31
Here, some common classes (or interfaces) are defined, to standardize the access to other classes.
Definition object.cc:30