⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 animation_8h-source.htm

📁 MINIGUI1.6开发API
💻 HTM
字号:
<!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>MiniGUI V1.6.10 API Reference: animation.h Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.2 --><div class="qindex"><a class="qindex" href="index.htm">Main&nbsp;Page</a> | <a class="qindex" href="modules.htm">Modules</a> | <a class="qindex" href="classes.htm">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.htm">Data&nbsp;Structures</a> | <a class="qindex" href="dirs.htm">Directories</a> | <a class="qindex" href="files.htm">File&nbsp;List</a> | <a class="qindex" href="functions.htm">Data&nbsp;Fields</a> | <a class="qindex" href="globals.htm">Globals</a> | <a class="qindex" href="pages.htm">Related&nbsp;Pages</a></div><div class="nav"><a class="el" href="dir_000000.htm">ext</a>&nbsp;/&nbsp;<a class="el" href="dir_000001.htm">include</a>&nbsp;/&nbsp;<a class="el" href="dir_000002.htm">ext</a></div><h1>animation.h</h1><a href="animation_8h.htm">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 00021 <span class="comment">/*</span>00022 <span class="comment"> * $Id: animation.h 7370 2007-08-16 05:29:44Z xgwang $</span>00023 <span class="comment"> *</span>00024 <span class="comment"> *             MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks, </span>00025 <span class="comment"> *                     pSOS, ThreadX, NuCleus, OSE, and Win32.</span>00026 <span class="comment"> *</span>00027 <span class="comment"> *             Copyright (C) 2002-2007 Feynman Software.</span>00028 <span class="comment"> *             Copyright (C) 1998-2002 Wei Yongming.</span>00029 <span class="comment"> */</span>00030 00031 <span class="preprocessor">#ifndef EXT_ANIMATION_H</span>00032 <span class="preprocessor"></span><span class="preprocessor">#define EXT_ANIMATION_H</span>00033 <span class="preprocessor"></span>00034 <span class="preprocessor">#ifdef  __cplusplus</span>00035 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {00036 <span class="preprocessor">#endif</span>00037 <span class="preprocessor"></span><a name="l00054"></a><a class="code" href="struct__ANIMATIONFRAME.htm">00054</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__ANIMATIONFRAME.htm">_ANIMATIONFRAME</a>00055 {<a name="l00065"></a><a class="code" href="struct__ANIMATIONFRAME.htm#o0">00065</a>     <span class="keywordtype">int</span> <a class="code" href="struct__ANIMATIONFRAME.htm#o0">disposal</a>;<a name="l00067"></a><a class="code" href="struct__ANIMATIONFRAME.htm#o1">00067</a>     <span class="keywordtype">int</span> <a class="code" href="struct__ANIMATIONFRAME.htm#o1">off_x</a>;<a name="l00069"></a><a class="code" href="struct__ANIMATIONFRAME.htm#o2">00069</a>     <span class="keywordtype">int</span> <a class="code" href="struct__ANIMATIONFRAME.htm#o2">off_y</a>;<a name="l00071"></a><a class="code" href="struct__ANIMATIONFRAME.htm#o3">00071</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="struct__ANIMATIONFRAME.htm#o3">width</a>;<a name="l00073"></a><a class="code" href="struct__ANIMATIONFRAME.htm#o4">00073</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="struct__ANIMATIONFRAME.htm#o4">height</a>;00074 <a name="l00076"></a><a class="code" href="struct__ANIMATIONFRAME.htm#o5">00076</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="struct__ANIMATIONFRAME.htm#o5">delay_time</a>;00077 <span class="preprocessor">#ifdef _USE_NEWGAL</span>00078 <span class="preprocessor"></span><a name="l00079"></a><a class="code" href="struct__ANIMATIONFRAME.htm#o6">00079</a>     <a class="code" href="group__handles.htm#ga2">HDC</a> <a class="code" href="struct__ANIMATIONFRAME.htm#o6">mem_dc</a>;<a name="l00081"></a><a class="code" href="struct__ANIMATIONFRAME.htm#o7">00081</a>     <a class="code" href="group__basic__types.htm#ga0">Uint8</a>* <a class="code" href="struct__ANIMATIONFRAME.htm#o7">bits</a>;00082 <span class="preprocessor">#else</span>00083 <span class="preprocessor"></span>00084     <a class="code" href="struct__BITMAP.htm">BITMAP</a> bmp;00085 <span class="preprocessor">#endif</span>00086 <span class="preprocessor"></span><a name="l00088"></a><a class="code" href="struct__ANIMATIONFRAME.htm#o8">00088</a>     <span class="keyword">struct </span><a class="code" href="struct__ANIMATIONFRAME.htm">_ANIMATIONFRAME</a>* <a class="code" href="struct__ANIMATIONFRAME.htm#o8">next</a>;<a name="l00090"></a><a class="code" href="struct__ANIMATIONFRAME.htm#o9">00090</a>     <span class="keyword">struct </span><a class="code" href="struct__ANIMATIONFRAME.htm">_ANIMATIONFRAME</a>* <a class="code" href="struct__ANIMATIONFRAME.htm#o9">prev</a>;00091 } <a class="code" href="struct__ANIMATIONFRAME.htm">ANIMATIONFRAME</a>;00092 <a name="l00094"></a><a class="code" href="struct__ANIMATION.htm">00094</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__ANIMATION.htm">_ANIMATION</a>00095 {<a name="l00097"></a><a class="code" href="struct__ANIMATION.htm#o0">00097</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="struct__ANIMATION.htm#o0">width</a>;<a name="l00099"></a><a class="code" href="struct__ANIMATION.htm#o1">00099</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="struct__ANIMATION.htm#o1">height</a>;00100 <a name="l00102"></a><a class="code" href="struct__ANIMATION.htm#o2">00102</a>     <a class="code" href="struct__RGB.htm">RGB</a> <a class="code" href="struct__ANIMATION.htm#o2">bk</a>;00103 <a name="l00105"></a><a class="code" href="struct__ANIMATION.htm#o3">00105</a>     <span class="keywordtype">int</span> <a class="code" href="struct__ANIMATION.htm#o3">nr_frames</a>;<a name="l00110"></a><a class="code" href="struct__ANIMATION.htm#o4">00110</a>     <span class="keywordtype">int</span> <a class="code" href="struct__ANIMATION.htm#o4">time_unit</a>;<a name="l00112"></a><a class="code" href="struct__ANIMATION.htm#o5">00112</a>     <a class="code" href="struct__ANIMATIONFRAME.htm">ANIMATIONFRAME</a>* <a class="code" href="struct__ANIMATION.htm#o5">frames</a>;00113 } <a class="code" href="struct__ANIMATION.htm">ANIMATION</a>;00114 00129 <a class="code" href="struct__ANIMATION.htm">ANIMATION</a>* <a class="code" href="group__mgext__ctrl__animation.htm#ga2">CreateAnimationFromGIF89a</a> (<a class="code" href="group__handles.htm#ga2">HDC</a> hdc, <a class="code" href="struct__MG__RWops.htm">MG_RWops</a>* area);00130 00145 MGEXT_EXPORT <a class="code" href="struct__ANIMATION.htm">ANIMATION</a>* <a class="code" href="group__mgext__ctrl__animation.htm#ga3">CreateAnimationFromGIF89aFile</a> (<a class="code" href="group__handles.htm#ga2">HDC</a> hdc, <span class="keyword">const</span> <span class="keywordtype">char</span>* file);00146 00162 MGEXT_EXPORT <a class="code" href="struct__ANIMATION.htm">ANIMATION</a>* <a class="code" href="group__mgext__ctrl__animation.htm#ga4">CreateAnimationFromGIF89aMem</a> (<a class="code" href="group__handles.htm#ga2">HDC</a> hdc, <span class="keyword">const</span> <span class="keywordtype">void</span>* mem, <span class="keywordtype">int</span> size);00163 00176 MGEXT_EXPORT <span class="keywordtype">void</span> <a class="code" href="group__mgext__ctrl__animation.htm#ga5">DestroyAnimation</a> (<a class="code" href="struct__ANIMATION.htm">ANIMATION</a>* anim, <a class="code" href="group__simple__types.htm#ga0">BOOL</a> free_it);00177 <a name="l00179"></a><a class="code" href="group__mgext__ctrl__animation.htm#ga6">00179</a> <span class="preprocessor">#define CTRL_ANIMATION                  ("Animation")</span>00180 <span class="preprocessor"></span><a name="l00182"></a><a class="code" href="group__mgext__ctrl__animation.htm#ga7">00182</a> <span class="preprocessor">#define ANIMATION_OKAY                  0</span>00183 <span class="preprocessor"></span><a name="l00184"></a><a class="code" href="group__mgext__ctrl__animation.htm#ga8">00184</a> <span class="preprocessor">#define ANIMATION_ERR                   1</span>00185 <span class="preprocessor"></span><a name="l00217"></a><a class="code" href="group__mgext__ctrl__animation__styles.htm#ga0">00217</a> <span class="preprocessor">#define ANS_AUTOLOOP                    0x0001L</span>00218 <span class="preprocessor"></span><a name="l00223"></a><a class="code" href="group__mgext__ctrl__animation__styles.htm#ga1">00223</a> <span class="preprocessor">#define ANS_SCALED                      0x0002L</span>00224 <span class="preprocessor"></span><a name="l00229"></a><a class="code" href="group__mgext__ctrl__animation__styles.htm#ga2">00229</a> <span class="preprocessor">#define ANS_FITTOANI                    0x0004L</span>00230 <span class="preprocessor"></span><a name="l00254"></a><a class="code" href="group__mgext__control__animation__msgs.htm#ga0">00254</a> <span class="preprocessor">#define ANM_SETANIMATION                0xF110</span>00255 <span class="preprocessor"></span><a name="l00271"></a><a class="code" href="group__mgext__control__animation__msgs.htm#ga1">00271</a> <span class="preprocessor">#define ANM_GETANIMATION                0xF111</span>00272 <span class="preprocessor"></span><a name="l00290"></a><a class="code" href="group__mgext__control__animation__msgs.htm#ga2">00290</a> <span class="preprocessor">#define ANM_STARTPLAY                   0xF112</span>00291 <span class="preprocessor"></span><a name="l00308"></a><a class="code" href="group__mgext__control__animation__msgs.htm#ga3">00308</a> <span class="preprocessor">#define ANM_PAUSE_RESUME                0xF113</span>00309 <span class="preprocessor"></span><a name="l00327"></a><a class="code" href="group__mgext__control__animation__msgs.htm#ga4">00327</a> <span class="preprocessor">#define ANM_STOPPLAY                    0xF114</span>00328 <span class="preprocessor"></span>00329 <span class="preprocessor">#define ANM_MSGMAX                      0xF120</span>00330 <span class="preprocessor"></span><a name="l00344"></a><a class="code" href="group__mgext__ctrl__animation.htm#ga9">00344</a> <span class="preprocessor">#define ANNC_CLICKED         1</span>00345 <span class="preprocessor"></span><a name="l00350"></a><a class="code" href="group__mgext__ctrl__animation.htm#ga10">00350</a> <span class="preprocessor">#define ANNC_DBLCLK          2</span>00351 <span class="preprocessor"></span>00358 <span class="preprocessor">#ifdef  __cplusplus</span>00359 <span class="preprocessor"></span>}00360 <span class="preprocessor">#endif</span>00361 <span class="preprocessor"></span>00362 <span class="preprocessor">#endif </span><span class="comment">/* EXT_ANIMATION_H */</span>00363 </pre></div><hr size="1"><address style="align: right;"><small>Generated on Thu Nov 22 15:35:50 2007 for MiniGUI V1.6.10 API Reference by&nbsp;<a href="http://www.doxygen.org/index.html"><img src="http://www.minigui.com/api_ref/1.6.10/doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -