haiku/headers/private/interface
Michael Lotz 5bc9fb9d24 * Replace the truncate_string() helper function with a new, simplified version.
* Remove no longer necessary support functions.
* The new version uses a single BString as input/output parameter and only
  modifies that one by removing non-fitting chars and inserting the ellipsis
  where appropriate, so avoids copying around bytes/chars/strings in a few
  places. It uses the new Chars functions of BString so also no need for manual
  multibyte handling.
* Adjusted the BFont and ServerFont usage of truncate_string() which are both
  simplified by using the single BString. It avoids a lot of temprary
  allocations and string copying. The char * version of BFont
  GetTruncatedStrings() now uses the BString version and not the other way
  around anymore which requires us to allocate temporary BString objects, it's
  not worse than before though.
* This fixes a bunch of problems with the previous functions like always
  prepending the ellipsis for B_TRUNCATE_BEGINNING, crashing on short enough
  widths, violating the width in the B_TRUNCATE_END case when the width was
  short enough, non-optimal truncation in a few cases and sometimes truncation
  where none would've been needed. Also fixes #4128 which was a symptom of the
  broken B_TRUNCATE_BEGINNING.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35381 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-02-01 18:43:03 +00:00
..
BitmapPrivate.h * With Rudolf's information about relocating overlays, I changed the way memory 2006-04-22 16:41:12 +00:00
BMCPrivate.h BMenuField's private menu bar did not take into account the width of the popup indicator when computing its minimum size. Fixes ticket #3635. 2009-08-06 23:24:48 +00:00
clipping.h replaced usage of floor() and ceil() to convert from 2006-03-19 22:26:17 +00:00
ColorConversion.h Use pthread_once() to guard the initialization of sPaletteConverter. This 2009-11-30 16:26:10 +00:00
ColorTools.h * Rewrote BeBuild.h which had "a few" consequences (got rid of all those class 2007-10-15 20:13:55 +00:00
ColumnListView.h Added ColumnAt(BPoint) version. 2009-10-15 04:31:42 +00:00
ColumnTypes.h takes into account the column title width 2008-11-02 12:33:32 +00:00
DefaultColors.h * There is now a server_read_only_memory structure that is placed in a (surprise!) 2006-04-25 20:12:06 +00:00
DirectWindowPrivate.h now uses DIRECT_BUFFER_INFO_AREA_SIZE as the direct_buffer_info area size 2008-11-05 23:40:29 +00:00
DraggerPrivate.h * Implemented BDragger::{Show|Hide}AllDraggers() and its backend in the app_server. 2007-02-21 07:57:21 +00:00
FontPrivate.h More font work: 2005-11-07 11:02:39 +00:00
input_globals.h * Rewrote BeBuild.h which had "a few" consequences (got rid of all those class 2007-10-15 20:13:55 +00:00
InterfacePrivate.h Moved functions declarations to InterfacePrivate.h 2009-07-30 16:46:19 +00:00
MenuPrivate.h Some cleanups: made the bitmaps static, moved variables around. No functional change. 2009-08-01 08:14:18 +00:00
MenuWindow.h Made MenuWindow::GetSteps() const. 2009-09-04 18:16:59 +00:00
Palette.h Fix extra token at end of #endif 2007-11-21 22:57:33 +00:00
PictureDataWriter.h Added an (empty) destructor. Use a const BRegion (since we can now), honour 2009-07-28 16:56:29 +00:00
PicturePlayer.h * Rewrote BeBuild.h which had "a few" consequences (got rid of all those class 2007-10-15 20:13:55 +00:00
PictureProtocol.h Added some debug output to PicturePlayer. Since checking the table size for every op is very slow, now we do that only at the beginning, and use a custom op table if needed. The best case (which is the one used when drawing a picture with BView::DrawPicture()) is very fast since it only requires one check. 2007-08-16 09:14:03 +00:00
PrivateScreen.h * Moved PrivateScreen.h header to headers/private/interface. 2009-08-21 09:37:54 +00:00
RegionSupport.h * fix the build, forgot to commit this... 2007-07-19 17:22:53 +00:00
ShapePrivate.h * fix weird Shape op/point allocation 2007-08-17 11:17:29 +00:00
TextViewSupportBuffer.h Added a debugger call in case the reallocation fails. 2004-11-04 08:53:46 +00:00
ToolTip.h * Made the BToolTip interface a bit more convenient to use when subclassing it. 2009-08-11 12:32:12 +00:00
ToolTipManager.h Made the BToolTipManager lock non-static. Create the singleton via 2009-11-30 11:06:51 +00:00
ToolTipWindow.h * Added a basic tool tip API, and implementation. 2009-08-03 14:47:41 +00:00
truncate_string.h * Replace the truncate_string() helper function with a new, simplified version. 2010-02-01 18:43:03 +00:00
utf8_functions.h Save one check in certain situations. 2008-10-14 13:16:44 +00:00
ViewPrivate.h Begun to use structs for the BView<->app_server communication. This makes 2009-04-05 14:59:43 +00:00
WidthBuffer.h * The WidthBuffer lock was unnecessarily static. Made it an object member. 2009-11-30 11:25:13 +00:00
WindowInfo.h * extend Haiku specific client window info to include the tab height and border size 2009-01-27 21:03:32 +00:00
WindowPrivate.h * Added a new flag kAcceptKeyboardFocusFlag that allows B_AVOID_FOCUS windows 2009-10-07 16:26:32 +00:00