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

📄 common_8h.htm

📁 MINIGUI1.6开发API
💻 HTM
📖 第 1 页 / 共 3 页
字号:
<!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: common.h File Reference</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>common.h File Reference</h1><p><a href="common_8h-source.htm">Go to the source code of this file.</a><h2>Defines</h2><ul><li>#define <a class="el" href="group__version__info.htm#ga0">_VERSION_CODE</a>(major, minor, micro)&nbsp;&nbsp;&nbsp;(((major)&lt;&lt;16) | ((minor)&lt;&lt;8) | (micro))<dl class="el"><dd class="mdescRight">A macro that returns the version code from <em>major</em>, <em>minor</em> and <em>micro</em> version number.  <a href="group__version__info.htm#ga0"></a><br></dl><li>#define <a class="el" href="group__version__info.htm#ga1">_MINIGUI_VERSION_CODE</a>&nbsp;&nbsp;&nbsp;((MINIGUI_MAJOR_VERSION &lt;&lt; 16) | (MINIGUI_MINOR_VERSION &lt;&lt; 8) | MINIGUI_MICRO_VERSION)<dl class="el"><dd class="mdescRight">Version code of MiniGUI.  <a href="group__version__info.htm#ga1"></a><br></dl><li>#define <a class="el" href="group__endian__info.htm#ga0">MGUI_LIL_ENDIAN</a>&nbsp;&nbsp;&nbsp;1234<dl class="el"><dd class="mdescRight">Little endianness.  <a href="group__endian__info.htm#ga0"></a><br></dl><li>#define <a class="el" href="group__endian__info.htm#ga1">MGUI_BIG_ENDIAN</a>&nbsp;&nbsp;&nbsp;4321<dl class="el"><dd class="mdescRight">Big endianness.  <a href="group__endian__info.htm#ga1"></a><br></dl><li>#define <a class="el" href="group__endian__info.htm#ga2">MGUI_BYTEORDER</a>&nbsp;&nbsp;&nbsp;MGUI_LIL_ENDIAN<dl class="el"><dd class="mdescRight">The byte order (endianness) of the target system.  <a href="group__endian__info.htm#ga2"></a><br></dl><li>#define <a class="el" href="group__simple__types.htm#ga1">FALSE</a>&nbsp;&nbsp;&nbsp;0<dl class="el"><dd class="mdescRight">FALSE value, defined as 0 by MiniGUI.  <a href="group__simple__types.htm#ga1"></a><br></dl><li>#define <a class="el" href="group__simple__types.htm#ga2">TRUE</a>&nbsp;&nbsp;&nbsp;1<dl class="el"><dd class="mdescRight">TRUE value, defined as 1 by MiniGUI.  <a href="group__simple__types.htm#ga2"></a><br></dl><li>#define <a class="el" href="group__simple__types.htm#ga3">NULL</a>&nbsp;&nbsp;&nbsp;((void *)0)<dl class="el"><dd class="mdescRight">A value indicates null pointer.  <a href="group__simple__types.htm#ga3"></a><br></dl><li>#define <a class="el" href="group__win32__types.htm#ga19">LOBYTE</a>(w)&nbsp;&nbsp;&nbsp;((<a class="el" href="group__win32__types.htm#ga0">BYTE</a>)(w))<dl class="el"><dd class="mdescRight">Returns the low byte of the word <em>w</em>.  <a href="group__win32__types.htm#ga19"></a><br></dl><li>#define <a class="el" href="group__win32__types.htm#ga20">HIBYTE</a>(w)&nbsp;&nbsp;&nbsp;((<a class="el" href="group__win32__types.htm#ga0">BYTE</a>)(((<a class="el" href="group__win32__types.htm#ga2">WORD</a>)(w) &gt;&gt; 8) &amp; 0xFF))<dl class="el"><dd class="mdescRight">Returns the high byte of the word <em>w</em>.  <a href="group__win32__types.htm#ga20"></a><br></dl><li>#define <a class="el" href="group__win32__types.htm#ga21">MAKEWORD</a>(low, high)&nbsp;&nbsp;&nbsp;((<a class="el" href="group__win32__types.htm#ga2">WORD</a>)(((<a class="el" href="group__win32__types.htm#ga0">BYTE</a>)(low)) | (((<a class="el" href="group__win32__types.htm#ga2">WORD</a>)((<a class="el" href="group__win32__types.htm#ga0">BYTE</a>)(high))) &lt;&lt; 8)))<dl class="el"><dd class="mdescRight">Makes a word from <em>low</em> byte and <em>high</em> byte.  <a href="group__win32__types.htm#ga21"></a><br></dl><li>#define <a class="el" href="group__win32__types.htm#ga22">LOWORD</a>(l)&nbsp;&nbsp;&nbsp;((<a class="el" href="group__win32__types.htm#ga2">WORD</a>)(<a class="el" href="group__win32__types.htm#ga4">DWORD</a>)(l))<dl class="el"><dd class="mdescRight">Returns the low word of the double word <em>l</em>.  <a href="group__win32__types.htm#ga22"></a><br></dl><li>#define <a class="el" href="group__win32__types.htm#ga23">HIWORD</a>(l)&nbsp;&nbsp;&nbsp;((<a class="el" href="group__win32__types.htm#ga2">WORD</a>)((((<a class="el" href="group__win32__types.htm#ga4">DWORD</a>)(l)) &gt;&gt; 16) &amp; 0xFFFF))<dl class="el"><dd class="mdescRight">Returns the high word of the double word <em>l</em>.  <a href="group__win32__types.htm#ga23"></a><br></dl><li>#define <a class="el" href="group__win32__types.htm#ga24">LOSWORD</a>(l)&nbsp;&nbsp;&nbsp;((<a class="el" href="group__win32__types.htm#ga3">SWORD</a>)(<a class="el" href="group__win32__types.htm#ga4">DWORD</a>)(l))<dl class="el"><dd class="mdescRight">Returns the low signed word of the double word <em>l</em>.  <a href="group__win32__types.htm#ga24"></a><br></dl><li>#define <a class="el" href="group__win32__types.htm#ga25">HISWORD</a>(l)&nbsp;&nbsp;&nbsp;((<a class="el" href="group__win32__types.htm#ga3">SWORD</a>)((((<a class="el" href="group__win32__types.htm#ga4">DWORD</a>)(l)) &gt;&gt; 16) &amp; 0xFFFF))<dl class="el"><dd class="mdescRight">Returns the high signed word of the double word <em>l</em>.  <a href="group__win32__types.htm#ga25"></a><br></dl><li>#define <a class="el" href="group__win32__types.htm#ga26">MAKELONG</a>(low, high)&nbsp;&nbsp;&nbsp;((<a class="el" href="group__win32__types.htm#ga4">DWORD</a>)(((<a class="el" href="group__win32__types.htm#ga2">WORD</a>)(low)) | (((<a class="el" href="group__win32__types.htm#ga4">DWORD</a>)((<a class="el" href="group__win32__types.htm#ga2">WORD</a>)(high))) &lt;&lt; 16)))<dl class="el"><dd class="mdescRight">Makes a double word from <em>low</em> word and <em>high</em> word.  <a href="group__win32__types.htm#ga26"></a><br></dl><li>#define <a class="el" href="group__win32__types.htm#ga27">GetRValue</a>(rgb)&nbsp;&nbsp;&nbsp;((<a class="el" href="group__win32__types.htm#ga0">BYTE</a>)(rgb))<dl class="el"><dd class="mdescRight">Gets the red component from a RGB triple value <em>rgb</em>.  <a href="group__win32__types.htm#ga27"></a><br></dl><li>#define <a class="el" href="group__win32__types.htm#ga28">GetGValue</a>(rgb)&nbsp;&nbsp;&nbsp;((<a class="el" href="group__win32__types.htm#ga0">BYTE</a>)(((<a class="el" href="group__win32__types.htm#ga2">WORD</a>)(rgb)) &gt;&gt; 8))<dl class="el"><dd class="mdescRight">Gets the green component from a RGB triple value <em>rgb</em>.  <a href="group__win32__types.htm#ga28"></a><br></dl><li>#define <a class="el" href="group__win32__types.htm#ga29">GetBValue</a>(rgb)&nbsp;&nbsp;&nbsp;((<a class="el" href="group__win32__types.htm#ga0">BYTE</a>)((rgb) &gt;&gt; 16))<dl class="el"><dd class="mdescRight">Gets the blue component from a RGB triple value <em>rgb</em>.  <a href="group__win32__types.htm#ga29"></a><br></dl><li>#define <a class="el" href="group__win32__types.htm#ga30">MakeRGB</a>(r, g, b)<dl class="el"><dd class="mdescRight">Makes a RGB triple value from red <em>r</em>, green <em>g</em>, and blue <em>b</em> components.  <a href="group__win32__types.htm#ga30"></a><br></dl><li>#define <a class="el" href="group__key__defs.htm#ga0">MGUI_NR_KEYS</a>&nbsp;&nbsp;&nbsp;255<dl class="el"><dd class="mdescRight">Number of MiniGUI keys.  <a href="group__key__defs.htm#ga0"></a><br></dl><li>#define <a class="el" href="group__key__defs.htm#ga1">NR_KEYS</a>&nbsp;&nbsp;&nbsp;128<dl class="el"><dd class="mdescRight">The number of keys defined by Linux operating system.  <a href="group__key__defs.htm#ga1"></a><br></dl><li>#define <a class="el" href="group__key__defs.htm#ga2">SCANCODE_USER</a>&nbsp;&nbsp;&nbsp;(NR_KEYS + 1)<dl class="el"><dd class="mdescRight">The first key scan code different from OS defined ones.  <a href="group__key__defs.htm#ga2"></a><br></dl><li>#define <a class="el" href="group__key__defs.htm#ga125">KS_REPEATED</a>&nbsp;&nbsp;&nbsp;0x00000800<dl class="el"><dd class="mdescRight">This status indicate that the key down message is an auto-repeated one.  <a href="group__key__defs.htm#ga125"></a><br></dl><li>#define <a class="el" href="group__key__defs.htm#ga126">KS_CAPTURED</a>&nbsp;&nbsp;&nbsp;0x00000400<dl class="el"><dd class="mdescRight">This status indicate that the mouse is captured by a window when the mouse message posted.  <a href="group__key__defs.htm#ga126"></a><br></dl><li>#define <a class="el" href="group__key__defs.htm#ga127">KS_IMEPOST</a>&nbsp;&nbsp;&nbsp;0x00000200<dl class="el"><dd class="mdescRight">This status indicate that the key message is posted by the IME window.  <a href="group__key__defs.htm#ga127"></a><br></dl><li>#define <a class="el" href="group__key__defs.htm#ga128">KS_CAPSLOCK</a>&nbsp;&nbsp;&nbsp;0x00000100<dl class="el"><dd class="mdescRight">This status indicate that the CapsLock key was locked when the key or mouse message posted to the window.  <a href="group__key__defs.htm#ga128"></a><br></dl><li>#define <a class="el" href="group__key__defs.htm#ga129">KS_NUMLOCK</a>&nbsp;&nbsp;&nbsp;0x00000080<dl class="el"><dd class="mdescRight">This status indicate that the NumLock key was locked when the key or mouse message posted to the window.  <a href="group__key__defs.htm#ga129"></a><br></dl><li>#define <a class="el" href="group__key__defs.htm#ga130">KS_SCROLLLOCK</a>&nbsp;&nbsp;&nbsp;0x00000040<dl class="el"><dd class="mdescRight">This status indicate that the ScrollLock key was locked when the key or mouse message posted to the window.  <a href="group__key__defs.htm#ga130"></a><br></dl><li>#define <a class="el" href="group__key__defs.htm#ga131">KS_LEFTCTRL</a>&nbsp;&nbsp;&nbsp;0x00000020<dl class="el"><dd class="mdescRight">This status indicate that the left-Ctrl key was pressed when the key or mouse message posted to the window.  <a href="group__key__defs.htm#ga131"></a><br></dl><li>#define <a class="el" href="group__key__defs.htm#ga132">KS_RIGHTCTRL</a>&nbsp;&nbsp;&nbsp;0x00000010<dl class="el"><dd class="mdescRight">This status indicate that the right-Ctrl key was pressed when the key or mouse message posted to the window.  <a href="group__key__defs.htm#ga132"></a><br></dl><li>#define <a class="el" href="group__key__defs.htm#ga133">KS_CTRL</a>&nbsp;&nbsp;&nbsp;0x00000030<dl class="el"><dd class="mdescRight">This status indicate that either the left-Ctrl key or the right-Ctrl key was pressed when the key or mouse message posted to the window.  <a href="group__key__defs.htm#ga133"></a><br></dl><li>#define <a class="el" href="group__key__defs.htm#ga134">KS_LEFTALT</a>&nbsp;&nbsp;&nbsp;0x00000008<dl class="el"><dd class="mdescRight">This status indicate that left-Alt key was pressed when the key or mouse message posted to the window.  <a href="group__key__defs.htm#ga134"></a><br></dl><li>#define <a class="el" href="group__key__defs.htm#ga135">KS_RIGHTALT</a>&nbsp;&nbsp;&nbsp;0x00000004<dl class="el"><dd class="mdescRight">This status indicate that right-Alt key was pressed when the key or mouse message posted to the window.  <a href="group__key__defs.htm#ga135"></a><br></dl><li>#define <a class="el" href="group__key__defs.htm#ga136">KS_ALT</a>&nbsp;&nbsp;&nbsp;0x0000000C<dl class="el"><dd class="mdescRight">This status indicate that either the left-Alt key or the right-Alt key was pressed when the key or mouse message posted to the window.  <a href="group__key__defs.htm#ga136"></a><br></dl><li>#define <a class="el" href="group__key__defs.htm#ga137">KS_LEFTSHIFT</a>&nbsp;&nbsp;&nbsp;0x00000002<dl class="el"><dd class="mdescRight">This status indicate that left-Shift key was pressed when the key or mouse message posted to the window.  <a href="group__key__defs.htm#ga137"></a><br></dl><li>#define <a class="el" href="group__key__defs.htm#ga138">KS_RIGHTSHIFT</a>&nbsp;&nbsp;&nbsp;0x00000001<dl class="el"><dd class="mdescRight">This status indicate that right-Shift key was pressed when the key or mouse message posted to the window.  <a href="group__key__defs.htm#ga138"></a><br></dl><li>#define <a class="el" href="group__key__defs.htm#ga139">KS_SHIFT</a>&nbsp;&nbsp;&nbsp;0x00000003<dl class="el"><dd class="mdescRight">This status indicate that either the left-Shift key or the right-Shift key was pressed when the key or mouse message posted to the window.  <a href="group__key__defs.htm#ga139"></a><br></dl><li>#define <a class="el" href="group__key__defs.htm#ga140">MASK_KS_SHIFTKEYS</a>&nbsp;&nbsp;&nbsp;0x00000FFF<dl class="el"><dd class="mdescRight">The mask of key status.  <a href="group__key__defs.htm#ga140"></a><br></dl><li>#define <a class="el" href="group__key__defs.htm#ga141">KS_LEFTBUTTON</a>&nbsp;&nbsp;&nbsp;0x00001000<dl class="el"><dd class="mdescRight">This status indicate that left button was pressed when the key or mouse message posted to the window.  <a href="group__key__defs.htm#ga141"></a><br></dl><li>#define <a class="el" href="group__key__defs.htm#ga142">KS_RIGHTBUTTON</a>&nbsp;&nbsp;&nbsp;0x00002000

⌨️ 快捷键说明

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