aboutsummaryrefslogtreecommitdiff
path: root/src/SlitClient.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/SlitClient.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/SlitClient.hh')
-rw-r--r--src/SlitClient.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/SlitClient.hh b/src/SlitClient.hh
index f1ecab3..25b14a5 100644
--- a/src/SlitClient.hh
+++ b/src/SlitClient.hh
@@ -22,10 +22,10 @@
22#ifndef SLITCLIENT_HH 22#ifndef SLITCLIENT_HH
23#define SLITCLIENT_HH 23#define SLITCLIENT_HH
24 24
25#include "FbTk/FbString.hh"
25#include "FbTk/NotCopyable.hh" 26#include "FbTk/NotCopyable.hh"
26 27
27#include <X11/Xlib.h> 28#include <X11/Xlib.h>
28#include <string>
29 29
30class BScreen; 30class BScreen;
31 31
@@ -37,7 +37,7 @@ public:
37 /// For adding a placeholder 37 /// For adding a placeholder
38 explicit SlitClient(const char *name); 38 explicit SlitClient(const char *name);
39 39
40 const std::string &matchName() const { return m_match_name; } 40 const FbTk::BiDiString &matchName() const { return m_match_name; }
41 Window window() const { return m_window; } 41 Window window() const { return m_window; }
42 Window clientWindow() const { return m_client_window; } 42 Window clientWindow() const { return m_client_window; }
43 Window iconWindow() const { return m_icon_window; } 43 Window iconWindow() const { return m_icon_window; }
@@ -62,7 +62,7 @@ public:
62 void enableEvents(); 62 void enableEvents();
63 63
64private: 64private:
65 std::string m_match_name; 65 FbTk::BiDiString m_match_name;
66 Window m_window, m_client_window, m_icon_window; 66 Window m_window, m_client_window, m_icon_window;
67 int m_x, m_y; 67 int m_x, m_y;
68 unsigned int m_width, m_height; 68 unsigned int m_width, m_height;