gschem

x_preview.h

Go to the documentation of this file.
00001 /* gEDA - GPL Electronic Design Automation
00002  * gschem - gEDA Schematic Capture
00003  * Copyright (C) 1998-2010 Ales Hvezda
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Library General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Library General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
00018  * MA 02111-1301 USA.
00019  */
00020 
00021 
00022 #ifndef __X_PREVIEW_H__
00023 #define __X_PREVIEW_H__
00024 
00025 
00026 /*
00027  * Preview
00028  */
00029 
00030 #define TYPE_PREVIEW         (preview_get_type())
00031 #define PREVIEW(obj)         (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PREVIEW, Preview))
00032 #define PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PREVIEW, PreviewClass))
00033 #define IS_PREVIEW(obj)      (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PREVIEW))
00034 
00035 
00036 typedef struct _PreviewClass PreviewClass;
00037 typedef struct _Preview      Preview;
00038 
00039 
00040 struct _PreviewClass {
00041   GtkDrawingAreaClass parent_class;
00042   
00043 };
00044 
00045 struct _Preview {
00046   GtkDrawingArea parent_instance;
00047 
00048   GSCHEM_TOPLEVEL *preview_w_current;
00049 
00050   gchar *filename;
00051   gchar *buffer;
00052 
00053   gboolean active;
00054   
00055 };
00056 
00057 
00058 GType preview_get_type (void);
00059 
00060 
00061 #endif /* __X_PREVIEW_H__ */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines