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

📄 minigui_8h-source.htm

📁 MINIGUI1.6开发API
💻 HTM
📖 第 1 页 / 共 5 页
字号:
<!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: minigui.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_000003.htm">include</a></div><h1>minigui.h</h1><a href="minigui_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: minigui.h 7820 2007-10-11 07:29:00Z xwyan $</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 _MGUI_MINIGUI_H</span>00032 <span class="preprocessor"></span><span class="preprocessor">  #define _MGUI_MINIGUI_H</span>00033 <span class="preprocessor"></span>00034 <span class="preprocessor">#include &lt;stdio.h&gt;</span>00035 00036 <span class="preprocessor">#ifdef __cplusplus</span>00037 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {00038 <span class="preprocessor">#endif  </span><span class="comment">/* __cplusplus */</span>00039 00054 <span class="keyword">extern</span> MG_EXPORT <a class="code" href="struct__RECT.htm">RECT</a> <a class="code" href="group__rect__vars.htm#ga0">g_rcScr</a>;00055 <a name="l00064"></a><a class="code" href="group__rect__vars.htm#ga1">00064</a> <span class="preprocessor">#define g_rcDesktop     g_rcScr</span>00065 <span class="preprocessor"></span>00073 <span class="preprocessor">#if defined(_LITE_VERSION) &amp;&amp; !defined(_STAND_ALONE)</span>00074 <span class="preprocessor"></span>00075 <span class="preprocessor">#include &lt;sys/types.h&gt;</span>00076 00084 <span class="keyword">extern</span> MG_EXPORT <a class="code" href="group__simple__types.htm#ga0">BOOL</a> mgIsServer;00085 00095 <span class="keyword">extern</span> MG_EXPORT <span class="keywordtype">void</span>* mgSharedRes;00096 00105 <span class="keyword">extern</span> MG_EXPORT size_t mgSizeRes;00106 00111 <span class="preprocessor">#define LEN_LAYER_NAME      14</span>00112 <span class="preprocessor"></span>00117 <span class="preprocessor">#define LEN_CLIENT_NAME     14</span>00118 <span class="preprocessor"></span>00123 <span class="preprocessor">#define INV_LAYER_HANDLE    0</span>00124 <span class="preprocessor"></span>00125 <span class="keyword">struct </span>_MG_Layer;00126 00128 <span class="keyword">typedef</span> <span class="keyword">struct </span>_MG_Client00129 {00131     <span class="keywordtype">char</span>    name [LEN_CLIENT_NAME + 1];00132 00134     pid_t   pid;00136     uid_t   uid;00138     <span class="keywordtype">int</span>     fd;00139 00141     <a class="code" href="group__simple__types.htm#ga0">BOOL</a>    has_dirty;00143     <a class="code" href="group__win32__types.htm#ga4">DWORD</a>   last_live_time;00145     <a class="code" href="group__win32__types.htm#ga4">DWORD</a>   dwAddData;00146 00148     <span class="keyword">struct  </span>_MG_Client* next;00150     <span class="keyword">struct  </span>_MG_Client* prev;00151 00153     <span class="keyword">struct  </span>_MG_Layer* layer;00154 00156     <span class="keyword">struct </span>GlobalRes* global_res;00157 } MG_Client;00158 00160 <span class="keyword">typedef</span> <span class="keyword">struct </span>_MG_Layer00161 {00163     <span class="keywordtype">char</span>    name [LEN_LAYER_NAME + 1];00164 00166     <a class="code" href="group__win32__types.htm#ga4">DWORD</a>   dwAddData;00167 00169     MG_Client* cli_head;00171     MG_Client* cli_active;00172 00174     <span class="keyword">struct </span>_MG_Layer* next;00176     <span class="keyword">struct </span>_MG_Layer* prev;00177 00179     <span class="keywordtype">void</span>* zorder_info;00181     <span class="keywordtype">int</span>   zorder_shmid;00182 } MG_Layer;00183 00184 <span class="comment">/*screen attr type*/</span>00185 <span class="preprocessor">#define SCREEN_ATTR_ALPHA_CHANNEL    0x01      //alpha channel     </span>00186 <span class="preprocessor"></span><span class="preprocessor">#define SCREEN_ATTR_COLORKEY         0x02      //colorkey</span>00187 <span class="preprocessor"></span><span class="preprocessor">#define SCREEN_ATTR_COLORSPACE       0x03      //colorspace</span>00188 <span class="preprocessor"></span><span class="preprocessor">#define SCREEN_ATTR_ALPHA            0x04</span>00189 <span class="preprocessor"></span><span class="preprocessor">#define SCREEN_NO_EXIST              -99       //screen don't exist</span>00190 <span class="preprocessor"></span>00197 <span class="keyword">extern</span> MG_EXPORT <span class="keywordtype">int</span> mgClientSize;00198 00209 <span class="keyword">extern</span> MG_EXPORT MG_Client* mgClients;00210 00217 <span class="keyword">extern</span> MG_EXPORT MG_Layer* mgTopmostLayer;00218 00225 <span class="keyword">extern</span> MG_EXPORT MG_Layer* mgLayers;00226 00227 <span class="preprocessor">#endif </span><span class="comment">/* _LITE_VERSION &amp;&amp; !_STAND_ALONE */</span>00228 00241 MG_EXPORT <span class="keywordtype">int</span> GUIAPI <a class="code" href="minigui_8h.htm#a112">InitGUI</a> (<span class="keywordtype">int</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> **);00242 00250 MG_EXPORT <span class="keywordtype">void</span> GUIAPI <a class="code" href="minigui_8h.htm#a113">TerminateGUI</a> (<span class="keywordtype">int</span> rcByGUI);00251 00261 MG_EXPORT <span class="keywordtype">void</span> GUIAPI <a class="code" href="minigui_8h.htm#a114">MiniGUIPanic</a> (<span class="keywordtype">int</span> exitcode);00262 00278 <span class="preprocessor">#ifdef _LITE_VERSION</span>00279 <span class="preprocessor"></span>00302 <span class="preprocessor">#define MAX_NR_LISTEN_FD   5</span>00303 <span class="preprocessor"></span>00330 MG_EXPORT <a class="code" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI RegisterListenFD (<span class="keywordtype">int</span> fd, <span class="keywordtype">int</span> type,00331                 <a class="code" href="group__handles.htm#ga1">HWND</a> hwnd, <span class="keywordtype">void</span>* context);00332 00347 MG_EXPORT <a class="code" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI UnregisterListenFD (<span class="keywordtype">int</span> fd);00348 00351 <span class="preprocessor">#ifndef _STAND_ALONE</span>00352 <span class="preprocessor"></span>00370 <span class="preprocessor">#define NAME_SELF_LAYER         ""</span>00371 <span class="preprocessor"></span>00376 <span class="preprocessor">#define NAME_TOPMOST_LAYER      ""</span>00377 <span class="preprocessor"></span>00382 <span class="preprocessor">#define NAME_DEF_LAYER          "mginit"</span>00383 <span class="preprocessor"></span>00418 MG_EXPORT <a class="code" href="group__handles.htm#ga0">GHANDLE</a> GUIAPI JoinLayer (<span class="keyword">const</span> <span class="keywordtype">char</span>* layer_name,00419                 <span class="keyword">const</span> <span class="keywordtype">char</span>* client_name,00420                 <span class="keywordtype">int</span> max_nr_topmosts, <span class="keywordtype">int</span> max_nr_normals);00421 00446 MG_EXPORT <a class="code" href="group__handles.htm#ga0">GHANDLE</a> GUIAPI GetLayerInfo (<span class="keyword">const</span> <span class="keywordtype">char</span>* layer_name,00447                 <span class="keywordtype">int</span>* nr_clients, <a class="code" href="group__simple__types.htm#ga0">BOOL</a>* is_topmost, <span class="keywordtype">int</span>* cli_active);00448 00466 MG_EXPORT <a class="code" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI SetTopmostLayer (<a class="code" href="group__simple__types.htm#ga0">BOOL</a> handle_name,00467                 <a class="code" href="group__handles.htm#ga0">GHANDLE</a> handle, <span class="keyword">const</span> <span class="keywordtype">char</span>* name);00468 00486 MG_EXPORT <a class="code" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI DeleteLayer (<a class="code" href="group__simple__types.htm#ga0">BOOL</a> handle_name,00487                         <a class="code" href="group__handles.htm#ga0">GHANDLE</a> handle, <span class="keyword">const</span> <span class="keywordtype">char</span>* layer_name);00488 00510 <span class="keyword">typedef</span> int (* ON_LOCK_CLIENT_REQ) (void);00511 00512 00519 <span class="keyword">typedef</span> int (* ON_TRYLOCK_CLIENT_REQ) (void);00520 00527 <span class="keyword">typedef</span> void (* ON_UNLOCK_CLIENT_REQ) (void);00528 

⌨️ 快捷键说明

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