diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2010-09-08 18:17:21 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2010-09-08 18:17:21 (GMT) |
commit | 690d926ac444243611cd875fb84fabb4e6db2cf2 (patch) | |
tree | c8ef84056b295071f9a9207ffea5393c6cf4ad4d /src/OSDWindow.hh | |
parent | 1e8fe2bc14856fa16508686a28a85e72cb0e422c (diff) | |
download | fluxbox_paul-690d926ac444243611cd875fb84fabb4e6db2cf2.zip fluxbox_paul-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/OSDWindow.hh')
-rw-r--r-- | src/OSDWindow.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/OSDWindow.hh b/src/OSDWindow.hh index 4a070a2..14e01d2 100644 --- a/src/OSDWindow.hh +++ b/src/OSDWindow.hh | |||
@@ -23,13 +23,13 @@ | |||
23 | #define OSDWINDOW_HH | 23 | #define OSDWINDOW_HH |
24 | 24 | ||
25 | #include "FbTk/FbWindow.hh" | 25 | #include "FbTk/FbWindow.hh" |
26 | #include <string> | ||
27 | 26 | ||
28 | class BScreen; | 27 | class BScreen; |
29 | class FbWinFrameTheme; | 28 | class FbWinFrameTheme; |
30 | 29 | ||
31 | namespace FbTk { | 30 | namespace FbTk { |
32 | template <class T> class ThemeProxy; | 31 | template <class T> class ThemeProxy; |
32 | class BiDiString; | ||
33 | } | 33 | } |
34 | 34 | ||
35 | class OSDWindow: public FbTk::FbWindow { | 35 | class OSDWindow: public FbTk::FbWindow { |
@@ -41,8 +41,8 @@ public: | |||
41 | m_pixmap(None), m_visible(false) { } | 41 | m_pixmap(None), m_visible(false) { } |
42 | 42 | ||
43 | void reconfigTheme(); | 43 | void reconfigTheme(); |
44 | void resize(const std::string &text); | 44 | void resize(const FbTk::BiDiString &text); |
45 | void showText(const std::string &text); | 45 | void showText(const FbTk::BiDiString &text); |
46 | void hide(); | 46 | void hide(); |
47 | 47 | ||
48 | bool isVisible() const { return m_visible; } | 48 | bool isVisible() const { return m_visible; } |