1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
/*
* control.h
*
* defines for control manager
*/
# define CONTROL_BUTTON 0 /* named button */
# define CONTROL_SCROLL 1 /* scroll bar */
# define CONTROL_RADIO 2 /* radio buttons */
# define CONTROL_CHECK 3 /* check boxes */
# define CONTROL_SIZE 4 /* resize box */
# define CONTROL_EDIT 5 /* text edit box */
typedef int Button;
typedef int Check;
typedef int Editbox;
# define EDIT_VOID 0
# define EDIT_RETURN 1
typedef int Scrollbar;
# define SCROLL_LEFT 0
# define SCROLL_TOP 1
# define SCROLL_RIGHT 2
# define SCROLL_BOTTOM 3
# define SCROLLWIDTH 25
# define SCROLL_UP_BUTTON -1
# define SCROLL_DOWN_BUTTON -2
# define SCROLL_UP_AREA -3
# define SCROLL_DOWN_AREA -4
# define SCROLL_BUTTON_RELEASE -5
# define SCROLL_EVENTS (ButtonPressed|ButtonReleased|ExposeWindow| \
RightDownMotion|LeftDownMotion|MiddleDownMotion)
|