aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/XFontImp.hh
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2010-09-08 18:17:21 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2010-09-08 18:17:21 (GMT)
commit690d926ac444243611cd875fb84fabb4e6db2cf2 (patch)
treec8ef84056b295071f9a9207ffea5393c6cf4ad4d /src/FbTk/XFontImp.hh
parent1e8fe2bc14856fa16508686a28a85e72cb0e422c (diff)
downloadfluxbox-690d926ac444243611cd875fb84fabb4e6db2cf2.zip
fluxbox-690d926ac444243611cd875fb84fabb4e6db2cf2.tar.bz2
introduced FbTk::BidiString
a 'BidiString' holds both the logical content and the visual reordered version of the content of a string. this helps to reduce the number of calls to reorder the string before drawing it (as introduced in the patch from Ken Bloom) and to be more consistent in menus and textboxes (drawing cursors and underlining text).
Diffstat (limited to 'src/FbTk/XFontImp.hh')
-rw-r--r--src/FbTk/XFontImp.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbTk/XFontImp.hh b/src/FbTk/XFontImp.hh
index 3ba027c..ccebbb7 100644
--- a/src/FbTk/XFontImp.hh
+++ b/src/FbTk/XFontImp.hh
@@ -32,11 +32,11 @@ public:
32 explicit XFontImp(const char *filename = 0); 32 explicit XFontImp(const char *filename = 0);
33 ~XFontImp(); 33 ~XFontImp();
34 bool load(const std::string &filename); 34 bool load(const std::string &filename);
35 unsigned int textWidth(const FbString &text, unsigned int size) const; 35 unsigned int textWidth(const char* text, unsigned int len) const;
36 unsigned int height() const; 36 unsigned int height() const;
37 int ascent() const; 37 int ascent() const;
38 int descent() const { return m_fontstruct ? m_fontstruct->descent : 0; } 38 int descent() const { return m_fontstruct ? m_fontstruct->descent : 0; }
39 void drawText(const FbDrawable &w, int screen, GC gc, const FbString &text, size_t len, int x, int y, FbTk::Orientation orient); 39 void drawText(const FbDrawable &w, int screen, GC gc, const char* text, size_t len, int x, int y, FbTk::Orientation orient);
40 40
41 bool validOrientation(FbTk::Orientation orient); 41 bool validOrientation(FbTk::Orientation orient);
42 42