X-Git-Url: https://harrygodden.com/git/?p=vg.git;a=blobdiff_plain;f=vg_imgui.h;fp=vg_imgui.h;h=7e882aab38317cab119f5944f7da4ab033b6b5f7;hp=cbb0862cc91907a07a6125b1162b49a6bc22299a;hb=7e5fa8d856fd520ca1ebfff341845ccd4cf3154c;hpb=763c7f692f67b491935b900560c2a0ef614afa42 diff --git a/vg_imgui.h b/vg_imgui.h index cbb0862..7e882aa 100644 --- a/vg_imgui.h +++ b/vg_imgui.h @@ -280,8 +280,11 @@ void ui_postrender(void); int ui_checkbox( ui_rect inout_panel, const char *str_label, i32 *data ); void ui_enum( ui_rect inout_panel, const char *str_label, struct ui_enum_opt *options, u32 len, i32 *value ); +enum ui_button_state ui_slider_base( ui_rect box, f32 min, f32 max, f32 *value, + f32 *out_t ); bool ui_slider( ui_rect inout_panel, const char *str_label, - f32 min, f32 max, f32 *value, const char *format ); + f32 min, f32 max, f32 *value ); +void ui_slider_text( ui_rect box, const char *format, f32 value ); void ui_colourpicker( ui_rect inout_panel, const char *str_label, v4f value ); int ui_textbox( ui_rect inout_panel, const char *label, char *buf, u32 len, u32 lines, u32 flags,