aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/FontImp.hh
diff options
context:
space:
mode:
authorsimonb <simonb>2006-03-26 04:02:30 (GMT)
committersimonb <simonb>2006-03-26 04:02:30 (GMT)
commitaf74a2284551c8511b66d77112c7bf32831c1522 (patch)
tree35a8830352f5facc1fc9c58b82c0c6dce8fc921e /src/FbTk/FontImp.hh
parent872f6a0e1e4230f702ad69fa2d7e10a2fa78b7a3 (diff)
downloadfluxbox_pavel-af74a2284551c8511b66d77112c7bf32831c1522.zip
fluxbox_pavel-af74a2284551c8511b66d77112c7bf32831c1522.tar.bz2
rotated fonts, buttons, containers. Used for tabs for now
Diffstat (limited to 'src/FbTk/FontImp.hh')
-rw-r--r--src/FbTk/FontImp.hh6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/FbTk/FontImp.hh b/src/FbTk/FontImp.hh
index d659377..bcea7c6 100644
--- a/src/FbTk/FontImp.hh
+++ b/src/FbTk/FontImp.hh
@@ -25,6 +25,7 @@
25#define FBTK_FONTIMP_HH 25#define FBTK_FONTIMP_HH
26 26
27#include "Color.hh" 27#include "Color.hh"
28#include "Font.hh"
28 29
29#include <X11/Xlib.h> 30#include <X11/Xlib.h>
30 31
@@ -43,13 +44,14 @@ class FontImp {
43public: 44public:
44 virtual ~FontImp() { } 45 virtual ~FontImp() { }
45 virtual bool load(const std::string &name) = 0; 46 virtual bool load(const std::string &name) = 0;
46 virtual void drawText(const FbDrawable &w, int screen, GC gc, const char *text, size_t len, int x, int y) const = 0; 47 virtual void drawText(const FbDrawable &w, int screen, GC gc, const char *text, size_t len, int x, int y, FbTk::Orientation orient) const = 0;
47 virtual unsigned int textWidth(const char * const text, unsigned int size) const = 0; 48 virtual unsigned int textWidth(const char * const text, unsigned int size) const = 0;
49 virtual bool validOrientation(FbTk::Orientation orient) { return orient == ROT0; }
48 virtual int ascent() const = 0; 50 virtual int ascent() const = 0;
49 virtual int descent() const = 0; 51 virtual int descent() const = 0;
50 virtual unsigned int height() const = 0; 52 virtual unsigned int height() const = 0;
51 virtual bool loaded() const = 0; 53 virtual bool loaded() const = 0;
52 virtual void rotate(float angle) { } // by default, no rotate support 54 virtual void rotate(int angle) { } // by default, no rotate support
53 virtual bool utf8() const { return false; }; 55 virtual bool utf8() const { return false; };
54protected: 56protected:
55 FontImp() { } 57 FontImp() { }