📄 group__clipboard__fns.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: ClipBoard Operations</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><h1>ClipBoard Operations<br><small>[<a class="el" href="group__lite__fns.htm">MiniGUI-Processes specific functions</a>]</small></h1><h2>Defines</h2><ul><li>#define <a class="el" href="group__clipboard__fns.htm#ga6">LEN_CLIPBOARD_NAME</a> 15<dl class="el"><dd class="mdescRight">The maximum length of the name of clipboard. <a href="#ga6"></a><br></dl><li>#define <a class="el" href="group__clipboard__fns.htm#ga7">NR_CLIPBOARDS</a> 4<dl class="el"><dd class="mdescRight">The maximum number of clipboard. <a href="#ga7"></a><br></dl><li>#define <a class="el" href="group__clipboard__fns.htm#ga8">CBNAME_TEXT</a> ("text")<dl class="el"><dd class="mdescRight">The default clipboard name of text control. <a href="#ga8"></a><br></dl><li>#define <a class="el" href="group__clipboard__fns.htm#ga9">CBERR_OK</a> 0<dl class="el"><dd class="mdescRight">Operate clipboard success. <a href="#ga9"></a><br></dl><li>#define <a class="el" href="group__clipboard__fns.htm#ga10">CBERR_BADNAME</a> 1<dl class="el"><dd class="mdescRight">Bad name to clipboard. <a href="#ga10"></a><br></dl><li>#define <a class="el" href="group__clipboard__fns.htm#ga11">CBERR_NOMEM</a> 2<dl class="el"><dd class="mdescRight">No enough memory to clipboard. <a href="#ga11"></a><br></dl><li>#define <a class="el" href="group__clipboard__fns.htm#ga12">CBOP_NORMAL</a> 0<dl class="el"><dd class="mdescRight">Overwrite operation to clipboard. <a href="#ga12"></a><br></dl><li>#define <a class="el" href="group__clipboard__fns.htm#ga13">CBOP_APPEND</a> 1<dl class="el"><dd class="mdescRight">Append the new data to clipboarda after the old data. <a href="#ga13"></a><br></dl></ul><h2>Functions</h2><ul><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="#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="#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="#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="#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="#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="#ga5"></a><br></dl></ul><hr><h2>Define Documentation</h2><a class="anchor" name="ga10" doxytag="minigui.h::CBERR_BADNAME"></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">#define CBERR_BADNAME 1 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Bad name to clipboard. <p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__clipboard__fns.htm#ga0">CreateClipBoard</a> </dd></dl><p>Definition at line <a class="el" href="minigui_8h-source.htm#l02133">2133</a> of file <a class="el" href="minigui_8h-source.htm">minigui.h</a>. </td> </tr></table><a class="anchor" name="ga11" doxytag="minigui.h::CBERR_NOMEM"></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">#define CBERR_NOMEM 2 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>No enough memory to clipboard. <p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__clipboard__fns.htm#ga0">CreateClipBoard</a> </dd></dl><p>Definition at line <a class="el" href="minigui_8h-source.htm#l02139">2139</a> of file <a class="el" href="minigui_8h-source.htm">minigui.h</a>. </td> </tr></table><a class="anchor" name="ga9" doxytag="minigui.h::CBERR_OK"></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">#define CBERR_OK 0 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Operate clipboard success. <p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__clipboard__fns.htm#ga0">CreateClipBoard</a> </dd></dl><p>Definition at line <a class="el" href="minigui_8h-source.htm#l02127">2127</a> of file <a class="el" href="minigui_8h-source.htm">minigui.h</a>. </td> </tr></table><a class="anchor" name="ga8" doxytag="minigui.h::CBNAME_TEXT"></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">#define CBNAME_TEXT ("text") </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The default clipboard name of text control. <p><p>Definition at line <a class="el" href="minigui_8h-source.htm#l02120">2120</a> of file <a class="el" href="minigui_8h-source.htm">minigui.h</a>. </td> </tr></table><a class="anchor" name="ga13" doxytag="minigui.h::CBOP_APPEND"></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">#define CBOP_APPEND 1 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Append the new data to clipboarda after the old data. <p><p>Definition at line <a class="el" href="minigui_8h-source.htm#l02150">2150</a> of file <a class="el" href="minigui_8h-source.htm">minigui.h</a>. </td> </tr></table><a class="anchor" name="ga12" doxytag="minigui.h::CBOP_NORMAL"></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">#define CBOP_NORMAL 0 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Overwrite operation to clipboard. <p><p>Definition at line <a class="el" href="minigui_8h-source.htm#l02145">2145</a> of file <a class="el" href="minigui_8h-source.htm">minigui.h</a>. </td> </tr></table><a class="anchor" name="ga6" doxytag="minigui.h::LEN_CLIPBOARD_NAME"></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">#define LEN_CLIPBOARD_NAME 15 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The maximum length of the name of clipboard. <p><p>Definition at line <a class="el" href="minigui_8h-source.htm#l02109">2109</a> of file <a class="el" href="minigui_8h-source.htm">minigui.h</a>. </td> </tr></table><a class="anchor" name="ga7" doxytag="minigui.h::NR_CLIPBOARDS"></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">#define NR_CLIPBOARDS 4 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The maximum number of clipboard. <p><p>Definition at line <a class="el" href="minigui_8h-source.htm#l02114">2114</a> of file <a class="el" href="minigui_8h-source.htm">minigui.h</a>. </td> </tr></table><hr><h2>Function Documentation</h2><a class="anchor" name="ga0" doxytag="minigui.h::CreateClipBoard"></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 CreateClipBoard </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const char * </td> <td class="mdname" nowrap> <em>cb_name</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>size_t </td> <td class="mdname" nowrap> <em>size</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Creates a new clipboard. <p>This function creates a new clipboard with the name <em>cb_name</em>. MiniGUI itself creates a clipboard for text copying/pasting called CBNAME_TEXT.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -