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

📄 minigui_8h-source.htm

📁 MINIGUI1.6开发API
💻 HTM
📖 第 1 页 / 共 5 页
字号:
00537 <span class="keyword">extern</span> MG_EXPORT ON_LOCK_CLIENT_REQ  OnLockClientReq;00538 00547 <span class="keyword">extern</span> MG_EXPORT ON_TRYLOCK_CLIENT_REQ  OnTrylockClientReq;00556 <span class="keyword">extern</span> MG_EXPORT ON_UNLOCK_CLIENT_REQ  OnUnlockClientReq;00557 00558 <span class="preprocessor">#define LCO_NEW_CLIENT      1</span>00559 <span class="preprocessor"></span><span class="preprocessor">#define LCO_DEL_CLIENT      2</span>00560 <span class="preprocessor"></span>00567 <span class="keyword">typedef</span> void (* ON_NEW_DEL_CLIENT) (<span class="keywordtype">int</span> op, <span class="keywordtype">int</span> cli);00568 00569 <span class="preprocessor">#define LCO_NEW_LAYER       1</span>00570 <span class="preprocessor"></span><span class="preprocessor">#define LCO_DEL_LAYER       2</span>00571 <span class="preprocessor"></span><span class="preprocessor">#define LCO_JOIN_CLIENT     3</span>00572 <span class="preprocessor"></span><span class="preprocessor">#define LCO_REMOVE_CLIENT   4</span>00573 <span class="preprocessor"></span><span class="preprocessor">#define LCO_TOPMOST_CHANGED 5</span>00574 <span class="preprocessor"></span><span class="preprocessor">#define LCO_ACTIVE_CHANGED  6</span>00575 <span class="preprocessor"></span>00583 <span class="keyword">typedef</span> void (* ON_CHANGE_LAYER) (<span class="keywordtype">int</span> op, MG_Layer* layer, 00584                 MG_Client* client);00585 00586 <span class="preprocessor">#define ZNOP_ALLOCATE   1</span>00587 <span class="preprocessor"></span><span class="preprocessor">#define ZNOP_FREE       2</span>00588 <span class="preprocessor"></span><span class="preprocessor">#define ZNOP_MOVE2TOP   3</span>00589 <span class="preprocessor"></span><span class="preprocessor">#define ZNOP_SHOW       4</span>00590 <span class="preprocessor"></span><span class="preprocessor">#define ZNOP_HIDE       5</span>00591 <span class="preprocessor"></span><span class="preprocessor">#define ZNOP_MOVEWIN    6</span>00592 <span class="preprocessor"></span><span class="preprocessor">#define ZNOP_SETACTIVE  7</span>00593 <span class="preprocessor"></span>00594 <span class="preprocessor">#define ZNOP_ENABLEWINDOW        11</span>00595 <span class="preprocessor"></span><span class="preprocessor">#define ZNOP_DISABLEWINDOW       12</span>00596 <span class="preprocessor"></span><span class="preprocessor">#define ZNOP_STARTDRAG           13</span>00597 <span class="preprocessor"></span><span class="preprocessor">#define ZNOP_CANCELDRAG          14</span>00598 <span class="preprocessor"></span><span class="preprocessor">#define ZNOP_CHANGECAPTION       15</span>00599 <span class="preprocessor"></span>00606 <span class="keyword">typedef</span> void (* ON_ZNODE_OPERATION) (<span class="keywordtype">int</span> op, <span class="keywordtype">int</span> cli, <span class="keywordtype">int</span> idx_znode);00607 00631 <span class="keyword">extern</span> MG_EXPORT ON_NEW_DEL_CLIENT OnNewDelClient;00632 00662 <span class="keyword">extern</span> MG_EXPORT ON_CHANGE_LAYER OnChangeLayer;00663 00706 <span class="keyword">extern</span> MG_EXPORT ON_ZNODE_OPERATION OnZNodeOperation;00707 00734 MG_EXPORT <a class="code" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI ServerStartup (<span class="keywordtype">int</span> nr_globals,00735                 <span class="keywordtype">int</span> def_nr_topmosts, <span class="keywordtype">int</span> def_nr_normals);00736 00764 MG_EXPORT MG_Layer* GUIAPI ServerCreateLayer (<span class="keyword">const</span> <span class="keywordtype">char</span>* layer_name, 00765                 <span class="keywordtype">int</span> max_nr_topmosts, <span class="keywordtype">int</span> max_nr_normals);00766 00781 MG_EXPORT <a class="code" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI ServerSetTopmostLayer (MG_Layer* layer);00782 00797 MG_EXPORT <a class="code" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI ServerDeleteLayer (MG_Layer* layer);00798 00823 MG_EXPORT <span class="keywordtype">int</span> GUIAPI ServerGetNextZNode (MG_Layer* layer, <span class="keywordtype">int</span> idx_znode, 00824                 <span class="keywordtype">int</span>* cli);00825 00826 <span class="preprocessor">#define ZNIT_DESKTOP         0x50000000</span>00827 <span class="preprocessor"></span>00828 <span class="preprocessor">#define ZNIT_GLOBAL_MAINWIN  0x31000000</span>00829 <span class="preprocessor"></span><span class="preprocessor">#define ZNIT_GLOBAL_TOOLWIN  0x32000000</span>00830 <span class="preprocessor"></span><span class="preprocessor">#define ZNIT_GLOBAL_CONTROL  0x30000000</span>00831 <span class="preprocessor"></span>00832 <span class="preprocessor">#define ZNIT_TOPMOST_MAINWIN 0x21000000</span>00833 <span class="preprocessor"></span><span class="preprocessor">#define ZNIT_TOPMOST_TOOLWIN 0x22000000</span>00834 <span class="preprocessor"></span><span class="preprocessor">#define ZNIT_TOPMOST_CONTROL 0x20000000</span>00835 <span class="preprocessor"></span>00836 <span class="preprocessor">#define ZNIT_NORMAL_MAINWIN  0x11000000</span>00837 <span class="preprocessor"></span><span class="preprocessor">#define ZNIT_NORMAL_TOOLWIN  0x12000000</span>00838 <span class="preprocessor"></span><span class="preprocessor">#define ZNIT_NORMAL_CONTROL  0x10000000</span>00839 <span class="preprocessor"></span>00840 <span class="preprocessor">#define ZNIT_NULL            0x00000000</span>00841 <span class="preprocessor"></span>00842 <span class="preprocessor">#define ZNIF_VISIBLE         0x00000002</span>00843 <span class="preprocessor"></span><span class="preprocessor">#define ZNIF_DISABLED        0x00000004</span>00844 <span class="preprocessor"></span>00846 <span class="keyword">typedef</span> <span class="keyword">struct </span>_ZNODEINFO00847 {00873     <a class="code" href="group__win32__types.htm#ga4">DWORD</a>           type;00874 00883     <a class="code" href="group__win32__types.htm#ga4">DWORD</a>           flags;00884 00886     <span class="keyword">const</span> <span class="keywordtype">char</span>*     caption;00888     <a class="code" href="struct__RECT.htm">RECT</a>            rc;00889 00891     <span class="keywordtype">int</span>             cli;00893     <a class="code" href="group__handles.htm#ga1">HWND</a>            hwnd;00898     <a class="code" href="group__handles.htm#ga1">HWND</a>            main_win;00899 } ZNODEINFO;00900 00920 MG_EXPORT <a class="code" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI ServerGetZNodeInfo (MG_Layer* layer, <span class="keywordtype">int</span> idx_znode, 00921                 ZNODEINFO* znode_info);00922 00955 MG_EXPORT <a class="code" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI ServerDoZNodeOperation (MG_Layer* layer, <span class="keywordtype">int</span> idx_znode, 00956                 <span class="keywordtype">int</span> op_code, <span class="keywordtype">void</span>* op_data, <a class="code" href="group__simple__types.htm#ga0">BOOL</a> notify);00957 00969 MG_EXPORT <span class="keywordtype">int</span> GUIAPI GetClientByPID (<span class="keywordtype">int</span> pid);00970 00987 MG_EXPORT <a class="code" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI SetTopmostClient (<span class="keywordtype">int</span> cli);00988 00993 MG_EXPORT <span class="keywordtype">void</span> GUIAPI DisableClientsOutput (<span class="keywordtype">void</span>);00994 01001 MG_EXPORT <span class="keywordtype">void</span> GUIAPI UpdateTopmostLayer (<span class="keyword">const</span> <a class="code" href="struct__RECT.htm">RECT</a>* dirty_rc);01002 01039 <span class="preprocessor">#define MAX_SYS_REQID           0x0014</span>01040 <span class="preprocessor"></span>01047 <span class="preprocessor">#define MAX_REQID               0x0020</span>01048 <span class="preprocessor"></span>01050 <span class="keyword">typedef</span> <span class="keyword">struct </span>_REQUEST {01052     <span class="keywordtype">int</span> id;01054     <span class="keyword">const</span> <span class="keywordtype">void</span>* data;01056     size_t len_data;01057 } REQUEST;01059 <span class="keyword">typedef</span> REQUEST* PREQUEST;01060 01080 <span class="keywordtype">int</span> GUIAPI ClientRequest (PREQUEST request, <span class="keywordtype">void</span>* result, <span class="keywordtype">int</span> len_rslt);01081 01093 <span class="keywordtype">int</span> GUIAPI GetSockFD2Server (<span class="keywordtype">void</span>);01094 01112 <span class="keywordtype">int</span> GUIAPI ServerSendReply (<span class="keywordtype">int</span> clifd, <span class="keyword">const</span> <span class="keywordtype">void</span>* reply, <span class="keywordtype">int</span> len);01113 01120 <span class="keyword">typedef</span> int (* REQ_HANDLER) (<span class="keywordtype">int</span> cli, <span class="keywordtype">int</span> clifd, <span class="keywordtype">void</span>* buff, size_t len);01121 01140 <a class="code" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI RegisterRequestHandler (<span class="keywordtype">int</span> req_id, REQ_HANDLER your_handler);01141 01157 REQ_HANDLER GUIAPI GetRequestHandler (<span class="keywordtype">int</span> req_id);01158 01193 <span class="keywordtype">int</span> serv_listen (<span class="keyword">const</span> <span class="keywordtype">char</span>* name);01194 01216 <span class="keywordtype">int</span> serv_accept (<span class="keywordtype">int</span> listenfd, pid_t *pidptr, uid_t *uidptr);01217 01238 <span class="keywordtype">int</span> cli_conn (<span class="keyword">const</span> <span class="keywordtype">char</span>* name, <span class="keywordtype">char</span> project);01239 01240 <span class="preprocessor">#define SOCKERR_IO          -1</span>01241 <span class="preprocessor"></span><span class="preprocessor">#define SOCKERR_CLOSED      -2</span>01242 <span class="preprocessor"></span><span class="preprocessor">#define SOCKERR_INVARG      -3</span>01243 <span class="preprocessor"></span><span class="preprocessor">#define SOCKERR_TIMEOUT     -4</span>01244 <span class="preprocessor"></span><span class="preprocessor">#define SOCKERR_OK          0</span>01245 <span class="preprocessor"></span>01274 <span class="keywordtype">int</span> sock_write_t (<span class="keywordtype">int</span> fd, <span class="keyword">const</span> <span class="keywordtype">void</span>* buff, 01275                 <span class="keywordtype">int</span> count, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> timeout);01276 01304 <span class="keywordtype">int</span> sock_read_t (<span class="keywordtype">int</span> fd, <span class="keywordtype">void</span>* buff, <span class="keywordtype">int</span> count, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> timeout);01305 01312 <span class="preprocessor">#define sock_write(fd, buff, count) sock_write_t(fd, buff, count, 0)</span>01313 <span class="preprocessor"></span>01320 <span class="preprocessor">#define sock_read(fd, buff, count) sock_read_t(fd, buff, count, 0)</span>01321 <span class="preprocessor"></span>01326 <span class="preprocessor">#endif </span><span class="comment">/* !_STAND_ALONE */</span>

⌨️ 快捷键说明

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