huge cleanup, support for SetSizeLimits, support for truncating strings, numerous decorator bug fixes, Layer does not draw when view color is B_TRANSPARENT_COLOR, cleaner dispatching of mouse events to the WinBorder in RootLayer, commented the char map selection in the font server, as it seems glyph lookup by unicode index works much better with the default map
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12945 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Copyright 2005, Stephan Aßmus <[email protected]>. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* a helper function to truncate strings
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#ifndef TRUNCATE_STRING_H
|
||||
#define TRUNCATE_STRING_H
|
||||
|
||||
#include <SupportDefs.h>
|
||||
|
||||
// truncated_string
|
||||
void
|
||||
truncate_string(const char* string,
|
||||
uint32 mode, float width, char* result,
|
||||
const float* escapementArray, float fontSize,
|
||||
float ellipsisWidth, int32 length, int32 numChars);
|
||||
|
||||
#endif // STRING_TRUNCATION_H
|
||||
Reference in New Issue
Block a user