aboutsummaryrefslogtreecommitdiff
path: root/src/Font.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-11-25 14:07:21 (GMT)
committerfluxgen <fluxgen>2002-11-25 14:07:21 (GMT)
commit99c92a637392a988382559d0b162aed68ab83ba8 (patch)
treed353aa10684ed0814327a64e9aef041510e08a41 /src/Font.hh
parent1fc16d3d3d8a62a9697f4a42044b695707fe5d50 (diff)
downloadfluxbox_paul-99c92a637392a988382559d0b162aed68ab83ba8.zip
fluxbox_paul-99c92a637392a988382559d0b162aed68ab83ba8.tar.bz2
fixed rotated text on vertical tab in XFontImp and a rotate function in FontImp interface
Diffstat (limited to 'src/Font.hh')
-rw-r--r--src/Font.hh10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/Font.hh b/src/Font.hh
index 93cbd87..a1fb62d 100644
--- a/src/Font.hh
+++ b/src/Font.hh
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22//$Id: Font.hh,v 1.8 2002/10/19 14:00:37 fluxgen Exp $ 22//$Id: Font.hh,v 1.9 2002/11/25 14:07:21 fluxgen Exp $
23 23
24#ifndef FBTK_FONT_HH 24#ifndef FBTK_FONT_HH
25#define FBTK_FONT_HH 25#define FBTK_FONT_HH
@@ -62,8 +62,13 @@ public:
62 unsigned int height() const; 62 unsigned int height() const;
63 int ascent() const; 63 int ascent() const;
64 int descent() const; 64 int descent() const;
65 /**
66 Rotate font in any angle (currently only 90 degrees supported and just XFont implementation)
67 */
68 void rotate(float angle);
65 void drawText(Drawable w, int screen, GC gc, const char *text, size_t len, int x, int y) const; 69 void drawText(Drawable w, int screen, GC gc, const char *text, size_t len, int x, int y) const;
66 bool isAntialias() const { return m_antialias; } 70 bool isAntialias() const { return m_antialias; }
71 bool isRotated() const { return m_rotated; }
67private: 72private:
68 73
69 std::auto_ptr<FontImp> m_fontimp; 74 std::auto_ptr<FontImp> m_fontimp;
@@ -71,6 +76,7 @@ private:
71 static bool m_multibyte; 76 static bool m_multibyte;
72 static bool m_utf8mode; 77 static bool m_utf8mode;
73 bool m_antialias; 78 bool m_antialias;
79 bool m_rotated; ///< wheter we're rotated or not
74}; 80};
75 81
76}; //end namespace FbTk 82}; //end namespace FbTk