mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:07:44 +00:00
Painter: Add text elision support (only right-hand side supported.)
Some window titles didn't fit on the taskbar buttons, so I needed a way to collapse the remaining part of the text into "..."
This commit is contained in:
parent
ce7341be87
commit
4533539e8a
5 changed files with 56 additions and 15 deletions
|
@ -61,6 +61,7 @@ public:
|
|||
byte max_glyph_width() const { return m_max_glyph_width; }
|
||||
byte glyph_spacing() const { return m_fixed_width ? 0 : 1; }
|
||||
int width(const String& string) const;
|
||||
int width(const char*, int) const;
|
||||
|
||||
String name() const { return m_name; }
|
||||
void set_name(const String& name) { m_name = name; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue