diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2019-09-24 12:52:14 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2019-09-25 14:49:06 +0300 |
commit | 40bc9d1095228ab1377625be3479491263d696d7 (patch) | |
tree | 68e02263767217c5302788a7c974c3786fb9e44b /kms++/inc | |
parent | f887436cebefd30f2bfadcfb7210703baa8ca93c (diff) |
videomode to_string improvements
Add to_string_short() and to_string_long() to videomode (using the fmt
library) for easy printing of videomodes.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'kms++/inc')
-rw-r--r-- | kms++/inc/kms++/videomode.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kms++/inc/kms++/videomode.h b/kms++/inc/kms++/videomode.h index d7f5258..74aa8f1 100644 --- a/kms++/inc/kms++/videomode.h +++ b/kms++/inc/kms++/videomode.h @@ -49,7 +49,9 @@ struct Videomode void set_hsync(SyncPolarity pol); void set_vsync(SyncPolarity pol); - std::string to_string() const; + std::string to_string_short() const; + std::string to_string_long() const; + std::string to_string_long_padded() const; }; struct Videomode videomode_from_timings(uint32_t clock_khz, |