1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
/* This file contains prototypes for the functions in callbacks.c. It is
* included by main.c so that when you create a new widget, you can tie
* its callback function to something that has been defined (otherwise the
* compiler will give you and error.
*
* If you add any functions to callbacks.c, you should put a corresponding
* function prototype in here.
*/
/* callback protos */
void quit(Widget w, void *data);
void load(Widget w, void *data);
void click_me(Widget w, void *data);
void redisplay(Widget w, int new_width, int new_height, void *data);
/* drawing functions called from redisplay() */
void draw_stuff(int width, int height);
void draw_lines(int width, int height);
void draw_random_lines(void);
void draw_points(void);
void draw_text(int width, int height);
|