Board outline polygon generation
[geda-pcb/pcjc2.git] / src / hid / gtk / gui-pinout-preview.h
blob754e557dfb21475f7fe162f7b9e7af2014fbcc1c
1 /*
2 * COPYRIGHT
4 * PCB, interactive printed circuit board design
5 * Copyright (C) 1994,1995,1996 Thomas Nau
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.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 * Contact addresses for paper mail and Email:
22 * Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany
23 * Thomas.Nau@rz.uni-ulm.de
27 /* This file written by Peter Clifton */
29 #ifndef PCB_HID_GTK_GUI_PINOUT_PREVIEW_H
30 #define PCB_HID_GTK_GUI_PINOUT_PREVIEW_H
33 #define GHID_TYPE_PINOUT_PREVIEW (ghid_pinout_preview_get_type())
34 #define GHID_PINOUT_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GHID_TYPE_PINOUT_PREVIEW, GhidPinoutPreview))
35 #define GHID_PINOUT_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GHID_TYPE_PINOUT_PREVIEW, GhidPinoutPreviewClass))
36 #define GHID_IS_PINOUT_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GHID_TYPE_PINOUT_PREVIEW))
37 #define GHID_PINOUT_PREVIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GHID_TYPE_PINOUT_PREVIEW, GhidPinoutPreviewClass))
39 typedef struct _GhidPinoutPreviewClass GhidPinoutPreviewClass;
40 typedef struct _GhidPinoutPreview GhidPinoutPreview;
43 struct _GhidPinoutPreviewClass
45 GtkDrawingAreaClass parent_class;
48 struct _GhidPinoutPreview
50 GtkDrawingArea parent_instance;
52 ElementType *element; /* element data to display */
53 gint x_max, y_max;
54 gint w_pixels, h_pixels; /* natural size of element preview */
58 GType ghid_pinout_preview_get_type (void);
60 GtkWidget *ghid_pinout_preview_new (ElementType * element);
61 void ghid_pinout_preview_get_natural_size (GhidPinoutPreview * pinout,
62 int *width, int *height);
64 #endif /* PCB_HID_GTK_GUI_PINOUT_PREVIEW_H */