summaryrefslogtreecommitdiff
path: root/otk/font.hh
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-18 07:23:28 +0000
committerDana Jansens <danakj@orodu.net>2003-01-18 07:23:28 +0000
commit9b6e5f9cf49df78be25720f9c4b33a733b856c9b (patch)
tree0da395f661151ce079d09483594f221c89e5d196 /otk/font.hh
parenta4dd208a7955e25bca710d4bcf355de7e608b9e1 (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/font.hh')
-rw-r--r--otk/font.hh12
1 files changed, 5 insertions, 7 deletions
diff --git a/otk/font.hh b/otk/font.hh
index dcff6526..afc36dea 100644
--- a/otk/font.hh
+++ b/otk/font.hh
@@ -3,6 +3,7 @@
#define __font_hh
#include "ustring.hh"
+#include "truerendercontrol.hh"
extern "C" {
#include <X11/Xlib.h>
@@ -15,6 +16,7 @@ extern "C" {
namespace otk {
class Color;
+class Surface;
class Font {
/*
@@ -60,13 +62,9 @@ public:
unsigned int measureString(const ustring &string) const;
- //! Draws a string into an XftDraw object
- /*!
- Be Warned: If you use an XftDraw object and a color, or a font from
- different screens, you WILL have unpredictable results! :)
- */
- void drawString(XftDraw *d, int x, int y, const Color &color,
- const ustring &string) const;
+ // The RenderControl classes use the internal data to render the fonts, but
+ // noone else needs it, so its private.
+ friend class RenderControl;
};
}