Improved Media player timeline: adding time indication and enabling to

scroll in a zoomed-in timeline. Display current time in overlay on
frame.
This commit is contained in:
brunoherbelin
2020-08-04 00:01:30 +02:00
parent 763d8ac423
commit 6f844f722d
8 changed files with 314 additions and 53 deletions

View File

@@ -27,7 +27,7 @@ namespace ImGuiToolkit
// utility sliders
void Bar (float value, float in, float out, float min, float max, const char* title, bool expand);
bool TimelineSlider (const char* label, guint64 *time, guint64 duration, guint64 step);
bool TimelineSlider (const char* label, guint64 *time, guint64 duration, guint64 step, float scale = 1.f);
bool TimelineSliderEdit (const char* label, guint64 *time, guint64 duration, guint64 step,
std::list<std::pair<guint64, guint64> >& segments);