1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>g2: g2_win32.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.6 -->
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="pages.html">Related Pages</a></div>
<h1>g2_win32.h</h1><div class="fragment"><pre>00001 <span class="comment">/*****************************************************************************</span>
00002 <span class="comment">** Copyright (C) 1998-2001 Ljubomir Milanovic & Horst Wagner</span>
00003 <span class="comment">** This file is part of the g2 library</span>
00004 <span class="comment">**</span>
00005 <span class="comment">** This library is free software; you can redistribute it and/or</span>
00006 <span class="comment">** modify it under the terms of the GNU Lesser General Public</span>
00007 <span class="comment">** License as published by the Free Software Foundation; either</span>
00008 <span class="comment">** version 2.1 of the License, or (at your option) any later version.</span>
00009 <span class="comment">**</span>
00010 <span class="comment">** This library is distributed in the hope that it will be useful,</span>
00011 <span class="comment">** but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
00012 <span class="comment">** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
00013 <span class="comment">** Lesser General Public License for more details.</span>
00014 <span class="comment">**</span>
00015 <span class="comment">** You should have received a copy of the GNU Lesser General Public</span>
00016 <span class="comment">** License along with this library; if not, write to the Free Software</span>
00017 <span class="comment">** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
00018 <span class="comment">******************************************************************************/</span>
00019 <span class="comment">/* This is g2_win32.h */</span>
00020 <span class="preprocessor">#ifndef _G2_WIN32_H</span>
00021 <span class="preprocessor"></span><span class="preprocessor">#define _G2_WIN32_H</span>
00022 <span class="preprocessor"></span>
00023 <span class="preprocessor">#if defined(__cplusplus)</span>
00024 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span>
00025 {
00026 <span class="preprocessor">#endif</span>
00027 <span class="preprocessor"></span>
00028 <span class="preprocessor">#include <stdio.h></span>
00029
00030 <span class="comment">// Common Library header for DLL and application</span>
00031 <span class="preprocessor">#ifdef WIN32</span>
00032 <span class="preprocessor"></span><span class="preprocessor">#ifdef G2DLL</span>
00033 <span class="preprocessor"></span><span class="preprocessor">#ifdef MAKEDLL</span>
00034 <span class="preprocessor"></span><span class="comment">/* Create DLL */</span>
00035 <span class="preprocessor">#define LINKDLL __declspec( dllexport)</span>
00036 <span class="preprocessor"></span><span class="preprocessor">#else</span>
00037 <span class="preprocessor"></span><span class="comment">/* Use DLL */</span>
00038 <span class="preprocessor">#define LINKDLL __declspec( dllimport)</span>
00039 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00040 <span class="preprocessor"></span><span class="preprocessor">#else </span>
00041 <span class="preprocessor"></span><span class="comment">/* Use static win32 */</span>
00042 <span class="preprocessor">#define LINKDLL</span>
00043 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00044 <span class="preprocessor"></span><span class="preprocessor">#else</span>
00045 <span class="preprocessor"></span><span class="comment">/* Use non-win32 */</span>
00046 <span class="preprocessor">#define LINKDLL</span>
00047 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00048 <span class="preprocessor"></span>
<a name="l00054"></a><a class="code" href="group__win32.html#ga1">00054</a> <span class="keyword">enum</span> <a class="code" href="group__win32.html#ga1">g2_win32_type</a> {
00055 <a class="code" href="group__win32.html#gga1a1">g2_win32</a>,
00056 <a class="code" href="group__win32.html#gga1a2">g2_wmf32</a>
00057 };
00058
00059
00060 LINKDLL <span class="keywordtype">int</span> <a class="code" href="group__win32.html#ga3">g2_open_win32</a>(<span class="keywordtype">int</span> width, <span class="keywordtype">int</span> height, <span class="keyword">const</span> <span class="keywordtype">char</span> *filename,<span class="keywordtype">int</span> type);
00061
00062
00063 <span class="preprocessor">#if defined(__cplusplus)</span>
00064 <span class="preprocessor"></span>} <span class="comment">/* end extern "C" */</span>
00065 <span class="preprocessor">#endif</span>
00066 <span class="preprocessor"></span>
00067
00068 <span class="preprocessor">#endif </span><span class="comment">/* _G2_WIN32_H */</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Thu Apr 8 23:32:49 2004 for g2 by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 >
</a>1.3.6 </small></address>
</body>
</html>
|