Creation of a new widget to display and edit timeline: combined plot of

lines (for alpha) and histogram (for gaps).
This commit is contained in:
brunoherbelin
2020-08-23 00:40:44 +02:00
parent 0d934c3590
commit 86fd5f21f3
3 changed files with 248 additions and 200 deletions

View File

@@ -26,11 +26,10 @@ namespace ImGuiToolkit
void HelpMarker (const char* desc);
// 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 start, guint64 end, guint64 step, const float width);
bool InvisibleSliderInt(const char* label, uint *index, uint min, uint max, const ImVec2 size);
bool InvisibleCoordinatesFloat(const char* label, float *x, float *y, const ImVec2 size);
// bool InvisibleDoubleSliderFloat(const char* label, uint *index, float *y, uint min, uint max, const ImVec2 size);
bool EditPlotLines(const char* label, float *array, int values_count, float values_min, float values_max, const ImVec2 size);
bool EditPlotHistoLines(const char* label, float *histogram_array, float *lines_array, int values_count, float values_min, float values_max, const ImVec2 size);
// fonts from ressources 'fonts/'
typedef enum {