2009-08-03 19:12:47 +03:00
|
|
|
/*
|
|
|
|
* gui_inst.h - GUI, instance functions
|
|
|
|
*
|
|
|
|
* Written 2009 by Werner Almesberger
|
|
|
|
* Copyright 2009 by Werner Almesberger
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef GUI_INST_H
|
|
|
|
#define GUI_INST_H
|
|
|
|
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
|
|
|
#include "coord.h"
|
|
|
|
#include "inst.h"
|
|
|
|
|
|
|
|
|
2009-08-08 17:11:26 +03:00
|
|
|
struct coord translate(struct coord pos);
|
|
|
|
struct coord canvas_to_coord(int x, int y);
|
2009-08-03 19:12:47 +03:00
|
|
|
|
|
|
|
unit_type gui_dist_vec(struct inst *self, struct coord pos, unit_type scale);
|
|
|
|
unit_type gui_dist_vec_fallback(struct inst *self, struct coord pos,
|
|
|
|
unit_type scale);
|
|
|
|
unit_type gui_dist_line(struct inst *self, struct coord pos, unit_type scale);
|
|
|
|
unit_type gui_dist_rect(struct inst *self, struct coord pos, unit_type scale);
|
|
|
|
unit_type gui_dist_pad(struct inst *self, struct coord pos, unit_type scale);
|
|
|
|
unit_type gui_dist_arc(struct inst *self, struct coord pos, unit_type scale);
|
|
|
|
unit_type gui_dist_meas(struct inst *self, struct coord pos, unit_type scale);
|
2009-08-04 15:06:04 +03:00
|
|
|
unit_type gui_dist_frame(struct inst *self, struct coord pos, unit_type scale);
|
2009-08-04 21:03:06 +03:00
|
|
|
unit_type gui_dist_frame_eye(struct inst *self, struct coord pos,
|
|
|
|
unit_type scale);
|
2009-08-03 19:12:47 +03:00
|
|
|
|
2009-08-08 17:11:26 +03:00
|
|
|
void gui_draw_vec(struct inst *self);
|
|
|
|
void gui_draw_line(struct inst *self);
|
|
|
|
void gui_draw_rect(struct inst *self);
|
|
|
|
void gui_draw_pad(struct inst *self);
|
2009-08-14 13:18:40 +03:00
|
|
|
void gui_draw_rpad(struct inst *self);
|
2009-08-08 17:11:26 +03:00
|
|
|
void gui_draw_arc(struct inst *self);
|
|
|
|
void gui_draw_meas(struct inst *self);
|
|
|
|
void gui_draw_frame(struct inst *self);
|
|
|
|
|
|
|
|
void gui_highlight_vec(struct inst *self);
|
2009-08-04 15:06:04 +03:00
|
|
|
|
2009-08-03 19:12:47 +03:00
|
|
|
#endif /* !GUI_INST_H */
|