aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/TextUtils.hh
diff options
context:
space:
mode:
authorMathias Gumz <akira@fluxbox.org>2015-01-24 09:35:21 (GMT)
committerMathias Gumz <akira@fluxbox.org>2015-01-24 09:35:21 (GMT)
commite0c5436f44c262967c5934265ef68d07b4048b45 (patch)
tree84a711738f9391c0339712e1ad5989323289d4ae /src/FbTk/TextUtils.hh
parent00cca1284fb436afd43b0569d56302f7c78e3d8d (diff)
downloadfluxbox-e0c5436f44c262967c5934265ef68d07b4048b45.zip
fluxbox-e0c5436f44c262967c5934265ef68d07b4048b45.tar.bz2
Improve code documentation
'width' might imply something 'aligned horizontally'. The first parameter of maxTextLength() is given in pixels. To avoid confusion, the name of the parameter is changed. The comment before the binary search reflects better why and what we need to do.
Diffstat (limited to 'src/FbTk/TextUtils.hh')
-rw-r--r--src/FbTk/TextUtils.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbTk/TextUtils.hh b/src/FbTk/TextUtils.hh
index dcc222c..01fd8a9 100644
--- a/src/FbTk/TextUtils.hh
+++ b/src/FbTk/TextUtils.hh
@@ -29,9 +29,9 @@ namespace FbTk {
29class Font; 29class Font;
30 30
31/** 31/**
32 Aligns the text after max width and bevel 32 Aligns the text after max_pixels and bevel
33 */ 33 */
34int doAlignment(int max_width, int bevel, FbTk::Justify justify, 34int doAlignment(int max_pixels, int bevel, FbTk::Justify justify,
35 const FbTk::Font &font, const char * const text, 35 const FbTk::Font &font, const char * const text,
36 unsigned int textlen, unsigned int &newlen); 36 unsigned int textlen, unsigned int &newlen);
37 37