diff options
author | fluxgen <fluxgen> | 2002-11-26 15:57:11 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2002-11-26 15:57:11 (GMT) |
commit | b5acf3a78f51e9fb1503f82e2235d98694328a67 (patch) | |
tree | a003883b85909bc1e1d20d30e1e2d98f8df6e470 /src/FontImp.hh | |
parent | fe2e6b32e7fd285a32d5210220e18da9abb7732f (diff) | |
download | fluxbox_pavel-b5acf3a78f51e9fb1503f82e2235d98694328a67.zip fluxbox_pavel-b5acf3a78f51e9fb1503f82e2235d98694328a67.tar.bz2 |
moved to FbTk
Diffstat (limited to 'src/FontImp.hh')
-rw-r--r-- | src/FontImp.hh | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/src/FontImp.hh b/src/FontImp.hh deleted file mode 100644 index 95f980a..0000000 --- a/src/FontImp.hh +++ /dev/null | |||
@@ -1,57 +0,0 @@ | |||
1 | // FontImp.cc for FbTk | ||
2 | // Copyright (c) 2002 Henrik Kinnunen (fluxgen@linuxmail.org) | ||
3 | // | ||
4 | // Permission is hereby granted, free of charge, to any person obtaining a | ||
5 | // copy of this software and associated documentation files (the "Software"), | ||
6 | // to deal in the Software without restriction, including without limitation | ||
7 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
8 | // and/or sell copies of the Software, and to permit persons to whom the | ||
9 | // Software is furnished to do so, subject to the following conditions: | ||
10 | // | ||
11 | // The above copyright notice and this permission notice shall be included in | ||
12 | // all copies or substantial portions of the Software. | ||
13 | // | ||
14 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
15 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
16 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
17 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
18 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
20 | // DEALINGS IN THE SOFTWARE. | ||
21 | |||
22 | // $Id: FontImp.hh,v 1.4 2002/11/25 14:07:20 fluxgen Exp $ | ||
23 | |||
24 | #ifndef FBTK_FONTIMP_HH | ||
25 | #define FBTK_FONTIMP_HH | ||
26 | |||
27 | #include "Color.hh" | ||
28 | |||
29 | #include <X11/Xlib.h> | ||
30 | |||
31 | #include <string> | ||
32 | |||
33 | namespace FbTk { | ||
34 | |||
35 | /** | ||
36 | FontImp, second part of the bridge pattern for fonts | ||
37 | pure interface class. | ||
38 | @see Font | ||
39 | */ | ||
40 | class FontImp { | ||
41 | public: | ||
42 | virtual ~FontImp() { } | ||
43 | virtual bool load(const std::string &name) = 0; | ||
44 | virtual void drawText(Drawable w, int screen, GC gc, const char *text, size_t len, int x, int y) const = 0; | ||
45 | virtual unsigned int textWidth(const char * const text, unsigned int size) const = 0; | ||
46 | virtual int ascent() const = 0; | ||
47 | virtual int descent() const = 0; | ||
48 | virtual unsigned int height() const = 0; | ||
49 | virtual bool loaded() const = 0; | ||
50 | virtual void rotate(float angle) { } // by default, no rotate support | ||
51 | protected: | ||
52 | FontImp() { } | ||
53 | }; | ||
54 | |||
55 | }; // end namespace FbTk | ||
56 | |||
57 | #endif // FBTK_FONTIMP_HH | ||