diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-01-17 06:40:00 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-01-17 06:40:00 +0000 |
| commit | 6188650ce975e287c7c8644927cd5d01e7cc7baa (patch) | |
| tree | 6396de81dbb9ef56f39c24a062b93e4c896a5773 /otk_c/font.h | |
| parent | 58ff3f35c2b712ec92b093ffd8b96331615f546a (diff) | |
rm my lucid experiment
Diffstat (limited to 'otk_c/font.h')
| -rw-r--r-- | otk_c/font.h | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/otk_c/font.h b/otk_c/font.h deleted file mode 100644 index a1b24490..00000000 --- a/otk_c/font.h +++ /dev/null @@ -1,64 +0,0 @@ -// -*- mode: C; indent-tabs-mode: nil; c-basic-offset: 2; -*- -#ifndef __font_h -#define __font_h - -#include <X11/Xlib.h> -#define _XFT_NO_COMPAT_ // no Xft 1 API -#include <X11/Xft/Xft.h> -#include <Python.h> - -extern PyTypeObject OtkFont_Type; - -struct OtkColor; -struct ScreenInfo; - -#define OTKFONTHEIGHT(font) (font->xftfont->height + \ - (font->shadow ? font->offset : 0)) -#define OTKFONTMAXCHARWIDTH(font) (font->xftfont->max_advance_width) - -typedef struct OtkFont { - PyObject_HEAD - int screen; - Bool shadow; - unsigned char offset; - unsigned char tint; - XftFont *xftfont; -} OtkFont; - -void OtkFont_Initialize(); - -PyObject *OtkFont_New(int screen, const char *fontstring, Bool shadow, - unsigned char offset, unsigned char tint); - -int OtkFont_MeasureString(OtkFont *self, const char *string);//, Bool utf8); - -//! 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 OtkFont_DrawString(OtkFont *self, XftDraw *d, int x, int y, - struct OtkColor *color, const char *string);//, Bool utf8); - -/* - bool createXftFont(void); - -public: - // loads an Xft font - BFont(int screen_num, const std::string &fontstring, bool shadow, - unsigned char offset, unsigned char tint); - virtual ~BFont(); - - inline const std::string &fontstring() const { return _fontstring; } - - unsigned int height() const; - unsigned int maxCharWidth() const; - - unsigned int measureString(const std::string &string, - bool utf8 = false) const; - -}; - -} -*/ -#endif // __font_h |
