Amulets & Armor  v1.02
Open Source Game
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Functions
SLIDR

Scroll bars for UI. More...

Functions

T_void SliderCleanUp (T_void)
 
T_sliderID SliderCreate (T_word16 lx1, T_word16 ly1, T_word16 lx2)
 
T_void SliderDelete (T_sliderID sliderID)
 
T_voidSliderGetStateBlock (T_void)
 
T_word16 SliderGetValue (T_sliderID sliderID)
 
E_Boolean SliderIsAt (T_sliderID sliderID, T_word16 lx, T_word16 ly)
 
T_void SliderMouseControl (E_mouseEvent event, T_word16 x, T_word16 y, T_buttonClick button)
 
T_void SliderSetCallBack (T_sliderID sliderID, T_sliderHandler sliderhandler)
 
T_void SliderSetStateBlock (T_void *p_state)
 
T_void SliderSetValue (T_sliderID sliderID, T_word16 value)
 
T_void SliderUpdate (T_sliderID sliderID)
 
T_void SliderUpdateAllSliders (T_void)
 

Detailed Description

Scroll bars for UI.

User Interface sliders/scrollbars.

See Also
http://www.amuletsandarmor.com/AALicense.txt

Function Documentation

T_void SliderCleanUp ( T_void  )
T_sliderID SliderCreate ( T_word16  lx1,
T_word16  ly1,
T_word16  lx2 
)

Adds a slider to the current list of sliders for a form

T_void SliderDelete ( T_sliderID  sliderID)

Releases memory allocated to a slider Cleanup releases memory allocated to all 'sliders'

T_void* SliderGetStateBlock ( T_void  )
T_word16 SliderGetValue ( T_sliderID  sliderID)
E_Boolean SliderIsAt ( T_sliderID  sliderID,
T_word16  lx,
T_word16  ly 
)
T_void SliderMouseControl ( E_mouseEvent  event,
T_word16  x,
T_word16  y,
T_buttonClick  button 
)
T_void SliderSetCallBack ( T_sliderID  sliderID,
T_sliderHandler  sliderhandler 
)
T_void SliderSetStateBlock ( T_void p_state)
T_void SliderSetValue ( T_sliderID  sliderID,
T_word16  value 
)
T_void SliderUpdate ( T_sliderID  sliderID)

Draws a slider on the screen at the stored locx+xoff, locy+yoff also will shadow if shadow is set to anything less than 255, and will not draw slider if visible or changed are set to FALSE.

T_void SliderUpdateAllSliders ( T_void  )

Calls SliderUpdate for all sliders currently allocated. Note that slider will not draw if visible or changed are set to FALSE.