gerbv  2.10.1-dev~93f1b5
render.h
Go to the documentation of this file.
1 /*
2  * gEDA - GNU Electronic Design Automation
3  *
4  * render.h -- this file is a part of gerbv.
5  *
6  * $Id$
7  *
8  * Copyright (C) 2007 Stuart Brorson (SDB@cloud9.net)
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23  */
24 
30 #include "gerber.h"
31 
34 
35 void render_recreate_composite_surface();
36 void render_project_to_cairo_target(cairo_t* cr);
37 
38 void render_zoom_display(gint zoomType, gdouble scaleFactor, gdouble mouseX, gdouble mouseY);
39 
40 void render_calculate_zoom_from_outline(GtkWidget* widget, GdkEventButton* event);
41 
42 void render_draw_selection_box_outline(void);
43 
44 void render_draw_zoom_outline(gboolean centered);
45 
47 
49 
50 void render_refresh_rendered_image_on_screen(void);
51 
52 void render_remove_selected_objects_belonging_to_layer(gerbv_selection_info_t* sel_info, gerbv_image_t* image);
53 
54 void render_free_screen_resources(void);
55 
56 enum selection_action {
57  SELECTION_REPLACE = 0,
58  SELECTION_ADD,
59  SELECTION_TOGGLE,
60 };
61 
62 void render_fill_selection_buffer_from_mouse_click(
63  gint mouseX, gint mouseY, gint activeFileIndex, enum selection_action action
64 );
65 
66 void render_fill_selection_buffer_from_mouse_drag(
67  gint corner1X, gint corner1Y, gint corner2X, gint corner2Y, gint activeFileIndex, enum selection_action action
68 );
69 
70 extern gerbv_render_info_t screenRenderInfo;
Header info for the RS274X parsing functions.
void render_calculate_zoom_from_outline(GtkWidget *widget, GdkEventButton *event)
Will determine the outline of the zoomed regions.
Definition: render.c:139
gerbv_stats_t * generate_gerber_analysis(void)
Definition: render.c:615
void render_draw_measure_distance(void)
Displays a measured distance graphically on screen and in statusbar.
Definition: render.c:336
void render_toggle_measure_line(void)
Draws/erases measure line.
Definition: render.c:311
gerbv_drill_stats_t * generate_drill_analysis(void)
Definition: render.c:640