[FL-1235] Cut long names (#494)

* fix typo, elements_string_fit_width added
* add string_fit_witdt to fileselect module

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
its your bedtime
2021-05-26 19:01:59 +03:00
committed by GitHub
parent 502f449904
commit 1cfb16d9a7
6 changed files with 41 additions and 28 deletions

View File

@@ -1,6 +1,7 @@
#pragma once
#include <stdint.h>
#include <m-string.h>
#include "canvas.h"
#ifdef __cplusplus
@@ -105,6 +106,13 @@ void elements_slightly_rounded_frame(
uint8_t width,
uint8_t height);
/*
* Trim string buffer to fit width in pixels
* @param string - string to trim
* @param width - max width
*/
void elements_string_fit_width(Canvas* canvas, string_t string, uint8_t width);
#ifdef __cplusplus
}
#endif