📄 common_8h.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: 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 Page</a> | <a class="qindex" href="modules.htm">Modules</a> | <a class="qindex" href="classes.htm">Alphabetical List</a> | <a class="qindex" href="annotated.htm">Data Structures</a> | <a class="qindex" href="dirs.htm">Directories</a> | <a class="qindex" href="files.htm">File List</a> | <a class="qindex" href="functions.htm">Data Fields</a> | <a class="qindex" href="globals.htm">Globals</a> | <a class="qindex" href="pages.htm">Related 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) (((major)<<16) | ((minor)<<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> ((MINIGUI_MAJOR_VERSION << 16) | (MINIGUI_MINOR_VERSION << 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> 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> 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> 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> 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> 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> ((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) ((<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) ((<a class="el" href="group__win32__types.htm#ga0">BYTE</a>)(((<a class="el" href="group__win32__types.htm#ga2">WORD</a>)(w) >> 8) & 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) ((<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))) << 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) ((<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) ((<a class="el" href="group__win32__types.htm#ga2">WORD</a>)((((<a class="el" href="group__win32__types.htm#ga4">DWORD</a>)(l)) >> 16) & 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) ((<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) ((<a class="el" href="group__win32__types.htm#ga3">SWORD</a>)((((<a class="el" href="group__win32__types.htm#ga4">DWORD</a>)(l)) >> 16) & 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) ((<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))) << 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) ((<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) ((<a class="el" href="group__win32__types.htm#ga0">BYTE</a>)(((<a class="el" href="group__win32__types.htm#ga2">WORD</a>)(rgb)) >> 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) ((<a class="el" href="group__win32__types.htm#ga0">BYTE</a>)((rgb) >> 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> 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> 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> (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> 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> 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> 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> 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> 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> 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> 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> 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> 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> 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> 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> 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> 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> 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> 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> 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> 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> 0x00002000
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -