Root/gui_inst.h

Source at commit a9ed5b30aa457704a4c0c912367bfe8c57db8d03 created 3 years 4 months ago.
By Werner Almesberger, fped.1: update for new options; fix typo; bump date
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
24struct coord translate(struct coord pos);
25struct coord canvas_to_coord(int x, int y);
26
27unit_type gui_dist_vec(struct inst *self, struct coord pos, unit_type scale);
28unit_type gui_dist_vec_fallback(struct inst *self, struct coord pos,
29    unit_type scale);
30unit_type gui_dist_line(struct inst *self, struct coord pos, unit_type scale);
31unit_type gui_dist_rect(struct inst *self, struct coord pos, unit_type scale);
32unit_type gui_dist_pad(struct inst *self, struct coord pos, unit_type scale);
33unit_type gui_dist_hole(struct inst *self, struct coord pos, unit_type scale);
34unit_type gui_dist_arc(struct inst *self, struct coord pos, unit_type scale);
35unit_type gui_dist_meas(struct inst *self, struct coord pos, unit_type scale);
36unit_type gui_dist_frame(struct inst *self, struct coord pos, unit_type scale);
37unit_type gui_dist_frame_eye(struct inst *self, struct coord pos,
38    unit_type scale);
39
40void project_meas(const struct inst *inst, struct coord *a1, struct coord *b1);
41char *format_len(const char *label, unit_type len, enum curr_unit unit);
42
43void gui_draw_vec(struct inst *self);
44void gui_draw_line(struct inst *self);
45void gui_draw_rect(struct inst *self);
46void gui_draw_pad(struct inst *self);
47void gui_draw_rpad(struct inst *self);
48void gui_draw_hole(struct inst *self);
49void gui_draw_arc(struct inst *self);
50void gui_draw_meas(struct inst *self);
51void gui_draw_frame(struct inst *self);
52
53void gui_highlight_vec(struct inst *self);
54
55#endif /* !GUI_INST_H */
56

Archive Download this file

Branches:
master



interactive