aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Menu.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/Menu.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/Menu.hh')
-rw-r--r--src/FbTk/Menu.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/FbTk/Menu.hh b/src/FbTk/Menu.hh
index 09bdd8c..a7bb982 100644
--- a/src/FbTk/Menu.hh
+++ b/src/FbTk/Menu.hh
@@ -108,7 +108,7 @@ public:
108 void grabInputFocus(); 108 void grabInputFocus();
109 virtual void reconfigure(); 109 virtual void reconfigure();
110 /// set label string 110 /// set label string
111 void setLabel(const FbString &labelstr); 111 void setLabel(const FbTk::BiDiString &labelstr);
112 /// move menu to x,y 112 /// move menu to x,y
113 virtual void move(int x, int y); 113 virtual void move(int x, int y);
114 virtual void updateMenu(); 114 virtual void updateMenu();
@@ -136,7 +136,7 @@ public:
136 const FbWindow &fbwindow() const { return menu.window; } 136 const FbWindow &fbwindow() const { return menu.window; }
137 FbWindow &titleWindow() { return menu.title; } 137 FbWindow &titleWindow() { return menu.title; }
138 FbWindow &frameWindow() { return menu.frame; } 138 FbWindow &frameWindow() { return menu.frame; }
139 const std::string &label() const { return menu.label; } 139 const FbTk::BiDiString &label() const { return menu.label; }
140 int x() const { return menu.window.x(); } 140 int x() const { return menu.window.x(); }
141 int y() const { return menu.window.y(); } 141 int y() const { return menu.window.y(); }
142 unsigned int width() const { return menu.window.width(); } 142 unsigned int width() const { return menu.window.width(); }
@@ -225,7 +225,7 @@ private:
225 Pixmap frame_pixmap, title_pixmap, hilite_pixmap; 225 Pixmap frame_pixmap, title_pixmap, hilite_pixmap;
226 FbTk::FbWindow window, frame, title; 226 FbTk::FbWindow window, frame, title;
227 227
228 std::string label; 228 FbTk::BiDiString label;
229 int x_move, y_move, sublevels, persub, minsub, grab_x, grab_y; 229 int x_move, y_move, sublevels, persub, minsub, grab_x, grab_y;
230 230
231 unsigned int frame_h, item_w; 231 unsigned int frame_h, item_w;