mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@21 3b4a5df2-a311-0410-b5c6-a8a6f20db521
64 lines
922 B
C
64 lines
922 B
C
#ifndef _SLIDER__H_
|
|
#define _SLIDER__H_
|
|
|
|
|
|
#define SLIDER_VERTICAL 0x00000001
|
|
#define SLIDER_HORIZONTAL 0x00000002
|
|
|
|
|
|
|
|
//defines for the different styles of sliders
|
|
enum
|
|
{
|
|
SLIDER_DEFAULT_STYLE,
|
|
|
|
SLIDER_VERTICAL_STEEL,
|
|
|
|
NUM_SLIDER_STYLES,
|
|
};
|
|
|
|
|
|
typedef void ( *SLIDER_CHANGE_CALLBACK ) (INT32);
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
ubStyle
|
|
usPosX
|
|
usPosY
|
|
usWidth
|
|
usNumberOfIncrements
|
|
sPriority
|
|
SliderChangeCallback
|
|
void SliderChangeCallBack( INT32 iNewValue )
|
|
*/
|
|
|
|
INT32 AddSlider( UINT8 ubStyle, UINT16 usCursor, UINT16 usPosX, UINT16 usPosY, UINT16 usWidth, UINT16 usNumberOfIncrements, INT8 sPriority, SLIDER_CHANGE_CALLBACK SliderChangeCallback, UINT32 uiFlags );
|
|
|
|
|
|
BOOLEAN InitSlider();
|
|
|
|
void ShutDownSlider();
|
|
|
|
|
|
void RenderAllSliderBars();
|
|
|
|
|
|
|
|
|
|
void RemoveSliderBar( UINT32 uiSliderID );
|
|
|
|
|
|
|
|
|
|
void SetSliderValue( UINT32 uiSliderID, UINT32 uiNewValue );
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|