Root/
Source at commit bc27b094af74a7c6f8b71ceaa63d1ba80d067cbb created 13 years 11 months ago. By werner, With a little help from m8cutils and abyss, we now have regression tests for the topological sort. "make test" or "make tests" invokes the regression tests, "make valgrind" runs them under valgrind's watchful eyes. | |
---|---|
1 | /* |
2 | * gui_canvas.h - GUI, canvas |
3 | * |
4 | * Written 2009, 2010 by Werner Almesberger |
5 | * Copyright 2009, 2010 by Werner Almesberger |
6 | * |
7 | * This program is free software; you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by |
9 | * the Free Software Foundation; either version 2 of the License, or |
10 | * (at your option) any later version. |
11 | */ |
12 | |
13 | |
14 | #ifndef GUI_CANVAS_H |
15 | #define GUI_CANVAS_H |
16 | |
17 | #include <gtk/gtk.h> |
18 | |
19 | |
20 | /* |
21 | * "highlight" is invoked at the end of each redraw, for optional highlighting |
22 | * of objects. |
23 | */ |
24 | |
25 | extern void (*highlight)(void); |
26 | |
27 | |
28 | void refresh_pos(void); |
29 | |
30 | void redraw(void); |
31 | |
32 | void zoom_in_center(void); |
33 | void zoom_out_center(void); |
34 | void zoom_to_frame(void); |
35 | void zoom_to_extents(void); |
36 | |
37 | void canvas_frame_begin(struct frame *frame); |
38 | int canvas_frame_motion(struct frame *frame, int x, int y); |
39 | void canvas_frame_end(void); |
40 | int canvas_frame_drop(struct frame *frame, int x, int y); |
41 | |
42 | GtkWidget *make_canvas(void); |
43 | void init_canvas(void); |
44 | |
45 | #endif /* !GUI_CANVAS_H */ |
46 |
Branches:
master