Searched hist:f466d35d9c4a0dbbd71ca82291270482e6ea2cb3 (Results 1 – 2 of 2) sorted by relevance
/haiku/headers/os/interface/ |
H A D | StatusBar.h | f466d35d9c4a0dbbd71ca82291270482e6ea2cb3 Tue Apr 29 12:42:10 UTC 2008 Stephan Aßmus <superstippi@gmx.de> Rewrote parts related to drawing the labels. The order of drawing happens as this (seems to be what R5 BStatusBar does): * combine the "trailing text" with the "trailing label" and truncate the resulting string on the left side according to the width of the entire control * combine the "label" with the "text" and truncate that on the right side according to the space left by the right hand text.
-> No more overlaps (theoretically, in practise there are still overlaps because our BFont::TruncateString() does not respect the width in some situations.)
* Changed _SetTextData() accordingly, it is not used anymore for the label and trailing label, and could therefor be simplified a little. * fixed _BarFrame() to not return fractional coords, which could sometimes leave a dirty line of pixels.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25244 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
/haiku/src/kits/interface/ |
H A D | StatusBar.cpp | f466d35d9c4a0dbbd71ca82291270482e6ea2cb3 Tue Apr 29 12:42:10 UTC 2008 Stephan Aßmus <superstippi@gmx.de> Rewrote parts related to drawing the labels. The order of drawing happens as this (seems to be what R5 BStatusBar does): * combine the "trailing text" with the "trailing label" and truncate the resulting string on the left side according to the width of the entire control * combine the "label" with the "text" and truncate that on the right side according to the space left by the right hand text.
-> No more overlaps (theoretically, in practise there are still overlaps because our BFont::TruncateString() does not respect the width in some situations.)
* Changed _SetTextData() accordingly, it is not used anymore for the label and trailing label, and could therefor be simplified a little. * fixed _BarFrame() to not return fractional coords, which could sometimes leave a dirty line of pixels.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25244 a95241bf-73f2-0310-859d-f6bbb57e9c96
|