X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fui%2Fslider.h;h=2f4b97af9a43bac167d78bfd2508919a522101d7;hb=2da076b3d1dca3da3aa70db124200b40f0551c28;hp=c009f1f5a159d1065f7cf021e8729f7f6c14badd;hpb=c38ddc3fbb8dc6d3110ad17ea9f031258e1dd6d7;p=nothing.git diff --git a/src/ui/slider.h b/src/ui/slider.h index c009f1f5..2f4b97af 100644 --- a/src/ui/slider.h +++ b/src/ui/slider.h @@ -2,6 +2,7 @@ #define SLIDER_H_ typedef struct { + int drag; float value; float max_value; } Slider; @@ -10,6 +11,6 @@ typedef struct Camera Camera; typedef union SDL_Event SDL_Event; int slider_render(const Slider *slider, Camera *camera, Rect boundary); -int slider_event(Slider *slider, const SDL_Event *event, Rect boundary); +int slider_event(Slider *slider, const SDL_Event *event, Rect boundary, int *selected); #endif // SLIDER_H_