summaryrefslogtreecommitdiff
path: root/otk/font.hh
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-11-03 10:07:16 +0000
committerDana Jansens <danakj@orodu.net>2002-11-03 10:07:16 +0000
commitfa8cefef63feb1d559c40db3cf9407e5bd1ac4df (patch)
treec5f4e1d4229fe39d1c13526a32a52d555ccf3494 /otk/font.hh
parentfcfb532d30f4f0cee5192376145867ec1eada8ad (diff)
add an OBDisplay class and the old ScreenInfo class to the toolkit.
wrap the toolkit in the 'otk' namespace it compiles. broke the timer cache tho.
Diffstat (limited to 'otk/font.hh')
-rw-r--r--otk/font.hh14
1 files changed, 7 insertions, 7 deletions
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 <X11/Xlib.h>
-
#include <X11/Xft/Xft.h>
}
#include <assert.h>
-
#include <string>
+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