📄 minigui_8h.htm
字号:
<dl class="el"><dd class="mdescRight">The identifier of the read system text. <a href="group__sys__text.htm#ga47"></a><br></dl><li>#define <a class="el" href="group__sys__text.htm#ga48">IDS_MGST_W</a> 44<dl class="el"><dd class="mdescRight">The identifier of the write system text. <a href="group__sys__text.htm#ga48"></a><br></dl><li>#define <a class="el" href="group__sys__text.htm#ga49">IDS_MGST_WR</a> 45<dl class="el"><dd class="mdescRight">The identifier of the read and write system text. <a href="group__sys__text.htm#ga49"></a><br></dl><li>#define <a class="el" href="group__sys__text.htm#ga50">IDS_MGST_SAVE</a> 46<dl class="el"><dd class="mdescRight">The identifier of the save system text. <a href="group__sys__text.htm#ga50"></a><br></dl><li>#define <a class="el" href="group__sys__text.htm#ga51">IDS_MGST_FILEEXIST</a> 47<dl class="el"><dd class="mdescRight">The identifier of the file exist system text. <a href="group__sys__text.htm#ga51"></a><br></dl></ul><h2>Typedefs</h2><ul><li>typedef <a class="el" href="struct__ETCSECTION.htm">_ETCSECTION</a> <a class="el" href="group__etc__fns.htm#ga0">ETCSECTION</a><li>typedef <a class="el" href="struct__ETCSECTION.htm">ETCSECTION</a> * <a class="el" href="group__etc__fns.htm#ga1">PETCSECTION</a><li>typedef <a class="el" href="struct__ETC__S.htm">_ETC_S</a> <a class="el" href="group__etc__fns.htm#ga2">ETC_S</a></ul><h2>Functions</h2><ul><li>MG_EXPORT int GUIAPI <a class="el" href="minigui_8h.htm#a112">InitGUI</a> (int, const char **)<dl class="el"><dd class="mdescRight">Initialize MiniGUI. <a href="#a112"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="minigui_8h.htm#a113">TerminateGUI</a> (int rcByGUI)<dl class="el"><dd class="mdescRight">Terminate MiniGUI. <a href="#a113"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="minigui_8h.htm#a114">MiniGUIPanic</a> (int exitcode)<dl class="el"><dd class="mdescRight">The panic of MiniGUI application. <a href="#a114"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__init__fns.htm#ga4">ReinitDesktopEx</a> (<a class="el" href="group__simple__types.htm#ga0">BOOL</a> init_sys_text)<dl class="el"><dd class="mdescRight">Re-initializes the desktop. <a href="group__init__fns.htm#ga4"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__init__fns.htm#ga5">ExitGUISafely</a> (int exitcode)<dl class="el"><dd class="mdescRight">Exits your MiniGUI application safely. <a href="group__init__fns.htm#ga5"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__mouse__calibrate.htm#ga0">SetMouseCalibrationParameters</a> (const <a class="el" href="struct__POINT.htm">POINT</a> *src_pts, const <a class="el" href="struct__POINT.htm">POINT</a> *dst_pts)<dl class="el"><dd class="mdescRight">Sets the parameters for doing mouse calibration. <a href="group__mouse__calibrate.htm#ga0"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__mouse__calibrate.htm#ga1">GetOriginalMousePosition</a> (int *x, int *y)<dl class="el"><dd class="mdescRight">Gets the original mouse position. <a href="group__mouse__calibrate.htm#ga1"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__etc__fns.htm#ga5">GetValueFromEtcFile</a> (const char *pEtcFile, const char *pSection, const char *pKey, char *pValue, int iLen)<dl class="el"><dd class="mdescRight">Gets value from a configuration file. <a href="group__etc__fns.htm#ga5"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__etc__fns.htm#ga6">GetIntValueFromEtcFile</a> (const char *pEtcFile, const char *pSection, const char *pKey, int *value)<dl class="el"><dd class="mdescRight">Gets integer value from a configuration file. <a href="group__etc__fns.htm#ga6"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__etc__fns.htm#ga7">SetValueToEtcFile</a> (const char *pEtcFile, const char *pSection, const char *pKey, char *pValue)<dl class="el"><dd class="mdescRight">Sets a value in a configuration file. <a href="group__etc__fns.htm#ga7"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__etc__fns.htm#ga8">RemoveSectionInEtcFile</a> (const char *pEtcFile, const char *pSection)<dl class="el"><dd class="mdescRight">Removes a section in an etc file. <a href="group__etc__fns.htm#ga8"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga0">GHANDLE</a> GUIAPI <a class="el" href="group__etc__fns.htm#ga9">LoadEtcFile</a> (const char *pEtcFile)<dl class="el"><dd class="mdescRight">Loads an etc file into memory. <a href="group__etc__fns.htm#ga9"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__etc__fns.htm#ga10">SaveEtcToFile</a> (<a class="el" href="group__handles.htm#ga0">GHANDLE</a> hEtc, const char *file_name)<dl class="el"><dd class="mdescRight">Saves an ETC object into a file. <a href="group__etc__fns.htm#ga10"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__etc__fns.htm#ga11">UnloadEtcFile</a> (<a class="el" href="group__handles.htm#ga0">GHANDLE</a> hEtc)<dl class="el"><dd class="mdescRight">Unloads an etc file. <a href="group__etc__fns.htm#ga11"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__etc__fns.htm#ga12">GetValueFromEtc</a> (<a class="el" href="group__handles.htm#ga0">GHANDLE</a> hEtc, const char *pSection, const char *pKey, char *pValue, int iLen)<dl class="el"><dd class="mdescRight">Gets value from a configuration etc object. <a href="group__etc__fns.htm#ga12"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__etc__fns.htm#ga13">GetIntValueFromEtc</a> (<a class="el" href="group__handles.htm#ga0">GHANDLE</a> hEtc, const char *pSection, const char *pKey, int *pValue)<dl class="el"><dd class="mdescRight">Gets the integer value from a configuration etc object. <a href="group__etc__fns.htm#ga13"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga0">GHANDLE</a> GUIAPI <a class="el" href="group__etc__fns.htm#ga14">FindSectionInEtc</a> (<a class="el" href="group__handles.htm#ga0">GHANDLE</a> hEtc, const char *pSection, <a class="el" href="group__simple__types.htm#ga0">BOOL</a> bCreateNew)<dl class="el"><dd class="mdescRight">Finds/Creates a section from an etc object. <a href="group__etc__fns.htm#ga14"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__etc__fns.htm#ga15">GetValueFromEtcSec</a> (<a class="el" href="group__handles.htm#ga0">GHANDLE</a> hSect, const char *pKey, char *pValue, int iLen)<dl class="el"><dd class="mdescRight">Gets value from an etc section object. <a href="group__etc__fns.htm#ga15"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__etc__fns.htm#ga16">GetIntValueFromEtcSec</a> (<a class="el" href="group__handles.htm#ga0">GHANDLE</a> hSect, const char *pKey, int *pValue)<dl class="el"><dd class="mdescRight">Gets an integer value from an etc section object. <a href="group__etc__fns.htm#ga16"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__etc__fns.htm#ga17">SetValueToEtcSec</a> (<a class="el" href="group__handles.htm#ga0">GHANDLE</a> hSect, const char *pKey, char *pValue)<dl class="el"><dd class="mdescRight">Sets the value in the etc section object. <a href="group__etc__fns.htm#ga17"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__etc__fns.htm#ga18">RemoveSectionInEtc</a> (<a class="el" href="group__handles.htm#ga0">GHANDLE</a> hEtc, const char *pSection)<dl class="el"><dd class="mdescRight">Removes a section in etc object. <a href="group__etc__fns.htm#ga18"></a><br></dl><li>static int <a class="el" href="group__etc__fns.htm#ga19">GetMgEtcValue</a> (const char *pSection, const char *pKey, char *pValue, int iLen)<dl class="el"><dd class="mdescRight">Gets value from MiniGUI configuration etc object. <a href="group__etc__fns.htm#ga19"></a><br></dl><li>static int <a class="el" href="group__etc__fns.htm#ga20">GetMgEtcIntValue</a> (const char *pSection, const char *pKey, int *value)<dl class="el"><dd class="mdescRight">Gets integer value from MiniGUI configuration etc object. <a href="group__etc__fns.htm#ga20"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__clipboard__fns.htm#ga0">CreateClipBoard</a> (const char *cb_name, size_t size)<dl class="el"><dd class="mdescRight">Creates a new clipboard. <a href="group__clipboard__fns.htm#ga0"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__clipboard__fns.htm#ga1">DestroyClipBoard</a> (const char *cb_name)<dl class="el"><dd class="mdescRight">Destroys a new clipboard. <a href="group__clipboard__fns.htm#ga1"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__clipboard__fns.htm#ga2">SetClipBoardData</a> (const char *cb_name, void *data, size_t n, int cbop)<dl class="el"><dd class="mdescRight">Sets the data of a clipboard. <a href="group__clipboard__fns.htm#ga2"></a><br></dl><li>MG_EXPORT size_t GUIAPI <a class="el" href="group__clipboard__fns.htm#ga3">GetClipBoardDataLen</a> (const char *cb_name)<dl class="el"><dd class="mdescRight">Gets the length of the data of a clipboard. <a href="group__clipboard__fns.htm#ga3"></a><br></dl><li>MG_EXPORT size_t GUIAPI <a class="el" href="group__clipboard__fns.htm#ga4">GetClipBoardData</a> (const char *cb_name, void *data, size_t n)<dl class="el"><dd class="mdescRight">Gets the data of a clipboard. <a href="group__clipboard__fns.htm#ga4"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__clipboard__fns.htm#ga5">GetClipBoardByte</a> (const char *cb_name, int index, unsigned char *byte)<dl class="el"><dd class="mdescRight">Gets a byte from a clipboard. <a href="group__clipboard__fns.htm#ga5"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__misc__fns.htm#ga11">Ping</a> (void)<dl class="el"><dd class="mdescRight">Makes a beep sound. <a href="group__misc__fns.htm#ga11"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__misc__fns.htm#ga12">Tone</a> (int frequency_hz, int duration_ms)<dl class="el"><dd class="mdescRight">Makes a tone. <a href="group__misc__fns.htm#ga12"></a><br></dl><li>MG_EXPORT void *GUIAPI <a class="el" href="group__misc__fns.htm#ga13">GetOriginalTermIO</a> (void)<dl class="el"><dd class="mdescRight">Gets <em>termios</em> structure of the original terminal before initializing MiniGUI. <a href="group__misc__fns.htm#ga13"></a><br></dl><li>MG_EXPORT char *GUIAPI <a class="el" href="group__fixed__str.htm#ga0">FixStrAlloc</a> (int len)<dl class="el"><dd class="mdescRight">Allocates a buffer for a length-fixed string. <a href="group__fixed__str.htm#ga0"></a><br></dl><li>MG_EXPORT char *GUIAPI <a class="el" href="group__fixed__str.htm#ga1">FixStrDup</a> (const char *str)<dl class="el"><dd class="mdescRight">Duplicates a length-fixed string. <a href="group__fixed__str.htm#ga1"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__fixed__str.htm#ga2">FreeFixStr</a> (char *str)<dl class="el"><dd class="mdescRight">Frees a length-fixed string. <a href="group__fixed__str.htm#ga2"></a><br></dl><li><a class="el" href="group__handles.htm#ga4">HCURSOR</a> GUIAPI <a class="el" href="group__cursor__fns.htm#ga0">LoadCursorFromFile</a> (const char *filename)<dl class="el"><dd class="mdescRight">Loads a cursor from a M$ Windows cursor file. <a href="group__cursor__fns.htm#ga0"></a><br></dl><li><a class="el" href="group__handles.htm#ga4">HCURSOR</a> GUIAPI <a class="el" href="group__cursor__fns.htm#ga1">LoadCursorFromMem</a> (const void *area)<dl class="el"><dd class="mdescRight">Loads a cursor from a memory area. <a href="group__cursor__fns.htm#ga1"></a><br></dl><li><a class="el" href="group__handles.htm#ga4">HCURSOR</a> GUIAPI <a class="el" href="group__cursor__fns.htm#ga2">CreateCursor</a> (int xhotspot, int yhotspot, int w, int h, const <a class="el" href="group__win32__types.htm#ga0">BYTE</a> *pANDBits, const <a class="el" href="group__win32__types.htm#ga0">BYTE</a> *pXORBits, int colornum)<dl class="el"><dd class="mdescRight">Creates a cursor from memory data. <a href="group__cursor__fns.htm#ga2"></a><br></dl><li><a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__cursor__fns.htm#ga3">DestroyCursor</a> (<a class="el" href="group__handles.htm#ga4">HCURSOR</a> hcsr)<dl class="el"><dd class="mdescRight">Destroys a cursor object. <a href="group__cursor__fns.htm#ga3"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga4">HCURSOR</a> GUIAPI <a class="el" href="group__cursor__fns.htm#ga4">GetSystemCursor</a> (int csrid)<dl class="el"><dd class="mdescRight">Gets the handle to a system cursor by its identifier. <a href="group__cursor__fns.htm#ga4"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga4">HCURSOR</a> GUIAPI <a class="el" href="group__cursor__fns.htm#ga5">GetCurrentCursor</a> (void)<dl class="el"><dd class="mdescRight">Gets the handle to the current cursor. <a href="group__cursor__fns.htm#ga5"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__cursor__fns.htm#ga6">ClipCursor</a> (const <a class="el" href="struct__RECT.htm">RECT</a> *prc)<dl class="el"><dd class="mdescRight">Clips the cursor range. <a href="group__cursor__fns.htm#ga6"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__cursor__fns.htm#ga7">GetClipCursor</a> (<a class="el" href="struct__RECT.htm">RECT</a> *prc)<dl class="el"><dd class="mdescRight">Gets the current cursor clipping rectangle. <a href="group__cursor__fns.htm#ga7"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__cursor__fns.htm#ga8">GetCursorPos</a> (<a class="el" href="struct__POINT.htm">POINT</a> *ppt)<dl class="el"><dd class="mdescRight">Gets position of the current cursor. <a href="group__cursor__fns.htm#ga8"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__cursor__fns.htm#ga9">SetCursorPos</a> (int x, int y)<dl class="el"><dd class="mdescRight">Sets position of the current cursor. <a href="group__cursor__fns.htm#ga9"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga4">HCURSOR</a> GUIAPI <a class="el" href="group__cursor__fns.htm#ga10">SetCursorEx</a> (<a class="el" href="group__handles.htm#ga4">HCURSOR</a> hcsr, <a class="el" href="group__simple__types.htm#ga0">BOOL</a> set_def)<dl class="el"><dd class="mdescRight">Changes the current cursor. <a href="group__cursor__fns.htm#ga10"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga4">HCURSOR</a> GUIAPI <a class="el" href="group__cursor__fns.htm#ga11">GetDefaultCursor</a> (void)<dl class="el"><dd class="mdescRight">Gets the default cursor. <a href="group__cursor__fns.htm#ga11"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__cursor__fns.htm#ga12">ShowCursor</a> (<a class="el" href="group__simple__types.htm#ga0">BOOL</a> fShow)<dl class="el"><dd class="mdescRight">Shows or hides cursor. <a href="group__cursor__fns.htm#ga12"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__key__status.htm#ga0">GetKeyStatus</a> (<a class="el" href="group__win32__types.htm#ga6">UINT</a> uKey)<dl class="el"><dd class="mdescRight">Gets a key or a mouse button status. <a href="group__key__status.htm#ga0"></a><br></dl><li>MG_EXPORT <a class="el" href="group__win32__types.htm#ga4">DWORD</a> GUIAPI <a class="el" href="group__key__status.htm#ga1">GetShiftKeyStatus</a> (void)<dl class="el"><dd class="mdescRight">Gets status of the shift keys. <a href="group__key__status.htm#ga1"></a><br></dl><li>MG_EXPORT const char * <a class="el" href="group__sys__text.htm#ga2">GetSysText</a> (unsigned int id)<dl class="el"><dd class="mdescRight">Translates system text to localized text. <a href="group__sys__text.htm#ga2"></a><br></dl><li>MG_EXPORT const char **GUIAPI <a class="el" href="group__sys__text.htm#ga3">GetSysTextInUTF8</a> (const char *language)<dl class="el"><dd class="mdescRight">Gets the localized system text array in UTF-8 for a specified language. <a href="group__sys__text.htm#ga3"></a><br></dl><li>MG_EXPORT char * <a class="el" href="group__str__helpers.htm#ga0">strnchr</a> (const char *s, size_t n, int c)<dl class="el"><dd class="mdescRight">Locates character in the first <em>n</em> characters of string <em>s</em>. <a href="group__str__helpers.htm#ga0"></a><br></dl><li>MG_EXPORT int <a class="el" href="group__str__helpers.htm#ga1">substrlen</a> (const char *text, int len, int delimiter, int *nr_delim)<dl class="el"><dd class="mdescRight">Locates a substring delimited by one or more delimiters in the first <em>len</em> characters of string <em>text</em>. <a href="group__str__helpers.htm#ga1"></a><br></dl><li>MG_EXPORT char * <a class="el" href="group__str__helpers.htm#ga2">strtrimall</a> (char *src)<dl class="el"><dd class="mdescRight">Deletes all space characters. <a href="group__str__helpers.htm#ga2"></a><br></dl></ul><h2>Variables</h2><ul><li>MG_EXPORT <a class="el" href="struct__RECT.htm">RECT</a> <a class="el" href="group__rect__vars.htm#ga0">g_rcScr</a><dl class="el"><dd class="mdescRight">Contains the rectangle of the whole screen. <a href="group__rect__vars.htm#ga0"></a><br></dl><li>MG_EXPORT typedef void GUIAPI(* <a class="el" href="group__init__fns.htm#ga0">CustomizeDesktopMenuFunc</a> )(<a class="el" href="group__handles.htm#ga6">HMENU</a> hDesktopMenu, int iPos)<dl class="el"><dd class="mdescRight">The function pointer of customizing desktop menu function. <a href="group__init__fns.htm#ga0"></a><br></dl><li>MG_EXPORT typedef int GUIAPI(* <a class="el" href="group__init__fns.htm#ga1">CustomDesktopCommandFunc</a> )(int id)<dl class="el"><dd class="mdescRight">The function pointer of customizing desktop command function. <a href="group__init__fns.htm#ga1"></a><br></dl><li>MG_EXPORT <a class="el" href="group__init__fns.htm#ga0">CustomizeDesktopMenuFunc</a> <a class="el" href="group__init__fns.htm#ga2">CustomizeDesktopMenu</a><dl class="el"><dd class="mdescRight">MiniGUI default desktop menu function. <a href="group__init__fns.htm#ga2"></a><br></dl><li>MG_EXPORT <a class="el" href="group__init__fns.htm#ga1">CustomDesktopCommandFunc</a> <a class="el" href="group__init__fns.htm#ga3">CustomDesktopCommand</a><dl class="el"><dd class="mdescRight">MiniGUI default desktop command function. <a href="group__init__fns.htm#ga3"></a><br></dl><li>MG_EXPORT char <a class="el" href="group__etc__fns.htm#ga3">ETCFILEPATH</a> []<dl class="el"><dd class="mdescRight">The path name of MiniGUI configuration file. <a href="group__etc__fns.htm#ga3"></a><br></dl><li>MG_EXPORT const char * <a class="el" href="group__sys__text.htm#ga0">SysText</a> []<dl class="el"><dd class="mdescRight">Contains all text used by MiniGUI in English. <a href="group__sys__text.htm#ga0"></a><br></dl><li>MG_EXPORT const char ** <a class="el" href="group__sys__text.htm#ga1">local_SysText</a><dl class="el"><dd class="mdescRight">The pointer to the current localized system text array. <a href="group__sys__text.htm#ga1"></a><br></dl></ul><hr><a name="_details"></a><h2>Detailed Description</h2><dl compact><dt><b>Author:</b></dt><dd>Wei Yongming <<a href="mailto:ymwei@minigui.org">ymwei@minigui.org</a>> </dd></dl><dl compact><dt><b>Date:</b></dt><dd>2002/01/06</dd></dl>This file includes global and miscellaneous interfaces of MiniGUI.<p><div class="fragment"><pre class="fragment"> Copyright (C) 2002-2007 Feynman Software. Copyright (C) 1998-2002 Wei Yongming. All rights reserved by Feynman Software. This file is part of MiniGUI, a compact cross-platform Graphics User Interface (GUI) support system for real-time embedded systems. </pre></div> <p>Definition in file <a class="el" href="minigui_8h-source.htm">minigui.h</a>.<hr><h2>Function Documentation</h2><a class="anchor" name="a112" doxytag="minigui.h::InitGUI"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">int GUIAPI InitGUI </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname" nowrap>, </td> </tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -