Dillo v3.1.1-91-g6d5b3ee3
Loading...
Searching...
No Matches
imgrenderer.hh
Go to the documentation of this file.
1#ifndef __DW_IMGRENDERER_HH__
2#define __DW_IMGRENDERER_HH__
3
4#ifndef __INCLUDED_FROM_DW_CORE_HH__
5# error Do not include this file directly, use "core.hh" instead.
6#endif
7
8namespace dw {
9namespace core {
10
17{
18public:
19 virtual ~ImgRenderer () { }
20
26 virtual void setBuffer (core::Imgbuf *buffer, bool resize = false) = 0;
27
34 virtual void drawRow (int row) = 0;
35
42 virtual void finish () = 0;
43
49 virtual void fatal () = 0;
50};
51
60{
61 lout::container::typed::HashSet <lout::object::TypedPointer <ImgRenderer> >
63
64public:
67 <lout::object::TypedPointer <ImgRenderer> > (true); }
69
70 void setBuffer (core::Imgbuf *buffer, bool resize);
71 void drawRow (int row);
72 void finish ();
73 void fatal ();
74
75 void put (ImgRenderer *child)
76 { children->put (new lout::object::TypedPointer <ImgRenderer> (child)); }
77 void remove (ImgRenderer *child)
78 { lout::object::TypedPointer <ImgRenderer> tp (child);
79 children->remove (&tp); }
80};
81
82} // namespace core
83} // namespace dw
84
85#endif // __DW_IMGRENDERER_HH__
86
87
Implementation of ImgRenderer, which distributes all calls to a set of other implementations of ImgRe...
void setBuffer(core::Imgbuf *buffer, bool resize)
Called, when an image buffer is attached.
lout::container::typed::HashSet< lout::object::TypedPointer< ImgRenderer > > * children
void remove(ImgRenderer *child)
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.
void put(ImgRenderer *child)
virtual void fatal()=0
Called, when there are problems with the retrieval of image data.
virtual void drawRow(int row)=0
Called, when data from a row is available and has been copied into the image buffer.
virtual void finish()=0
Called, when all image data has been retrieved.
virtual void setBuffer(core::Imgbuf *buffer, bool resize=false)=0
Called, when an image buffer is attached.
The platform independent interface for image buffers.
Definition imgbuf.hh:162
Typed version of container::untyped::HashSet.
Definition container.hh:514
Dw is in this namespace, or sub namespaces of this one.