#ifndef __Slider__H
#define __Slider__H

#include <stdbool.h>
#include "WimpLib:Coords.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef enum
{
	  ESlider_UpdateMode_Dragging
	, ESlider_UpdateMode_Set
	, ESlider_UpdateMode_Cancel
} ESlider_UpdateMode;

typedef void (*Slider_SetValue)(void* pData, int value, int maxvalue, ESlider_UpdateMode mode);

#define ESliderType_Vertical 1
#define ESliderType_Button   2

void Slider_Set(HWind w, HIcon i1, HIcon i2, int type, float value);
void Slider_Update(HWind w, HIcon i1, HIcon i2, int type, const Mouse* m, Slider_SetValue update, void* pData);
bool Slider_IsDragging(HWind w, HIcon i1, HIcon i2);

#ifdef __cplusplus
}
#endif

#endif
