WSTester updated to work plus hopefully all the other changes that need to go into...
[jabaws.git] / binaries / src / ViennaRNA / RNAforester / g2-0.70 / src / PS / g2_PS.h
diff --git a/binaries/src/ViennaRNA/RNAforester/g2-0.70/src/PS/g2_PS.h b/binaries/src/ViennaRNA/RNAforester/g2-0.70/src/PS/g2_PS.h
new file mode 100644 (file)
index 0000000..88eb918
--- /dev/null
@@ -0,0 +1,118 @@
+/*****************************************************************************
+**  Copyright (C) 1998-2001  Ljubomir Milanovic & Horst Wagner
+**  This file is part of the g2 library
+**
+**  This library is free software; you can redistribute it and/or
+**  modify it under the terms of the GNU Lesser General Public
+**  License as published by the Free Software Foundation; either
+**  version 2.1 of the License, or (at your option) any later version.
+**
+**  This library is distributed in the hope that it will be useful,
+**  but WITHOUT ANY WARRANTY; without even the implied warranty of
+**  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+**  Lesser General Public License for more details.
+**
+**  You should have received a copy of the GNU Lesser General Public
+**  License along with this library; if not, write to the Free Software
+**  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+******************************************************************************/
+#ifndef _G2_PS_H
+#define _G2_PS_H
+
+#if defined(__cplusplus)
+extern "C"
+{
+#endif
+
+/**
+ *  g2 paper type.
+ *
+ * \ingroup PS
+ */
+enum g2_PS_paper {             /*      Name           Size(Pt)   */
+ g2_A0,                                /**< A0                 2384 x 3370 */
+ g2_A1,                                /**< A1                 1684 x 2384 */
+ g2_A2,                                /**< A2                 1191 x 1684 */
+ g2_A3,                                /**< A3                  842 x 1191 */
+ g2_A4,                                /**< A4                  595 x  842 */
+ g2_A5,                                /**< A5                  420 x  595 */
+ g2_A6,                                /**< A6                  297 x  420 */
+ g2_A7,                                /**< A7                  210 x  297 */
+ g2_A8,                                /**< A8                  148 x  210 */
+ g2_A9,                                /**< A9                  105 x  148 */
+ g2_B0,                                /**< B0                 2920 x 4127 */
+ g2_B1,                                /**< B1                 2064 x 2920 */
+ g2_B2,                                /**< B2                 1460 x 2064 */
+ g2_B3,                                /**< B3                 1032 x 1460 */
+ g2_B4,                                /**< B4                  729 x 1032 */
+ g2_B5,                                /**< B5                  516 x  729 */
+ g2_B6,                                /**< B6                  363 x  516 */
+ g2_B7,                                /**< B7                  258 x  363 */
+ g2_B8,                                /**< B8                  181 x  258 */
+ g2_B9,                                /**< B9                  127 x  181 */
+ g2_B10,                        /**< B10                  91 x  127 */
+ g2_Comm_10_Envelope,           /**< Comm #10 Envelope   297 x  684 */
+ g2_C5_Envelope,               /**< C5 Envelope         461 x  648 */
+ g2_DL_Envelope,               /**< DL Envelope         312 x  624 */
+ g2_Folio,                     /**< Folio               595 x  935 */
+ g2_Executive,                 /**< Executive           522 x  756 */
+ g2_Letter,                    /**< Letter              612 x  792 */
+ g2_Legal,                     /**< Legal               612 x 1008 */
+ g2_Ledger,                    /**< Ledger             1224 x  792 */
+ g2_Tabloid                    /**< Tabloid             792 x 1224 */
+};
+
+    
+/**
+ *  g2 paper orientation.
+ *
+ * \ingroup PS
+ */
+enum g2_PS_orientation {
+    g2_PS_land,                        /**< landscape */
+    g2_PS_port                 /**< portrait */
+};
+
+/*
+ *  g2 Format
+ */
+enum g2_PS_format {
+    g2_PS_PostScript,                  /* PostScript  */
+    g2_PS_EPSF,                                /* EPSF format */
+    g2_PS_EPSF_CLIP                    /* EPSF format with predefined Bounding Box*/
+};
+
+/* Common Library header for DLL and application */
+#ifdef WIN32
+#ifdef G2DLL
+#ifdef MAKEDLL
+/* Create DLL */
+#define G2L __declspec( dllexport)
+#else
+/* Use DLL */
+#define G2L __declspec( dllimport)
+#endif
+#else 
+/* Use static win32 */
+#define G2L
+#endif
+#else
+/* Use non-win32 */
+#define G2L
+#endif
+
+
+G2L int g2_open_PS(const char *file_name,
+                  enum g2_PS_paper paper,
+                  enum g2_PS_orientation orientation);
+
+G2L int g2_open_EPSF(const char *file_name);
+
+G2L int g2_open_EPSF_CLIP(const char *file_name,
+                       long width, long height);
+
+#if defined(__cplusplus)
+} /* end extern "C" */
+#endif
+
+#endif /* _G2_PS_H */