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

📄 group__clipboard__fns.htm

📁 MINIGUI1.6开发API
💻 HTM
📖 第 1 页 / 共 2 页
字号:
<!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&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><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>&nbsp;&nbsp;&nbsp;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>&nbsp;&nbsp;&nbsp;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>&nbsp;&nbsp;&nbsp;("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>&nbsp;&nbsp;&nbsp;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>&nbsp;&nbsp;&nbsp;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>&nbsp;&nbsp;&nbsp;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>&nbsp;&nbsp;&nbsp;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>&nbsp;&nbsp;&nbsp;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&nbsp;&nbsp;&nbsp;1          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </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&nbsp;&nbsp;&nbsp;2          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </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&nbsp;&nbsp;&nbsp;0          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </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&nbsp;&nbsp;&nbsp;("text")          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </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&nbsp;&nbsp;&nbsp;1          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </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&nbsp;&nbsp;&nbsp;0          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </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&nbsp;&nbsp;&nbsp;15          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </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&nbsp;&nbsp;&nbsp;4          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </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">(&nbsp;</td>          <td class="md" nowrap valign="top">const char *&nbsp;</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&nbsp;</td>          <td class="mdname" nowrap> <em>size</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </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 + -