diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-01-18 07:23:28 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-01-18 07:23:28 +0000 |
| commit | 9b6e5f9cf49df78be25720f9c4b33a733b856c9b (patch) | |
| tree | 0da395f661151ce079d09483594f221c89e5d196 /otk/rendercontrol.hh | |
| parent | a4dd208a7955e25bca710d4bcf355de7e608b9e1 (diff) | |
provide RenderControls to all otk from the display class. initialize them all there. try use bitshifts instead of color tables in the TrueRenderControl class for finding correct rgbs. Move the image/pixmap/xftdraw into the surface class, and it maintains them, recreating them when it resizes.
Diffstat (limited to 'otk/rendercontrol.hh')
| -rw-r--r-- | otk/rendercontrol.hh | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/otk/rendercontrol.hh b/otk/rendercontrol.hh index 37119846..a512060f 100644 --- a/otk/rendercontrol.hh +++ b/otk/rendercontrol.hh @@ -12,10 +12,13 @@ namespace otk { class ScreenInfo; class Surface; class RenderTexture; +class Font; +class Color; +class ustring; class RenderControl { protected: - const ScreenInfo *_screen; + int _screen; /* // color tables, meaning, 256 (possibly) different shades of each color, @@ -58,13 +61,18 @@ protected: int _ncolors; */ - RenderControl(const ScreenInfo *screen); + RenderControl(int screen); public: virtual ~RenderControl(); static RenderControl *getRenderControl(int screen); + //! Draws a string onto a Surface + virtual void drawString(Surface *sf, const Font &font, int x, int y, + const Color &color, const ustring &string) const; + + //! Draws a background onto a Surface, as specified by a RenderTexture virtual void drawBackground(Surface *sf, const RenderTexture &texture) const = 0; }; |
