]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/scout/lib/src/factory.cc
Some minor fixes.
[l4.git] / l4 / pkg / scout / lib / src / factory.cc
1 #include "factory.h"
2
3 #include <l4/mag-gfx/mem_factory>
4 #include <l4/mag-gfx/gfx_colors>
5
6 #include <l4/scout-gfx/fade_icon>
7 #include <l4/scout-gfx/pt_factory>
8
9 #include "panel.h"
10
11
12 using Mag_gfx::Pixel_info;
13
14 template< typename PT >
15 class Csf : public ::Factory, public Scout_gfx::Pt::Factory<PT>
16 {
17 public:
18
19   Scout_gfx::Parent_widget *create_panel(Scout_browser *b)
20   { return new Panel<PT>(this, b); }
21 };
22
23
24 static Csf<Mag_gfx::Rgb15>  _csf_rgb15;
25 static Csf<Mag_gfx::Bgr15>  _csf_bgr15;
26 static Csf<Mag_gfx::Rgb16>  _csf_rgb16;
27 static Csf<Mag_gfx::Bgr16>  _csf_bgr16;
28 static Csf<Mag_gfx::Rgb24>  _csf_rgb24;
29 static Csf<Mag_gfx::Rgb32>  _csf_rgb32;
30
31