aboutsummaryrefslogtreecommitdiff
path: root/src/OSDWindow.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/OSDWindow.hh
parent1e8fe2bc14856fa16508686a28a85e72cb0e422c (diff)
downloadfluxbox_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.hh6
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
28class BScreen; 27class BScreen;
29class FbWinFrameTheme; 28class FbWinFrameTheme;
30 29
31namespace FbTk { 30namespace FbTk {
32template <class T> class ThemeProxy; 31template <class T> class ThemeProxy;
32class BiDiString;
33} 33}
34 34
35class OSDWindow: public FbTk::FbWindow { 35class 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; }