00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 typedef struct {
00018 double x;
00019 double y;
00020 }TwoD_Point;
00021
00022 #define SWITCH_WHITE 0
00023 #define SWITCH_BLACK 1
00024 #define SWITCH_RED 2
00025 #define SWITCH_GREEN 3
00026 #define SWITCH_BLUE 4
00027 #define SWITCH_YELLOW 5
00028 #define SWITCH_MAGENTA 6
00029 #define SWITCH_CYAN 7
00030 #define BIGEST_RND_NUMBER RAND_MAX
00031
00032 void switch_draw_createwindow(char*,int,int,int,int,int);
00033 void switch_draw_set_color(int);
00034 void switch_draw_line(double,double,double,double,double);
00035 void switch_draw_cross(double,double,double,double);
00036 TwoD_Point switch_get_cursor_coord();
00037 double switch_random();
00038 void switch_srandom(int);