X-Git-Url: https://harrygodden.com/git/?p=vg.git;a=blobdiff_plain;f=vg_imgui.h;fp=vg_imgui.h;h=f2d4f05cdaecf84679823c21784bed8667c5dc43;hp=4e725a824c37c62cc9e6448f1c0e349f4796534d;hb=2c7ca232199368af22640bf3e59f07575009d8cb;hpb=0dc955d83db73c25f74ca1f6917632415d5c36ee diff --git a/vg_imgui.h b/vg_imgui.h index 4e725a8..f2d4f05 100644 --- a/vg_imgui.h +++ b/vg_imgui.h @@ -192,6 +192,7 @@ struct vg_imgui ui_px mouse[2], mouse_delta[2], mouse_click[2]; u32 mouse_state[2]; u32 ignore_input_frames; + bool mouse_pos_overriden; int wants_mouse; ui_rect click_fader, click_fader_end; @@ -248,6 +249,7 @@ int ui_inside_rect( ui_rect rect, ui_px co[2] ); int ui_click_down( u32 mask ); int ui_clicking( u32 mask ); int ui_click_up( u32 mask ); +void ui_set_mouse_pos( ui_px x, ui_px y ); void ui_prerender(void); u32 ui_colour( enum ui_scheme_colour id ); @@ -285,7 +287,7 @@ 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 ); -void ui_slider( ui_rect inout_panel, const char *str_label, +bool ui_slider( ui_rect inout_panel, const char *str_label, f32 min, f32 max, f32 *value, const char *format ); void ui_colourpicker( ui_rect inout_panel, const char *str_label, v4f value ); int ui_textbox( ui_rect inout_panel, const char *label,