Added doxygen documentation. Now we have to update the comments in all the files. See aide.h and button.h for some examples. Documentation is regenerated by "doxygen Doxyfile" in the root directory

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@665 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2009-03-06 21:05:05 +00:00
parent b5a1fadbe0
commit 5f50f7bc22
310 changed files with 117783 additions and 2 deletions

View File

@@ -0,0 +1,296 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>GrafX2: struct.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.8 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
</ul>
</div>
<h1>struct.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* Grafx2 - The Ultimate 256-color bitmap paint program</span>
<a name="l00002"></a>00002 <span class="comment"></span>
<a name="l00003"></a>00003 <span class="comment"> Copyright 2008 Yves Rizoud</span>
<a name="l00004"></a>00004 <span class="comment"> Copyright 2007 Adrien Destugues</span>
<a name="l00005"></a>00005 <span class="comment"> Copyright 1996-2001 Sunset Design (Guillaume Dorme &amp; Karl Maritaud)</span>
<a name="l00006"></a>00006 <span class="comment"></span>
<a name="l00007"></a>00007 <span class="comment"> Grafx2 is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU General Public License</span>
<a name="l00009"></a>00009 <span class="comment"> as published by the Free Software Foundation; version 2</span>
<a name="l00010"></a>00010 <span class="comment"> of the License.</span>
<a name="l00011"></a>00011 <span class="comment"></span>
<a name="l00012"></a>00012 <span class="comment"> Grafx2 is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span>
<a name="l00015"></a>00015 <span class="comment"> GNU General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"></span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU General Public License</span>
<a name="l00018"></a>00018 <span class="comment"> along with Grafx2; if not, see &lt;http://www.gnu.org/licenses/&gt; or</span>
<a name="l00019"></a>00019 <span class="comment"> write to the Free Software Foundation, Inc.,</span>
<a name="l00020"></a>00020 <span class="comment"> 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.</span>
<a name="l00021"></a>00021 <span class="comment">*/</span>
<a name="l00022"></a>00022 <span class="preprocessor">#ifndef _STRUCT_H_</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#define _STRUCT_H_</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span>
<a name="l00025"></a>00025 <span class="preprocessor">#if defined(__BEOS__)</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor"> #include &lt;inttypes.h&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#else</span>
<a name="l00028"></a>00028 <span class="preprocessor"></span><span class="preprocessor"> #include &lt;stdint.h&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#endif</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span>
<a name="l00031"></a>00031 <span class="preprocessor">#include "const.h"</span>
<a name="l00032"></a>00032
<a name="l00033"></a>00033 <span class="comment">// Déclaration des types de base /////////////////////////////////////////////</span>
<a name="l00034"></a>00034
<a name="l00035"></a>00035 <span class="keyword">typedef</span> uint8_t byte;
<a name="l00036"></a>00036 <span class="keyword">typedef</span> uint16_t word;
<a name="l00037"></a>00037 <span class="keyword">typedef</span> uint32_t dword;
<a name="l00038"></a>00038
<a name="l00039"></a>00039 <span class="keyword">typedef</span> void (* fonction_action) (void);
<a name="l00040"></a>00040 <span class="keyword">typedef</span> void (* fonction_afficheur) (word,word,byte);
<a name="l00041"></a>00041 <span class="keyword">typedef</span> byte (* fonction_lecteur) (word,word);
<a name="l00042"></a>00042 <span class="keyword">typedef</span> void (* fonction_effaceur) (byte);
<a name="l00043"></a>00043 <span class="keyword">typedef</span> void (* fonction_display) (word,word,word);
<a name="l00044"></a>00044 <span class="keyword">typedef</span> byte (* fonction_effet) (word,word,byte);
<a name="l00045"></a>00045 <span class="keyword">typedef</span> void (* fonction_block) (word,word,word,word,byte);
<a name="l00046"></a>00046 <span class="keyword">typedef</span> byte (* fonction_test_sign) (void);
<a name="l00047"></a>00047 <span class="keyword">typedef</span> void (* fonction_Ligne_XOR) (word,word,word);
<a name="l00048"></a>00048 <span class="keyword">typedef</span> void (* fonction_display_brush_Color) (word,word,word,word,word,word,byte,word);
<a name="l00049"></a>00049 <span class="keyword">typedef</span> void (* fonction_display_brush_Mono) (word,word,word,word,word,word,byte,byte,word);
<a name="l00050"></a>00050 <span class="keyword">typedef</span> void (* fonction_degrade) (long,short,short);
<a name="l00051"></a>00051 <span class="keyword">typedef</span> void (* fonction_remap) (word,word,word,word,byte *);
<a name="l00052"></a>00052 <span class="keyword">typedef</span> void (* fonction_procsline) (word,word,word,byte *);
<a name="l00053"></a>00053 <span class="keyword">typedef</span> void (* fonction_display_zoom) (word,word,word,byte *);
<a name="l00054"></a>00054 <span class="keyword">typedef</span> void (* fonction_display_brush_Color_zoom) (word,word,word,word,word,word,byte,word,byte *);
<a name="l00055"></a>00055 <span class="keyword">typedef</span> void (* fonction_display_brush_Mono_zoom) (word,word,word,word,word,word,byte,byte,word,byte *);
<a name="l00056"></a>00056 <span class="keyword">typedef</span> void (* fonction_affiche_brosse) (byte *,word,word,word,word,word,word,byte,word);
<a name="l00057"></a>00057
<a name="l00058"></a>00058 <span class="keyword">struct </span><a class="code" href="struct____attribute____.html">__attribute__</a> ((__packed__)) Composantes
<a name="l00059"></a>00059 {
<a name="l00060"></a>00060 byte R;
<a name="l00061"></a>00061 byte V;
<a name="l00062"></a>00062 byte B;
<a name="l00063"></a>00063 };
<a name="l00064"></a>00064 <span class="keyword">typedef</span> <span class="keyword">struct </span>Composantes T_Palette[256];
<a name="l00065"></a>00065
<a name="l00066"></a>00066
<a name="l00067"></a>00067
<a name="l00068"></a><a class="code" href="structFenetre__Bouton__normal.html">00068</a> <span class="keyword">struct </span><a class="code" href="structFenetre__Bouton__normal.html">Fenetre_Bouton_normal</a>
<a name="l00069"></a>00069 {
<a name="l00070"></a><a class="code" href="structFenetre__Bouton__normal.html#3f435534c22e257474c2257c45819638">00070</a> <span class="keywordtype">short</span> <a class="code" href="structFenetre__Bouton__normal.html#3f435534c22e257474c2257c45819638">Numero</a>;
<a name="l00071"></a><a class="code" href="structFenetre__Bouton__normal.html#e9416062b6197cdadd135a7b7b436465">00071</a> word <a class="code" href="structFenetre__Bouton__normal.html#e9416062b6197cdadd135a7b7b436465">Pos_X</a>;
<a name="l00072"></a><a class="code" href="structFenetre__Bouton__normal.html#fa45ece510972be8fe797b104cff19b0">00072</a> word <a class="code" href="structFenetre__Bouton__normal.html#fa45ece510972be8fe797b104cff19b0">Pos_Y</a>;
<a name="l00073"></a><a class="code" href="structFenetre__Bouton__normal.html#a84ac8dfce8127130a2629a1f5ab64b4">00073</a> word <a class="code" href="structFenetre__Bouton__normal.html#a84ac8dfce8127130a2629a1f5ab64b4">Largeur</a>;
<a name="l00074"></a><a class="code" href="structFenetre__Bouton__normal.html#85f0b21840d2af1f6f645a85997feec8">00074</a> word <a class="code" href="structFenetre__Bouton__normal.html#85f0b21840d2af1f6f645a85997feec8">Hauteur</a>;
<a name="l00075"></a><a class="code" href="structFenetre__Bouton__normal.html#6b6ebd0b9637fd0d2997a34b5c6db5c2">00075</a> byte <a class="code" href="structFenetre__Bouton__normal.html#6b6ebd0b9637fd0d2997a34b5c6db5c2">Clickable</a>;
<a name="l00076"></a><a class="code" href="structFenetre__Bouton__normal.html#295c80f4db4abdd788fe918bd49f1825">00076</a> byte <a class="code" href="structFenetre__Bouton__normal.html#295c80f4db4abdd788fe918bd49f1825">Repetable</a>;
<a name="l00077"></a><a class="code" href="structFenetre__Bouton__normal.html#f95bcc8adcb40c8ac808b744df555da9">00077</a> word <a class="code" href="structFenetre__Bouton__normal.html#f95bcc8adcb40c8ac808b744df555da9">Raccourci</a>;
<a name="l00078"></a><a class="code" href="structFenetre__Bouton__normal.html#40ec09c29622d1fa1a04cabb0002423b">00078</a> <span class="keyword">struct </span><a class="code" href="structFenetre__Bouton__normal.html">Fenetre_Bouton_normal</a> * <a class="code" href="structFenetre__Bouton__normal.html#40ec09c29622d1fa1a04cabb0002423b">Next</a>;
<a name="l00079"></a>00079 };
<a name="l00080"></a>00080
<a name="l00081"></a><a class="code" href="structFenetre__Bouton__palette.html">00081</a> <span class="keyword">struct </span><a class="code" href="structFenetre__Bouton__palette.html">Fenetre_Bouton_palette</a>
<a name="l00082"></a>00082 {
<a name="l00083"></a><a class="code" href="structFenetre__Bouton__palette.html#18c6ee12249a46f85beac919e9551628">00083</a> <span class="keywordtype">short</span> <a class="code" href="structFenetre__Bouton__palette.html#18c6ee12249a46f85beac919e9551628">Numero</a>;
<a name="l00084"></a><a class="code" href="structFenetre__Bouton__palette.html#1848067101e5c87204740adeebe5eedb">00084</a> word <a class="code" href="structFenetre__Bouton__palette.html#1848067101e5c87204740adeebe5eedb">Pos_X</a>;
<a name="l00085"></a><a class="code" href="structFenetre__Bouton__palette.html#2164fb41d467ce4c29f39b862e2e38ac">00085</a> word <a class="code" href="structFenetre__Bouton__palette.html#2164fb41d467ce4c29f39b862e2e38ac">Pos_Y</a>;
<a name="l00086"></a><a class="code" href="structFenetre__Bouton__palette.html#4fb1741091af7215897a1421bbccf3f9">00086</a> <span class="keyword">struct </span><a class="code" href="structFenetre__Bouton__palette.html">Fenetre_Bouton_palette</a> * <a class="code" href="structFenetre__Bouton__palette.html#4fb1741091af7215897a1421bbccf3f9">Next</a>;
<a name="l00087"></a>00087 };
<a name="l00088"></a>00088
<a name="l00089"></a><a class="code" href="structFenetre__Bouton__scroller.html">00089</a> <span class="keyword">struct </span><a class="code" href="structFenetre__Bouton__scroller.html">Fenetre_Bouton_scroller</a>
<a name="l00090"></a>00090 {
<a name="l00091"></a><a class="code" href="structFenetre__Bouton__scroller.html#9511b861f6ad4b62ce16384c4fbba3da">00091</a> <span class="keywordtype">short</span> <a class="code" href="structFenetre__Bouton__scroller.html#9511b861f6ad4b62ce16384c4fbba3da">Numero</a>;
<a name="l00092"></a><a class="code" href="structFenetre__Bouton__scroller.html#c17bf966b93957dd1ead7c3ab2479c04">00092</a> word <a class="code" href="structFenetre__Bouton__scroller.html#c17bf966b93957dd1ead7c3ab2479c04">Pos_X</a>;
<a name="l00093"></a><a class="code" href="structFenetre__Bouton__scroller.html#e3f9f34a4a2368ca4dc6cf559aae45eb">00093</a> word <a class="code" href="structFenetre__Bouton__scroller.html#e3f9f34a4a2368ca4dc6cf559aae45eb">Pos_Y</a>;
<a name="l00094"></a><a class="code" href="structFenetre__Bouton__scroller.html#b7310f87a1e6629df6edc5506585e48c">00094</a> word <a class="code" href="structFenetre__Bouton__scroller.html#b7310f87a1e6629df6edc5506585e48c">Hauteur</a>;
<a name="l00095"></a><a class="code" href="structFenetre__Bouton__scroller.html#9a391e88e7b51a83d9a19cf721b2bb33">00095</a> word <a class="code" href="structFenetre__Bouton__scroller.html#9a391e88e7b51a83d9a19cf721b2bb33">Nb_elements</a>;
<a name="l00096"></a><a class="code" href="structFenetre__Bouton__scroller.html#18a355432cf5e76cf05a4122938ebf39">00096</a> word <a class="code" href="structFenetre__Bouton__scroller.html#18a355432cf5e76cf05a4122938ebf39">Nb_visibles</a>;
<a name="l00097"></a><a class="code" href="structFenetre__Bouton__scroller.html#967981dc21471853f8e20da7edeb5ab9">00097</a> word <a class="code" href="structFenetre__Bouton__scroller.html#967981dc21471853f8e20da7edeb5ab9">Position</a>;
<a name="l00098"></a><a class="code" href="structFenetre__Bouton__scroller.html#71b56c398bc098f59bb6785ea6128c21">00098</a> word <a class="code" href="structFenetre__Bouton__scroller.html#71b56c398bc098f59bb6785ea6128c21">Hauteur_curseur</a>;
<a name="l00099"></a><a class="code" href="structFenetre__Bouton__scroller.html#4f9949941b0cee721415f020d5ca8884">00099</a> <span class="keyword">struct </span><a class="code" href="structFenetre__Bouton__scroller.html">Fenetre_Bouton_scroller</a> * <a class="code" href="structFenetre__Bouton__scroller.html#4f9949941b0cee721415f020d5ca8884">Next</a>;
<a name="l00100"></a>00100 };
<a name="l00101"></a>00101
<a name="l00102"></a><a class="code" href="structFenetre__Bouton__special.html">00102</a> <span class="keyword">struct </span><a class="code" href="structFenetre__Bouton__special.html">Fenetre_Bouton_special</a>
<a name="l00103"></a>00103 {
<a name="l00104"></a><a class="code" href="structFenetre__Bouton__special.html#bf223c9155ac945fd7733f276b7ad00e">00104</a> <span class="keywordtype">short</span> <a class="code" href="structFenetre__Bouton__special.html#bf223c9155ac945fd7733f276b7ad00e">Numero</a>;
<a name="l00105"></a><a class="code" href="structFenetre__Bouton__special.html#ec77c7250e6d0167bc23e6a39df5de8e">00105</a> word <a class="code" href="structFenetre__Bouton__special.html#ec77c7250e6d0167bc23e6a39df5de8e">Pos_X</a>;
<a name="l00106"></a><a class="code" href="structFenetre__Bouton__special.html#5f141260c5997f246dfc446e6daacbb2">00106</a> word <a class="code" href="structFenetre__Bouton__special.html#5f141260c5997f246dfc446e6daacbb2">Pos_Y</a>;
<a name="l00107"></a><a class="code" href="structFenetre__Bouton__special.html#7e4e8308f8bf18a131efd889a7f1b456">00107</a> word <a class="code" href="structFenetre__Bouton__special.html#7e4e8308f8bf18a131efd889a7f1b456">Largeur</a>;
<a name="l00108"></a><a class="code" href="structFenetre__Bouton__special.html#ae803df19d7eb4a02037dba03d1f3a22">00108</a> word <a class="code" href="structFenetre__Bouton__special.html#ae803df19d7eb4a02037dba03d1f3a22">Hauteur</a>;
<a name="l00109"></a><a class="code" href="structFenetre__Bouton__special.html#3b99fda801ebb150bac04fde7acbfb4d">00109</a> <span class="keyword">struct </span><a class="code" href="structFenetre__Bouton__special.html">Fenetre_Bouton_special</a> * <a class="code" href="structFenetre__Bouton__special.html#3b99fda801ebb150bac04fde7acbfb4d">Next</a>;
<a name="l00110"></a>00110 };
<a name="l00111"></a>00111
<a name="l00112"></a><a class="code" href="structBouton__dropdown__choix.html">00112</a> <span class="keyword">struct </span><a class="code" href="structBouton__dropdown__choix.html">Bouton_dropdown_choix</a>
<a name="l00113"></a>00113 {
<a name="l00114"></a><a class="code" href="structBouton__dropdown__choix.html#cbee17db89c290526cf162e6265db851">00114</a> <span class="keywordtype">short</span> <a class="code" href="structBouton__dropdown__choix.html#cbee17db89c290526cf162e6265db851">Numero</a>;
<a name="l00115"></a><a class="code" href="structBouton__dropdown__choix.html#3c5dd65b30830704cdc59dccd0f0e5f9">00115</a> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="structBouton__dropdown__choix.html#3c5dd65b30830704cdc59dccd0f0e5f9">Libelle</a>;
<a name="l00116"></a><a class="code" href="structBouton__dropdown__choix.html#82a1fe9e6d99ee5a303fc89d6029f5cb">00116</a> <span class="keyword">struct </span><a class="code" href="structBouton__dropdown__choix.html">Bouton_dropdown_choix</a> * <a class="code" href="structBouton__dropdown__choix.html#82a1fe9e6d99ee5a303fc89d6029f5cb">Next</a>;
<a name="l00117"></a>00117 };
<a name="l00118"></a>00118
<a name="l00119"></a><a class="code" href="structFenetre__Bouton__dropdown.html">00119</a> <span class="keyword">struct </span><a class="code" href="structFenetre__Bouton__dropdown.html">Fenetre_Bouton_dropdown</a>
<a name="l00120"></a>00120 {
<a name="l00121"></a><a class="code" href="structFenetre__Bouton__dropdown.html#b899c5b2597fdf07d48b35e3201ff6a9">00121</a> <span class="keywordtype">short</span> <a class="code" href="structFenetre__Bouton__dropdown.html#b899c5b2597fdf07d48b35e3201ff6a9">Numero</a>;
<a name="l00122"></a><a class="code" href="structFenetre__Bouton__dropdown.html#c1c3ea2d9d1a4dae001f69213894df62">00122</a> word <a class="code" href="structFenetre__Bouton__dropdown.html#c1c3ea2d9d1a4dae001f69213894df62">Pos_X</a>;
<a name="l00123"></a><a class="code" href="structFenetre__Bouton__dropdown.html#f7e15461eca8c69898e5d4fbc88eb6ac">00123</a> word <a class="code" href="structFenetre__Bouton__dropdown.html#f7e15461eca8c69898e5d4fbc88eb6ac">Pos_Y</a>;
<a name="l00124"></a><a class="code" href="structFenetre__Bouton__dropdown.html#9640e0c4dfe4655e78f79868da3ae05b">00124</a> word <a class="code" href="structFenetre__Bouton__dropdown.html#9640e0c4dfe4655e78f79868da3ae05b">Largeur</a>;
<a name="l00125"></a><a class="code" href="structFenetre__Bouton__dropdown.html#61b37b3cfbf7cd578282c7a66f57efb4">00125</a> word <a class="code" href="structFenetre__Bouton__dropdown.html#61b37b3cfbf7cd578282c7a66f57efb4">Hauteur</a>;
<a name="l00126"></a><a class="code" href="structFenetre__Bouton__dropdown.html#134684ad64344b17550a4ba498a170a7">00126</a> byte <a class="code" href="structFenetre__Bouton__dropdown.html#134684ad64344b17550a4ba498a170a7">Affiche_choix</a>; <span class="comment">// The selected item's label is printed in the dropdown area</span>
<a name="l00127"></a><a class="code" href="structFenetre__Bouton__dropdown.html#40ea3d373feb5fb927a7833f9973b8b0">00127</a> byte <a class="code" href="structFenetre__Bouton__dropdown.html#40ea3d373feb5fb927a7833f9973b8b0">Affiche_centre</a>; <span class="comment">// Center labels (otherwise, align left)</span>
<a name="l00128"></a><a class="code" href="structFenetre__Bouton__dropdown.html#02a931140ca88f1bb379e5c48899354f">00128</a> byte <a class="code" href="structFenetre__Bouton__dropdown.html#02a931140ca88f1bb379e5c48899354f">Affiche_fleche</a>; <span class="comment">// Display a "down" arrow box in top right</span>
<a name="l00129"></a><a class="code" href="structFenetre__Bouton__dropdown.html#761c05356abc9830fc89d01143a3d8c6">00129</a> byte <a class="code" href="structFenetre__Bouton__dropdown.html#761c05356abc9830fc89d01143a3d8c6">Bouton_actif</a>; <span class="comment">// Mouse button: A_GAUCHE || A_DROITE || (A_GAUCHE|A_DROITE)</span>
<a name="l00130"></a><a class="code" href="structFenetre__Bouton__dropdown.html#62abbe18c470150c0807a1564abe5ecd">00130</a> word <a class="code" href="structFenetre__Bouton__dropdown.html#62abbe18c470150c0807a1564abe5ecd">Largeur_choix</a>; <span class="comment">// 0 for "same as control"</span>
<a name="l00131"></a><a class="code" href="structFenetre__Bouton__dropdown.html#2d2c009c6d0811d8547830334d2f7d03">00131</a> <span class="keyword">struct </span><a class="code" href="structBouton__dropdown__choix.html">Bouton_dropdown_choix</a> * <a class="code" href="structFenetre__Bouton__dropdown.html#2d2c009c6d0811d8547830334d2f7d03">Premier_choix</a>;
<a name="l00132"></a><a class="code" href="structFenetre__Bouton__dropdown.html#035d486d2c0e3154067bccf58d48e0b4">00132</a> <span class="keyword">struct </span><a class="code" href="structFenetre__Bouton__dropdown.html">Fenetre_Bouton_dropdown</a> * <a class="code" href="structFenetre__Bouton__dropdown.html#035d486d2c0e3154067bccf58d48e0b4">Next</a>;
<a name="l00133"></a>00133 };
<a name="l00134"></a>00134
<a name="l00135"></a>00135
<a name="l00136"></a><a class="code" href="structT__Drive.html">00136</a> <span class="keyword">struct </span><a class="code" href="structT__Drive.html">T_Drive</a>
<a name="l00137"></a>00137 {
<a name="l00138"></a><a class="code" href="structT__Drive.html#c152981b9d1f19081d6cca49e84df709">00138</a> <span class="keywordtype">char</span> <a class="code" href="structT__Drive.html#c152981b9d1f19081d6cca49e84df709">Lettre</a>;
<a name="l00139"></a><a class="code" href="structT__Drive.html#41e7720b82f41ffc0af8d17e1b2ad003">00139</a> byte <a class="code" href="structT__Drive.html#41e7720b82f41ffc0af8d17e1b2ad003">Type</a>; <span class="comment">// 0: Diskette 3.5" / 1: Diskette 5.25" / 2: HDD / 3: CD-ROM / 4: Logique</span>
<a name="l00140"></a><a class="code" href="structT__Drive.html#5748cef4d28562be87fdedffc32cbcfd">00140</a> <span class="keywordtype">char</span> *<a class="code" href="structT__Drive.html#5748cef4d28562be87fdedffc32cbcfd">Chemin</a>; <span class="comment">// Reservé pour "x:\", ou "/", "DF0:", etc.</span>
<a name="l00141"></a>00141 };
<a name="l00142"></a>00142
<a name="l00143"></a>00143
<a name="l00144"></a>00144 <span class="comment">// Déclaration du type d'élément qu'on va mémoriser dans la liste:</span>
<a name="l00145"></a><a class="code" href="structElement__de__liste__de__fileselect.html">00145</a> <span class="keyword">struct </span><a class="code" href="structElement__de__liste__de__fileselect.html">Element_de_liste_de_fileselect</a>
<a name="l00146"></a>00146 {
<a name="l00147"></a><a class="code" href="structElement__de__liste__de__fileselect.html#121bd22bd28a5e9678e338c73dc1ae55">00147</a> <span class="keywordtype">char</span> <a class="code" href="structElement__de__liste__de__fileselect.html#121bd22bd28a5e9678e338c73dc1ae55">NomAbrege</a>[13]; <span class="comment">// Le nom tel qu'affiché dans le fileselector</span>
<a name="l00148"></a><a class="code" href="structElement__de__liste__de__fileselect.html#db2283354b8c514dfa5a464a6d1fb86a">00148</a> <span class="keywordtype">char</span> <a class="code" href="structElement__de__liste__de__fileselect.html#db2283354b8c514dfa5a464a6d1fb86a">NomComplet</a>[256]; <span class="comment">// Le nom du fichier ou du répertoire</span>
<a name="l00149"></a><a class="code" href="structElement__de__liste__de__fileselect.html#90ddc90c354bcb524c61d412b0b0b424">00149</a> byte <a class="code" href="structElement__de__liste__de__fileselect.html#90ddc90c354bcb524c61d412b0b0b424">Type</a>; <span class="comment">// Type d'élément : 0 = Fichier, 1 = Répertoire, 2 = Lecteur</span>
<a name="l00150"></a>00150
<a name="l00151"></a>00151 <span class="comment">// données de chaînage de la liste</span>
<a name="l00152"></a><a class="code" href="structElement__de__liste__de__fileselect.html#bafdc5bdf5163124afc1d8fcebff1545">00152</a> <span class="keyword">struct </span><a class="code" href="structElement__de__liste__de__fileselect.html">Element_de_liste_de_fileselect</a> * <a class="code" href="structElement__de__liste__de__fileselect.html#bafdc5bdf5163124afc1d8fcebff1545">Suivant</a>;
<a name="l00153"></a><a class="code" href="structElement__de__liste__de__fileselect.html#c803f9073b74c4849f00acea0eec776d">00153</a> <span class="keyword">struct </span><a class="code" href="structElement__de__liste__de__fileselect.html">Element_de_liste_de_fileselect</a> * <a class="code" href="structElement__de__liste__de__fileselect.html#c803f9073b74c4849f00acea0eec776d">Precedent</a>;
<a name="l00154"></a>00154 };
<a name="l00155"></a>00155
<a name="l00156"></a><a class="code" href="structT__TABLEAIDE.html">00156</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
<a name="l00157"></a><a class="code" href="structT__TABLEAIDE.html#c6f34db0e269ff157a9509f54ffd22f3">00157</a> <span class="keywordtype">char</span> type;
<a name="l00158"></a><a class="code" href="structT__TABLEAIDE.html#118c6dd0cef41b6f712b4ef5a329722a">00158</a> <span class="keywordtype">char</span> * texte;
<a name="l00159"></a><a class="code" href="structT__TABLEAIDE.html#4f34722785a0e702241ec311f87a5524">00159</a> <span class="keywordtype">int</span> valeur;
<a name="l00160"></a>00160 } <a class="code" href="structT__TABLEAIDE.html">T_TABLEAIDE</a>;
<a name="l00161"></a>00161
<a name="l00162"></a>00162 <span class="comment">// Déclaration d'une section d'aide:</span>
<a name="l00163"></a><a class="code" href="structSection__d__aide.html">00163</a> <span class="keyword">struct </span><a class="code" href="structSection__d__aide.html">Section_d_aide</a>
<a name="l00164"></a>00164 {
<a name="l00165"></a><a class="code" href="structSection__d__aide.html#52433af96ec11fe11729a0c22e74b9d5">00165</a> <span class="keyword">const</span> <a class="code" href="structT__TABLEAIDE.html">T_TABLEAIDE</a>* <a class="code" href="structSection__d__aide.html#52433af96ec11fe11729a0c22e74b9d5">Table_aide</a>; <span class="comment">// Pointeur sur le début de la table d'aide</span>
<a name="l00166"></a><a class="code" href="structSection__d__aide.html#7027a73c090b5194aa9ced5886cb45bb">00166</a> word <a class="code" href="structSection__d__aide.html#7027a73c090b5194aa9ced5886cb45bb">Nombre_de_lignes</a>;
<a name="l00167"></a>00167 };
<a name="l00168"></a>00168
<a name="l00169"></a>00169 <span class="comment">// Déclaration d'une info sur un dégradé</span>
<a name="l00170"></a><a class="code" href="structT__Degrade__Tableau.html">00170</a> <span class="keyword">struct </span><a class="code" href="structT__Degrade__Tableau.html">T_Degrade_Tableau</a>
<a name="l00171"></a>00171 {
<a name="l00172"></a><a class="code" href="structT__Degrade__Tableau.html#dc26a388193d20d72219284b09706811">00172</a> byte <a class="code" href="structT__Degrade__Tableau.html#dc26a388193d20d72219284b09706811">Debut</a>; <span class="comment">// Première couleur du dégradé</span>
<a name="l00173"></a><a class="code" href="structT__Degrade__Tableau.html#86923382be79e0eedfba3be9241fc625">00173</a> byte <a class="code" href="structT__Degrade__Tableau.html#86923382be79e0eedfba3be9241fc625">Fin</a>; <span class="comment">// Dernière couleur du dégradé</span>
<a name="l00174"></a><a class="code" href="structT__Degrade__Tableau.html#4d17e0afc2af639f62892a51a19b6b59">00174</a> dword <a class="code" href="structT__Degrade__Tableau.html#4d17e0afc2af639f62892a51a19b6b59">Inverse</a>; <span class="comment">// "Le dégradé va de Fin à Debut" //INT</span>
<a name="l00175"></a><a class="code" href="structT__Degrade__Tableau.html#53b539965ae796e1f8127e91dc68571c">00175</a> dword <a class="code" href="structT__Degrade__Tableau.html#53b539965ae796e1f8127e91dc68571c">Melange</a>; <span class="comment">// Valeur de mélange du dégradé (0-255) //LONG</span>
<a name="l00176"></a><a class="code" href="structT__Degrade__Tableau.html#5c73689a117064fef931b00657ab25d5">00176</a> dword <a class="code" href="structT__Degrade__Tableau.html#5c73689a117064fef931b00657ab25d5">Technique</a>; <span class="comment">// Technique à utiliser (0-2) //INT</span>
<a name="l00177"></a>00177 } <a class="code" href="struct____attribute____.html">__attribute__</a>((__packed__));
<a name="l00178"></a>00178
<a name="l00179"></a>00179 <span class="comment">// Déclaration d'une info de shade</span>
<a name="l00180"></a><a class="code" href="structT__Shade.html">00180</a> <span class="keyword">struct </span><a class="code" href="structT__Shade.html">T_Shade</a>
<a name="l00181"></a>00181 {
<a name="l00182"></a><a class="code" href="structT__Shade.html#e47628142ca050a16dadbec1171e9739">00182</a> word <a class="code" href="structT__Shade.html#e47628142ca050a16dadbec1171e9739">Liste</a>[512]; <span class="comment">// Liste de couleurs</span>
<a name="l00183"></a><a class="code" href="structT__Shade.html#42eac7e72481e9075d9ca918ff7116aa">00183</a> byte <a class="code" href="structT__Shade.html#42eac7e72481e9075d9ca918ff7116aa">Pas</a>; <span class="comment">// Pas d'incrémentation/décrémentation</span>
<a name="l00184"></a><a class="code" href="structT__Shade.html#da12ddda61fa564b80276e614dbfbe52">00184</a> byte <a class="code" href="structT__Shade.html#da12ddda61fa564b80276e614dbfbe52">Mode</a>; <span class="comment">// Mode d'utilisation (Normal/Boucle/Non-saturé)</span>
<a name="l00185"></a>00185 };
<a name="l00186"></a>00186
<a name="l00187"></a>00187
<a name="l00188"></a>00188
<a name="l00189"></a>00189 <span class="comment">// Structure des données dans le fichier de config.</span>
<a name="l00190"></a>00190
<a name="l00191"></a><a class="code" href="structConfig__Mode__video.html">00191</a> <span class="keyword">struct </span><a class="code" href="structConfig__Mode__video.html">Config_Mode_video</a>
<a name="l00192"></a>00192 {
<a name="l00193"></a><a class="code" href="structConfig__Mode__video.html#4661dc2fec049696c8edb9de0190063c">00193</a> byte <a class="code" href="structConfig__Mode__video.html#4661dc2fec049696c8edb9de0190063c">Etat</a>;
<a name="l00194"></a><a class="code" href="structConfig__Mode__video.html#f20d7134a719fc77db8f419884cfcf83">00194</a> word <a class="code" href="structConfig__Mode__video.html#f20d7134a719fc77db8f419884cfcf83">Largeur</a>;
<a name="l00195"></a><a class="code" href="structConfig__Mode__video.html#4ddce306cda3ec29c7374ae302c93c71">00195</a> word <a class="code" href="structConfig__Mode__video.html#4ddce306cda3ec29c7374ae302c93c71">Hauteur</a>;
<a name="l00196"></a>00196 } <a class="code" href="struct____attribute____.html">__attribute__</a>((__packed__));
<a name="l00197"></a>00197
<a name="l00198"></a><a class="code" href="structConfig__Header.html">00198</a> <span class="keyword">struct </span><a class="code" href="structConfig__Header.html">Config_Header</a>
<a name="l00199"></a>00199 {
<a name="l00200"></a><a class="code" href="structConfig__Header.html#84ab62388734361dd383fdc652bd2f5e">00200</a> <span class="keywordtype">char</span> <a class="code" href="structConfig__Header.html#84ab62388734361dd383fdc652bd2f5e">Signature</a>[3];
<a name="l00201"></a><a class="code" href="structConfig__Header.html#71dfdf16e93cb0e4f9ce1f9c6d6c7412">00201</a> byte <a class="code" href="structConfig__Header.html#71dfdf16e93cb0e4f9ce1f9c6d6c7412">Version1</a>;
<a name="l00202"></a><a class="code" href="structConfig__Header.html#56b6f450b0d5915176b044eadee5aa73">00202</a> byte <a class="code" href="structConfig__Header.html#56b6f450b0d5915176b044eadee5aa73">Version2</a>;
<a name="l00203"></a><a class="code" href="structConfig__Header.html#a6c25a234cca3e337fd6c9f02d434335">00203</a> byte <a class="code" href="structConfig__Header.html#a6c25a234cca3e337fd6c9f02d434335">Beta1</a>;
<a name="l00204"></a><a class="code" href="structConfig__Header.html#e91bcdb49a7ba3a002660876c5ab1324">00204</a> byte <a class="code" href="structConfig__Header.html#e91bcdb49a7ba3a002660876c5ab1324">Beta2</a>;
<a name="l00205"></a>00205 } <a class="code" href="struct____attribute____.html">__attribute__</a>((__packed__));
<a name="l00206"></a>00206
<a name="l00207"></a><a class="code" href="structConfig__Chunk.html">00207</a> <span class="keyword">struct </span><a class="code" href="structConfig__Chunk.html">Config_Chunk</a>
<a name="l00208"></a>00208 {
<a name="l00209"></a><a class="code" href="structConfig__Chunk.html#c13df1e9f974d668b55674da0d255c0b">00209</a> byte <a class="code" href="structConfig__Chunk.html#c13df1e9f974d668b55674da0d255c0b">Numero</a>;
<a name="l00210"></a><a class="code" href="structConfig__Chunk.html#2fd963af3dec9912e6b68a245f76a080">00210</a> word <a class="code" href="structConfig__Chunk.html#2fd963af3dec9912e6b68a245f76a080">Taille</a>;
<a name="l00211"></a>00211 } <a class="code" href="struct____attribute____.html">__attribute__</a>((__packed__));
<a name="l00212"></a>00212
<a name="l00213"></a><a class="code" href="structConfig__Infos__touche.html">00213</a> <span class="keyword">struct </span><a class="code" href="structConfig__Infos__touche.html">Config_Infos_touche</a>
<a name="l00214"></a>00214 {
<a name="l00215"></a><a class="code" href="structConfig__Infos__touche.html#096191abcd48f6dfb5284a27137dcb19">00215</a> word <a class="code" href="structConfig__Infos__touche.html#096191abcd48f6dfb5284a27137dcb19">Numero</a>;
<a name="l00216"></a><a class="code" href="structConfig__Infos__touche.html#9d99044c6bd26e3d5f43cca3a10dc8db">00216</a> word <a class="code" href="structConfig__Infos__touche.html#9d99044c6bd26e3d5f43cca3a10dc8db">Touche</a>;
<a name="l00217"></a><a class="code" href="structConfig__Infos__touche.html#01a63ee86fe3e926cf6125c42709075b">00217</a> word <a class="code" href="structConfig__Infos__touche.html#01a63ee86fe3e926cf6125c42709075b">Touche2</a>;
<a name="l00218"></a>00218 } <a class="code" href="struct____attribute____.html">__attribute__</a>((__packed__));
<a name="l00219"></a>00219
<a name="l00220"></a>00220
<a name="l00221"></a>00221
<a name="l00222"></a>00222 <span class="comment">// Structures utilisées pour les descriptions de pages et de liste de pages.</span>
<a name="l00223"></a>00223 <span class="comment">// Lorsqu'on gèrera les animations, il faudra aussi des listes de listes de</span>
<a name="l00224"></a>00224 <span class="comment">// pages.</span>
<a name="l00225"></a>00225
<a name="l00226"></a>00226 <span class="comment">// Ces structures sont manipulées à travers des fonctions de gestion du</span>
<a name="l00227"></a>00227 <span class="comment">// backup dans "graph.c".</span>
<a name="l00228"></a>00228
<a name="l00229"></a><a class="code" href="structS__Page.html">00229</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00230"></a>00230 {
<a name="l00231"></a><a class="code" href="structS__Page.html#e9e4d789ba132b2c0b61aea077c49c01">00231</a> byte * Image; <span class="comment">// Bitmap de l'image</span>
<a name="l00232"></a><a class="code" href="structS__Page.html#5c52a8db99246b888961933beee5faac">00232</a> <span class="keywordtype">int</span> Largeur; <span class="comment">// Largeur du bitmap</span>
<a name="l00233"></a><a class="code" href="structS__Page.html#724ad656420d139c2cf41d547b9f9ada">00233</a> <span class="keywordtype">int</span> Hauteur; <span class="comment">// Hauteur du bitmap</span>
<a name="l00234"></a><a class="code" href="structS__Page.html#c768e4dbe1f413a743e35b6bab1c2615">00234</a> T_Palette Palette; <span class="comment">// Palette de l'image</span>
<a name="l00235"></a>00235
<a name="l00236"></a><a class="code" href="structS__Page.html#6102d8004bf62abab2b03b98ea074f73">00236</a> <span class="keywordtype">char</span> Commentaire[TAILLE_COMMENTAIRE+1]; <span class="comment">// Commentaire de l'image</span>
<a name="l00237"></a>00237
<a name="l00238"></a><a class="code" href="structS__Page.html#a517a5ec8b176eaecb887719e55c8551">00238</a> <span class="keywordtype">char</span> Repertoire_fichier[TAILLE_CHEMIN_FICHIER]; <span class="comment">// |_ Nom complet =</span>
<a name="l00239"></a><a class="code" href="structS__Page.html#4b36440177d82cfff0bb1f7b1b330258">00239</a> <span class="keywordtype">char</span> Nom_fichier[TAILLE_CHEMIN_FICHIER]; <span class="comment">// | Repertoire_fichier+"\"+Nom_fichier</span>
<a name="l00240"></a><a class="code" href="structS__Page.html#9265b30950b97665927dd645da6f268a">00240</a> byte Format_fichier; <span class="comment">// Format auquel il faut lire et écrire le fichier</span>
<a name="l00241"></a>00241
<a name="l00242"></a>00242 <span class="comment">/*</span>
<a name="l00243"></a>00243 <span class="comment"> short Decalage_X; // Décalage en X de l'écran par rapport au début de l'image</span>
<a name="l00244"></a>00244 <span class="comment"> short Decalage_Y; // Décalage en Y de l'écran par rapport au début de l'image</span>
<a name="l00245"></a>00245 <span class="comment"> short Ancien_Decalage_X; // Le même avant le passage en mode loupe</span>
<a name="l00246"></a>00246 <span class="comment"> short Ancien_Decalage_Y; // Le même avant le passage en mode loupe</span>
<a name="l00247"></a>00247 <span class="comment"></span>
<a name="l00248"></a>00248 <span class="comment"> short Split; // Position en X du bord gauche du split de la loupe</span>
<a name="l00249"></a>00249 <span class="comment"> short X_Zoom; // (Menu_Facteur_X) + Position en X du bord droit du split de la loupe</span>
<a name="l00250"></a>00250 <span class="comment"> float Proportion_split; // Proportion de la zone non-zoomée par rapport à l'écran</span>
<a name="l00251"></a>00251 <span class="comment"></span>
<a name="l00252"></a>00252 <span class="comment"> byte Loupe_Mode; // On est en mode loupe</span>
<a name="l00253"></a>00253 <span class="comment"> word Loupe_Facteur; // Facteur de zoom</span>
<a name="l00254"></a>00254 <span class="comment"> word Loupe_Hauteur; // Largeur de la fenêtre de zoom</span>
<a name="l00255"></a>00255 <span class="comment"> word Loupe_Largeur; // Hauteur de la fenêtre de zoom</span>
<a name="l00256"></a>00256 <span class="comment"> short Loupe_Decalage_X; // Decalage horizontal de la fenêtre de zoom</span>
<a name="l00257"></a>00257 <span class="comment"> short Loupe_Decalage_Y; // Decalage vertical de la fenêtre de zoom</span>
<a name="l00258"></a>00258 <span class="comment">*/</span>
<a name="l00259"></a>00259 } <a class="code" href="structS__Page.html">S_Page</a>;
<a name="l00260"></a>00260
<a name="l00261"></a><a class="code" href="structS__Liste__de__pages.html">00261</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00262"></a>00262 {
<a name="l00263"></a><a class="code" href="structS__Liste__de__pages.html#cd70cc1aaa5037e3bc75ea3bbae4884c">00263</a> <span class="keywordtype">int</span> Taille_liste; <span class="comment">// Nb de S_Page dans le vecteur "Pages"</span>
<a name="l00264"></a><a class="code" href="structS__Liste__de__pages.html#b6c66233189bf360ccac3bbb244dda9d">00264</a> <span class="keywordtype">int</span> Nb_pages_allouees; <span class="comment">// Nb de S_Page désignant des pages allouées</span>
<a name="l00265"></a><a class="code" href="structS__Liste__de__pages.html#f0c4a76fed978b0fc4fe200ca71d9573">00265</a> <a class="code" href="structS__Page.html">S_Page</a> * Pages; <span class="comment">// Liste de pages (Taille_liste éléments)</span>
<a name="l00266"></a>00266 } <a class="code" href="structS__Liste__de__pages.html">S_Liste_de_pages</a>;
<a name="l00267"></a>00267
<a name="l00268"></a>00268
<a name="l00269"></a>00269
<a name="l00270"></a>00270 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Mar 6 16:29:55 2009 for GrafX2 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
</body>
</html>