pcb 4.1.1
An interactive printed circuit board layout editor.

gui-pinout-preview.h

Go to the documentation of this file.
00001 /*
00002  *                            COPYRIGHT
00003  *
00004  *  PCB, interactive printed circuit board design
00005  *  Copyright (C) 1994,1995,1996 Thomas Nau
00006  *
00007  *  This program is free software; you can redistribute it and/or modify
00008  *  it under the terms of the GNU General Public License as published by
00009  *  the Free Software Foundation; either version 2 of the License, or
00010  *  (at your option) any later version.
00011  *
00012  *  This program is distributed in the hope that it will be useful,
00013  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  *  GNU General Public License for more details.
00016  *
00017  *  You should have received a copy of the GNU General Public License along
00018  *  with this program; if not, write to the Free Software Foundation, Inc.,
00019  *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00020  *
00021  *  Contact addresses for paper mail and Email:
00022  *  Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany
00023  *  Thomas.Nau@rz.uni-ulm.de
00024  *
00025  */
00026 
00027 /* This file written by Peter Clifton */
00028 
00029 #ifndef PCB_HID_GTK_GUI_PINOUT_PREVIEW_H
00030 #define PCB_HID_GTK_GUI_PINOUT_PREVIEW_H
00031 
00032 
00033 #define GHID_TYPE_PINOUT_PREVIEW           (ghid_pinout_preview_get_type())
00034 #define GHID_PINOUT_PREVIEW(obj)           (G_TYPE_CHECK_INSTANCE_CAST ((obj), GHID_TYPE_PINOUT_PREVIEW, GhidPinoutPreview))
00035 #define GHID_PINOUT_PREVIEW_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass),  GHID_TYPE_PINOUT_PREVIEW, GhidPinoutPreviewClass))
00036 #define GHID_IS_PINOUT_PREVIEW(obj)        (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GHID_TYPE_PINOUT_PREVIEW))
00037 #define GHID_PINOUT_PREVIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),  GHID_TYPE_PINOUT_PREVIEW, GhidPinoutPreviewClass))
00038 
00039 typedef struct _GhidPinoutPreviewClass GhidPinoutPreviewClass;
00040 typedef struct _GhidPinoutPreview GhidPinoutPreview;
00041 
00042 
00043 struct _GhidPinoutPreviewClass
00044 {
00045   GtkDrawingAreaClass parent_class;
00046 };
00047 
00048 struct _GhidPinoutPreview
00049 {
00050   GtkDrawingArea parent_instance;
00051 
00052   ElementType *element;         /* element data to display */
00053   gint x_max, y_max;
00054   gint w_pixels, h_pixels;      /* natural size of element preview */
00055 };
00056 
00057 
00058 GType ghid_pinout_preview_get_type (void);
00059 
00060 GtkWidget *ghid_pinout_preview_new (ElementType * element);
00061 void ghid_pinout_preview_get_natural_size (GhidPinoutPreview * pinout,
00062                                            int *width, int *height);
00063 
00064 #endif /* PCB_HID_GTK_GUI_PINOUT_PREVIEW_H */