%module gquickdraw %{ #include #include #include #include #include %} #ifdef FOOBAR %rename(init_screen) void gd_init_screen (int width, int height, int doublebuffer); %name(clear_screen) void gd_clear_screen (); %name(flip_screen) void gd_flip_screen (); %name(set_fg_color) void gd_set_fg_color (int color); %name(get_mouse_x) int gd_get_mouse_x (); %name(get_mouse_y) int gd_get_mouse_y (); %name(get_mouse_button) int gd_get_mouse_button (int number); %name(set_bg_color) void gd_set_bg_color (int color); %name(flush-screen) void gd_flush_screen (); %name(sync_screen) void gd_sync_screen (); %name(draw_rect) void gd_draw_rect (int x1, int y1, int width, int height, int fill); %name(draw_line) void gd_draw_line (int x1, int y1, int x2, int y2); #endif void gd_init_screen (int width, int height, int doublebuffer); void gd_clear_screen (); void gd_flip_screen (); void gd_set_fg_color (int color); int gd_get_mouse_x (); int gd_get_mouse_y (); int gd_get_mouse_button (int number); void gd_set_bg_color (int color); void gd_flush_screen (); void gd_sync_screen (); void gd_draw_rect (int x1, int y1, int width, int height, int fill); void gd_draw_line (int x1, int y1, int x2, int y2); /* EOF */