Root/
Source at commit f3299aaf29636b8df86cab1bd994479574a55a2d created 8 years 7 days ago. By Werner Almesberger, gui.c: add "Allow" menu to GUI | |
---|---|
1 | /* |
2 | * gui_inst.h - GUI, instance functions |
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_INST_H |
15 | #define GUI_INST_H |
16 | |
17 | #include <gtk/gtk.h> |
18 | |
19 | #include "coord.h" |
20 | #include "inst.h" |
21 | #include "gui_status.h" |
22 | |
23 | |
24 | struct coord translate(struct coord pos); |
25 | struct coord canvas_to_coord(int x, int y); |
26 | |
27 | unit_type gui_dist_vec(struct inst *self, struct coord pos, unit_type scale); |
28 | unit_type gui_dist_vec_fallback(struct inst *self, struct coord pos, |
29 | unit_type scale); |
30 | unit_type gui_dist_line(struct inst *self, struct coord pos, unit_type scale); |
31 | unit_type gui_dist_rect(struct inst *self, struct coord pos, unit_type scale); |
32 | unit_type gui_dist_pad(struct inst *self, struct coord pos, unit_type scale); |
33 | unit_type gui_dist_hole(struct inst *self, struct coord pos, unit_type scale); |
34 | unit_type gui_dist_arc(struct inst *self, struct coord pos, unit_type scale); |
35 | unit_type gui_dist_meas(struct inst *self, struct coord pos, unit_type scale); |
36 | unit_type gui_dist_frame(struct inst *self, struct coord pos, unit_type scale); |
37 | unit_type gui_dist_frame_eye(struct inst *self, struct coord pos, |
38 | unit_type scale); |
39 | |
40 | void project_meas(const struct inst *inst, struct coord *a1, struct coord *b1); |
41 | char *format_len(const char *label, unit_type len, enum curr_unit unit); |
42 | |
43 | void gui_draw_vec(struct inst *self); |
44 | void gui_draw_line(struct inst *self); |
45 | void gui_draw_rect(struct inst *self); |
46 | void gui_draw_pad(struct inst *self); |
47 | void gui_draw_rpad(struct inst *self); |
48 | void gui_draw_hole(struct inst *self); |
49 | void gui_draw_arc(struct inst *self); |
50 | void gui_draw_meas(struct inst *self); |
51 | void gui_draw_frame(struct inst *self); |
52 | |
53 | void gui_highlight_vec(struct inst *self); |
54 | |
55 | #endif /* !GUI_INST_H */ |
56 |
Branches:
master