diff options
author | simonb <simonb> | 2006-03-26 04:02:30 (GMT) |
---|---|---|
committer | simonb <simonb> | 2006-03-26 04:02:30 (GMT) |
commit | af74a2284551c8511b66d77112c7bf32831c1522 (patch) | |
tree | 35a8830352f5facc1fc9c58b82c0c6dce8fc921e /src/FbTk/XFontImp.hh | |
parent | 872f6a0e1e4230f702ad69fa2d7e10a2fa78b7a3 (diff) | |
download | fluxbox_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.hh | 9 |
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; } |
49 | private: | 50 | private: |
@@ -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 | ||