X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Ffont.hh;h=618d4f6ebb99cd38a5c768c40b7f6b75c5b061ff;hb=8269fc2b3965d12ba308caa554bfa7ee037fba13;hp=dcff65260ea8028944693039caf23139c14bb7f6;hpb=8b73f6f02517e717842d122d82e1eb08cda95e19;p=chaz%2Fopenbox diff --git a/otk/font.hh b/otk/font.hh index dcff6526..618d4f6e 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 @@ -10,11 +11,12 @@ extern "C" { #include } -#include +#include namespace otk { class Color; +class Surface; class Font { /* @@ -55,18 +57,14 @@ public: inline const std::string &fontstring() const { return _fontstring; } - unsigned int height() const; - unsigned int maxCharWidth() const; + int height() const; + int maxCharWidth() const; - unsigned int measureString(const ustring &string) const; + 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; }; }