00001
00002 #ifndef __rendercontrol_hh
00003 #define __rendercontrol_hh
00004
00005 extern "C" {
00006 #include <X11/Xlib.h>
00007 #include <X11/Xutil.h>
00008 }
00009
00010 namespace otk {
00011
00012 class ScreenInfo;
00013 class Surface;
00014 class RenderTexture;
00015 class Font;
00016 class RenderColor;
00017 class ustring;
00018
00019 class RenderControl {
00020 protected:
00021 int _screen;
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064 RenderControl(int screen);
00065
00066 virtual void drawSolidBackground(Surface& sf,
00067 const RenderTexture& texture) const;
00068
00069 public:
00070 virtual ~RenderControl();
00071
00072 static RenderControl *getRenderControl(int screen);
00073
00074 virtual void drawRoot(const RenderColor &color) const;
00075
00076
00077 virtual void drawString(Surface &sf, const Font &font, int x, int y,
00078 const RenderColor &color,
00079 const ustring &string) const;
00080
00081
00082 virtual void drawBackground(Surface &sf,
00083 const RenderTexture &texture) const = 0;
00084 };
00085
00086 }
00087
00088 #endif // __rendercontrol_hh