aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/XFontImp.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/XFontImp.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/XFontImp.hh')
-rw-r--r--src/FbTk/XFontImp.hh9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/FbTk/XFontImp.hh b/src/FbTk/XFontImp.hh
index 06a6279..6b5a34b 100644
--- a/src/FbTk/XFontImp.hh
+++ b/src/FbTk/XFontImp.hh
@@ -38,12 +38,13 @@ public:
38 bool load(const std::string &filename); 38 bool load(const std::string &filename);
39 unsigned int textWidth(const char * const text, unsigned int size) const; 39 unsigned int textWidth(const char * const text, unsigned int size) const;
40 unsigned int height() const; 40 unsigned int height() const;
41 float angle() const { return m_angle; } 41 int angle() const { return m_angle; }
42 int ascent() const; 42 int ascent() const;
43 int descent() const { return m_fontstruct ? m_fontstruct->descent : 0; } 43 int descent() const { return m_fontstruct ? m_fontstruct->descent : 0; }
44 void drawText(const FbDrawable &w, int screen, GC gc, const char *text, size_t len, int x, int y) const; 44 void drawText(const FbDrawable &w, int screen, GC gc, const char *text, size_t len, int x, int y, FbTk::Orientation orient) const;
45
45 bool loaded() const { return m_fontstruct != 0; } 46 bool loaded() const { return m_fontstruct != 0; }
46 void rotate(float angle); 47 void rotate(int angle);
47 /// enable/disable rotation witout alloc/dealloc rotfont structures 48 /// enable/disable rotation witout alloc/dealloc rotfont structures
48 void setRotate(bool val) { m_rotate = val; } 49 void setRotate(bool val) { m_rotate = val; }
49private: 50private:
@@ -79,7 +80,7 @@ private:
79 }; 80 };
80 XRotFontStruct *m_rotfont; ///< rotated font structure 81 XRotFontStruct *m_rotfont; ///< rotated font structure
81 XFontStruct *m_fontstruct; ///< X font structure 82 XFontStruct *m_fontstruct; ///< X font structure
82 float m_angle; ///< the rotated angle 83 int m_angle; ///< the rotated angle
83 bool m_rotate; ///< used to disable/enable rotation temprarly without reallocating m_rotfont 84 bool m_rotate; ///< used to disable/enable rotation temprarly without reallocating m_rotfont
84}; 85};
85 86