#ifndef _SCROLLBAR_H_ #define _SCROLLBAR_H_ #include "SDL.h" #include "gui.h" #define SB_H 10 /* Scrollbar size */ enum { SB_VERTICAL=0, SB_HORIZONTAL, }; typedef struct SCROLLBAR { WIDGET widget; WIDGET *up,*down; /* the up and down (resp left/right) button */ WIDGET *back; /* the back of the scrollbar */ WIDGET *mobil; /* the mobil part of the scrollbar */ Uint32 vsize; Uint16 s; Uint8 dir; /* the direction: SB_VERTICAL or SB_HORIZONTAL */ Uint32 size,pos; /* 0