File: plwindefs_8h-source.html

package info (click to toggle)
paintlib 2.6.2-8
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 7,900 kB
  • ctags: 3,875
  • sloc: cpp: 25,209; sh: 10,600; ansic: 1,891; makefile: 119
file content (138 lines) | stat: -rw-r--r-- 7,816 bytes parent folder | download | duplicates (2)
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>paintlib: plwindefs.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.2 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Compound&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Compound&nbsp;Members</a></div>
<h1>plwindefs.h</h1><a href="plwindefs_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>
00002 <span class="comment">/--------------------------------------------------------------------</span>
00003 <span class="comment">|</span>
00004 <span class="comment">|      $Id: plwindefs_8h-source.html,v 1.4 2004/09/15 15:26:32 uzadow Exp $</span>
00005 <span class="comment">|</span>
00006 <span class="comment">|      Copyright (c) 1996-2002 Ulrich von Zadow</span>
00007 <span class="comment">|</span>
00008 <span class="comment">\--------------------------------------------------------------------</span>
00009 <span class="comment">*/</span>
00010 <span class="comment"></span>
00011 <span class="comment">//! \file</span>
00012 <span class="comment">//! Windows Bitmap Struct Definitions</span>
00013 <span class="comment">//!</span>
00014 <span class="comment">//! Contains the definitions for the data structures used in</span>
00015 <span class="comment">//! windows bitmap files. For windows apps, they are already</span>
00016 <span class="comment">//! defined - but not with these names.</span>
00017 <span class="comment">//!</span>
00018 <span class="comment">//! The WINRGBQUAD, WINBITMAPFILEHEADER, WINBITMAPINFOHEADER,</span>
00019 <span class="comment">//! and WINBITMAPINFO structs are defined as RGBQUAD etc. in</span>
00020 <span class="comment">//! the windows header files. See the windows documentation</span>
00021 <span class="comment">//! for details.</span>
00022 <span class="comment"></span>
00023 <span class="preprocessor">#ifndef INCL_PLWINDEFS</span>
00024 <span class="preprocessor"></span><span class="preprocessor">#define INCL_PLWINDEFS</span>
00025 <span class="preprocessor"></span>
00026 <span class="keyword">typedef</span> <span class="keyword">struct </span>tagWINRGBQUAD
00027 {
00028   PLBYTE    rgbBlue;
00029   PLBYTE    rgbGreen;
00030   PLBYTE    rgbRed;
00031   PLBYTE    rgbReserved;
00032 } WINRGBQUAD;
00033 
00034 <span class="preprocessor">#pragma pack(2)</span>
00035 <span class="preprocessor"></span><span class="keyword">typedef</span> <span class="keyword">struct </span>tagWINBITMAPFILEHEADER
00036 {
00037   PLWORD    bfType;
00038   PLLONG    bfSize;
00039   PLWORD    bfReserved1;
00040   PLWORD    bfReserved2;
00041   PLLONG    bfOffBits;
00042 } WINBITMAPFILEHEADER;
00043 <span class="preprocessor">#pragma pack()</span>
00044 <span class="preprocessor"></span>
00045 <span class="keyword">typedef</span> <span class="keyword">struct </span>tagWINBITMAPINFOHEADER
00046 {
00047   PLLONG   biSize;
00048   PLLONG   biWidth;
00049   PLLONG   biHeight;
00050   PLWORD   biPlanes;
00051   PLWORD   biBitCount;
00052   PLLONG   biCompression;
00053   PLLONG   biSizeImage;
00054   PLLONG   biXPelsPerMeter;
00055   PLLONG   biYPelsPerMeter;
00056   PLLONG   biClrUsed;
00057   PLLONG   biClrImportant;
00058 } WINBITMAPINFOHEADER;
00059 
00060 <span class="keyword">typedef</span> <span class="keyword">struct </span>tagWINBITMAPINFO
00061 {
00062   WINBITMAPINFOHEADER bmiHeader;
00063   WINRGBQUAD          bmiColors[1];
00064 } WINBITMAPINFO;
00065 
00066 <span class="keyword">typedef</span> <span class="keyword">struct </span>tagWINBITMAPCOREHEADER
00067 {
00068   PLLONG    bcSize; 
00069   PLWORD    bcWidth; 
00070   PLWORD    bcHeight; 
00071   PLWORD    bcPlanes; 
00072   PLWORD    bcBitCount; 
00073 } WINBITMAPCOREHEADER;
00074 
00075 <span class="comment">/* constants for the biCompression field */</span>
00076 <span class="preprocessor">#define BI_RGB        0L</span>
00077 <span class="preprocessor"></span><span class="preprocessor">#define BI_RLE8       1L</span>
00078 <span class="preprocessor"></span><span class="preprocessor">#define BI_RLE4       2L</span>
00079 <span class="preprocessor"></span><span class="preprocessor">#define BI_BITFIELDS  3L</span>
00080 <span class="preprocessor"></span>
00081 
00082 <span class="preprocessor">#endif</span>
00083 <span class="preprocessor"></span><span class="comment">/*</span>
00084 <span class="comment">/--------------------------------------------------------------------</span>
00085 <span class="comment">|</span>
00086 <span class="comment">|      $Log: plwindefs_8h-source.html,v $
00086 <span class="comment">|      Revision 1.4  2004/09/15 15:26:32  uzadow
00086 <span class="comment">|      Linux compatibility changes, doc update.
00086 <span class="comment">|</span>
00087 <span class="comment">|      Revision 1.4  2004/06/06 12:56:38  uzadow</span>
00088 <span class="comment">|      Doxygenified documentation.</span>
00089 <span class="comment">|</span>
00090 <span class="comment">|      Revision 1.3  2002/02/24 13:00:42  uzadow</span>
00091 <span class="comment">|      Documentation update; removed buggy PLFilterRotate.</span>
00092 <span class="comment">|</span>
00093 <span class="comment">|      Revision 1.2  2001/10/06 22:03:26  uzadow</span>
00094 <span class="comment">|      Added PL prefix to basic data types.</span>
00095 <span class="comment">|</span>
00096 <span class="comment">|      Revision 1.1  2001/09/16 19:03:22  uzadow</span>
00097 <span class="comment">|      Added global name prefix PL, changed most filenames.</span>
00098 <span class="comment">|</span>
00099 <span class="comment">|      Revision 1.9  2001/01/14 15:32:21  uzadow</span>
00100 <span class="comment">|      Unix compatibility changes.</span>
00101 <span class="comment">|</span>
00102 <span class="comment">|      Revision 1.8  2000/12/13 23:40:16  uzadow</span>
00103 <span class="comment">|      no message</span>
00104 <span class="comment">|</span>
00105 <span class="comment">|      Revision 1.7  2000/11/02 21:27:50  uzadow</span>
00106 <span class="comment">|      Temporary build fix.</span>
00107 <span class="comment">|</span>
00108 <span class="comment">|      Revision 1.6  2000/10/31 11:27:47  jmbuena</span>
00109 <span class="comment">|      Moved win definitions from stdpch.h</span>
00110 <span class="comment">|</span>
00111 <span class="comment">|      Revision 1.5  2000/10/28 11:59:46  uzadow</span>
00112 <span class="comment">|      no message</span>
00113 <span class="comment">|</span>
00114 <span class="comment">|      Revision 1.4  2000/07/07 13:20:47  Ulrich von Zadow</span>
00115 <span class="comment">|      Bugfix: Added #pragma pack to WINBITMAPFILEHEADER.</span>
00116 <span class="comment">|</span>
00117 <span class="comment">|      Revision 1.3  1999/10/03 18:50:52  Ulrich von Zadow</span>
00118 <span class="comment">|      Added automatic logging of changes.</span>
00119 <span class="comment">|</span>
00120 <span class="comment">|</span>
00121 <span class="comment">\--------------------------------------------------------------------</span>
00122 <span class="comment">*/</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Sep 13 16:16:41 2004 for paintlib by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 > 
</a>1.3.2 </small></address>
</body>
</html>