X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Ffont.hh;h=8afd2bd10bd6aa22efe753061ec3dc66ebfa344b;hb=6f5e60f0337e60d904a8f549aeaa631afefc8033;hp=c070bbff9a4511d2589878eca0f171c3daba0d7e;hpb=85c41a1aec90b8daefc425596ea34b6f9d0e643c;p=chaz%2Fopenbox diff --git a/otk/font.hh b/otk/font.hh index c070bbff..8afd2bd1 100644 --- a/otk/font.hh +++ b/otk/font.hh @@ -4,19 +4,18 @@ extern "C" { #include - #include } #include - #include +namespace otk { + class BGCCache; class BGCCacheItem; class BColor; - -#include "screen.hh" +class ScreenInfo; class BFont { /* @@ -36,8 +35,7 @@ public: * instance members */ private: - Display *_display; - BScreen *_screen; + int _screen_num; std::string _family; bool _simplename; // true if not spec'd as a -*-* string @@ -58,7 +56,7 @@ private: public: // loads an Xft font - BFont(Display *d, BScreen *screen, const std::string &family, int size, + BFont(int screen_num, const std::string &family, int size, bool bold, bool italic, bool shadow, unsigned char offset, unsigned char tint, bool antialias = True); virtual ~BFont(void); @@ -79,4 +77,6 @@ public: const std::string &string) const; }; +} + #endif // __Font_hh