aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/XFontImp.cc
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.cc
parent872f6a0e1e4230f702ad69fa2d7e10a2fa78b7a3 (diff)
downloadfluxbox_paul-af74a2284551c8511b66d77112c7bf32831c1522.zip
fluxbox_paul-af74a2284551c8511b66d77112c7bf32831c1522.tar.bz2
rotated fonts, buttons, containers. Used for tabs for now
Diffstat (limited to 'src/FbTk/XFontImp.cc')
-rw-r--r--src/FbTk/XFontImp.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/FbTk/XFontImp.cc b/src/FbTk/XFontImp.cc
index 5b61555..eeb0830 100644
--- a/src/FbTk/XFontImp.cc
+++ b/src/FbTk/XFontImp.cc
@@ -79,9 +79,10 @@ bool XFontImp::load(const std::string &fontname) {
79 return true; 79 return true;
80} 80}
81 81
82void XFontImp::drawText(const FbDrawable &w, int screen, GC gc, const char *text, size_t len, int x, int y) const { 82void XFontImp::drawText(const FbDrawable &w, int screen, GC gc, const char *text, size_t len, int x, int y, FbTk::Orientation orient) const {
83 if (m_fontstruct == 0) 83 if (m_fontstruct == 0)
84 return; 84 return;
85
85 // use roated font functions? 86 // use roated font functions?
86 if (m_rotfont != 0 && m_rotate) { 87 if (m_rotfont != 0 && m_rotate) {
87 drawRotText(w.drawable(), screen, gc, text, len, x, y); 88 drawRotText(w.drawable(), screen, gc, text, len, x, y);
@@ -110,7 +111,7 @@ unsigned int XFontImp::height() const {
110 return m_fontstruct->ascent + m_fontstruct->descent; 111 return m_fontstruct->ascent + m_fontstruct->descent;
111} 112}
112 113
113void XFontImp::rotate(float angle) { 114void XFontImp::rotate(int angle) {
114 //we must have a font loaded before we rotate 115 //we must have a font loaded before we rotate
115 if (m_fontstruct == 0 || m_fontstruct->per_char == 0) 116 if (m_fontstruct == 0 || m_fontstruct->per_char == 0)
116 return; 117 return;