mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
No-op: comments.
git-svn-id: svn://localhost/ardour2/branches/3.0@5245 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
92f3bc5c44
commit
7b010a94ae
3 changed files with 65 additions and 17 deletions
|
|
@ -113,6 +113,13 @@ fit_to_pixels (const ustring& str, int pixel_width, Pango::FontDescription& font
|
|||
return txt;
|
||||
}
|
||||
|
||||
/** Try to fit a string into a given horizontal space by ellipsizing it.
|
||||
* @param cr Cairo context in which the text will be plotted.
|
||||
* @param name Text.
|
||||
* @param avail Available horizontal space.
|
||||
* @return (Text, possibly ellipsized) and (horizontal size of text)
|
||||
*/
|
||||
|
||||
std::pair<std::string, double>
|
||||
fit_to_pixels (cairo_t* cr, std::string name, double avail)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue