亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? minigui.h

?? 2410開發板上的ucos開發實例
?? H
?? 第 1 頁 / 共 5 頁
字號:
/** * \file minigui.h * \author Wei Yongming <ymwei@minigui.org> * \date 2002/01/06 *  * This file includes global and miscellaneous interfaces of MiniGUI. * \verbatim    Copyright (C) 1998-2002 Wei Yongming.    Copyright (C) 2002-2003 Feynman Software.    This file is part of MiniGUI, a lightweight Graphics User Interface     support library for real-time embedded Linux.    This program is free software; you can redistribute it and/or modify    it under the terms of the GNU General Public License as published by    the Free Software Foundation; either version 2 of the License, or    (at your option) any later version.    This program is distributed in the hope that it will be useful,    but WITHOUT ANY WARRANTY; without even the implied warranty of    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    GNU General Public License for more details.    You should have received a copy of the GNU General Public License    along with this program; if not, write to the Free Software    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA \endverbatim *//* * $Id: minigui.h,v 1.86 2004/02/25 02:34:49 weiym Exp $ *  *             MiniGUI for Linux, uClinux, eCos, and uC/OS-II version 1.5.x *             Copyright (C) 1998-2002 Wei Yongming. *             Copyright (C) 2002-2004 Feynman Software. */#ifndef _MGUI_MINIGUI_H  #define _MGUI_MINIGUI_H#include <stdio.h>#ifndef _LITE_VERSION  #include <pthread.h>  #include <semaphore.h>#endif#ifdef __cplusplusextern "C" {#endif  /* __cplusplus */    /**     * \addtogroup global_vars Global variables     * @{     */    /**     * \defgroup rect_vars Global Rectangles     * @{     *//** * \var RECT g_rcScr * \brief Contains the rectangle of the whole screen. */extern RECT g_rcScr;         /* The RECT of screen. */#if defined(_LITE_VERSION) && !defined(_STAND_ALONE)/** * \var RECT g_rcDesktop * \brief Contains the rectangle of desktop of the application. * * \note Only available for MiniGUI-Lite as an actual global variable. * And \a g_rcDesktop is defined as an alias (macro) of \a g_rcScr for MiniGUI-Threads. * * \sa g_rcScr */extern RECT g_rcDesktop;     /* The RECT of desktop. */#else#define g_rcDesktop     g_rcScr#endif    /** @} end of rect_vars */    /**     * \defgroup lite_vars MiniGUI-Lite specific variables     * @{     */#if defined(_LITE_VERSION) && !defined(_STAND_ALONE)#include <sys/types.h>/** * \var BOOL mgIsServer * \brief Indicates whether the process is the server or a client on MiniGUI-Lite. * * \note Only defined for MiniGUI-Lite. */extern BOOL mgIsServer;      /* Is the server or a client. *//** * \var void* mgSharedRes * \brief Contains the pointer to the shared resource of MiniGUI-Lite. * * \note Not defined for MiniGUI-Threads, and the shared resource is * read-only for all clients. * * \sa mgSizeRes */extern void* mgSharedRes;    /* The pointer to shared resource. *//** * \var void* mgSizeRes * \brief Contains the length of shared resource of MiniGUI-Lite. * * \note Only defined for MiniGUI-Lite.  * * \sa mgSharedRes */extern size_t mgSizeRes;     /* The size of shared resource. */#define LEN_LAYER_NAME      14#define LEN_CLIENT_NAME     14#define INV_LAYER_HANDLE    0/* variables only available for the server */struct MG_Layer;/** Client information. */typedef struct MG_Client{    /** The name of the client. */    char    name [LEN_CLIENT_NAME + 1];    /** PID of the client process. */    pid_t   pid;    /** UID of the client process. */    uid_t   uid;    /** The file descriptor of the socket connected to the client. */    int     fd;    /** The desktop rectangle of the client. */    RECT    rc;    /** The last active tick count of the client. */    DWORD   last_live_time;    /** The additional data of the client. */    DWORD   dwAddData;    /** The pointer to the next client in the same layer. */    struct  MG_Client* next;    /** The pointer to the previous client in the same layer. */    struct  MG_Client* prev;    /** The pointer to the layer on which the client lays. */    struct  MG_Layer* layer;    struct GlobalRes* global_res;} MG_Client;struct _CLIPRGN;/** Layer information. */typedef struct MG_Layer{    /** The name of the layer. */    char    name [LEN_LAYER_NAME + 1];    /** The pointer to the list of clients which lay on the layer. */    MG_Client* cli_head;    /** The pointer to the active client on the layer. */    MG_Client* cli_active;    /** The additional data of the layer. */    DWORD   dwAddData;    /** The pointer to the next layer. */    struct MG_Layer* next;    /** The pointer to the previous layer. */    struct MG_Layer* prev;    /** The pointer to the region contains the spare rectangles of the layer. */    struct _CLIPRGN* spare_rects;} MG_Layer;/** * \var int mgClientSize * \brief The current size of the array \a mgClients. * * \sa mgClients */extern int mgClientSize;/** * \var MG_Client* mgClients * \brief The pointer to the array contains all clients' information. * * You can access the elements in \a mgClients as a normal array. If the  * field \a fd of one element is not less than zero, then the element * will be a vaild client. * * \sa MG_Client */extern MG_Client* mgClients;/** * \var MG_Layer* mgTopmostLayer * \brief The pointer to the topmost layer. * * \sa MG_Layer */extern MG_Layer* mgTopmostLayer;/** * \var MG_Layer* mgLayers * \brief The pointer to the list of layers. * * \sa MG_Layer */extern MG_Layer* mgLayers;#endif /* _LITE_VERSION && !_STAND_ALONE */    /** @} end of lite_vars */    /** @} end of global_vars */#ifndef _LITE_VERSIONBOOL GUIAPI InitGUI (void);void GUIAPI TerminateGUI (int rcByGUI);void GUIAPI MiniGUIPanic (int exitcode);#endif    /**     * \addtogroup fns Functions     * @{     */    /**     * \addtogroup global_fns Global/general functions     * @{     */    /**     * \defgroup lite_fns MiniGUI-Lite specific functions     * @{     */#ifdef _LITE_VERSION    /**     * \defgroup lite_listenfd_fns Listening a file descriptor     *     * Register/Unregister a listen fd to MiniGUI.     *     * When you need to listen a file descriptor, you can use \a select(2)     * system call. In MiniGUI, you can also register it to MiniGUI to      * be a listened fd, and when there is a read/write/except event on      * the registered fd , MiniGUI will sent a notification message to      * the registered window.     *     * Example:     *     * \include listenfd.c     *     * @{     */#define MAX_NR_LISTEN_FD   5/**  * \fn BOOL GUIAPI RegisterListenFD (int fd, int type, HWND hwnd, void* context) * \brief Registers a listened file descriptor to MiniGUI-Lite. * This function registers the file desciptor \a fd to MiniGUI-Lite for listening. * * When there is a read/write/except event on this \a fd, MiniGUI * will post a MSG_FDEVENT message with wParam being equal to * MAKELONG (fd, type), and the lParam being set to \a context * to the target window. * * \param fd The file descriptor to be listened. * \param type The type of the event to be listened, can be POLLIN, POLLOUT, or POLLERR. * \param hwnd The handle to the window will receive MSG_FDEVENT message. * \param context The value will be passed to the window as lParam of MSG_FDEVENT message. * \return TRUE if all OK, and FALSE on error. * * \note Only available on MiniGUI-Lite. * * \sa UnregisterListenFD, system_msgs */BOOL GUIAPI RegisterListenFD (int fd, int type, HWND hwnd, void* context);/**  * \fn BOOL GUIAPI UnregisterListenFD (int fd) * \brief Unregisters a being listened file descriptor. * * This function unregisters the being listened file descriptor \a fd. * * \param fd The file descriptor to be unregistered, should be a being  *        listened file descriptor. * \return TRUE if all OK, and FALSE on error. * * \note Only available on MiniGUI-Lite. * * \sa RegisterListenFD */BOOL GUIAPI UnregisterListenFD (int fd);    /** @} end of lite_listenfd_fns */#ifdef _STAND_ALONE#define SetDesktopRect(lx, ty, rx, by) {}#else    /**     * \defgroup lite_layer_fns Layer operations     *     * A client in MiniGUI-Lite can create a new layer or join an existed layer      * in order to get the visible desktop rectangle on the screen of it.     *     * Example:     *     * \include client_startup.c     *     * @{     *//**  * \fn GHANDLE GUIAPI JoinLayer (const char* layer_name, const char* client_name, int lx, int ty, int rx, int by) * \brief Joins to a layer. * * This function should be called by clients before calling any other MiniGUI * functions. You can call \a GetLayerInfo to get the layer information. * If the layer to be joined does not exist, the server, i.e. \a mginit, will * try to create a new one. If you passed a NULL pointer or a null string for  * \a layer_name, a new layer will be created as well. * * For the server of MiniGUI-Lite, this function will ignore the arguments of * \a layer_name and \a client_name. The rectangle defines a region in the  * screen, which is exclusively used by the server, no client can output * to this exclusive retangle. * * The server usually calls SetDesktopRect macro, which is defined as * the following: * * \code * * #define SetDesktopRect(lx, ty, rx, by) JoinLayer ("", "", lx, ty, rx, by) * * \endcode *  * Note that the server can define the exclusive retangle out of the actual * screen range. *  * \param layer_name The name of the layer. * \param client_name The name of the client. * \param lx lx,ty,rx,by: The expected desktop rect of the client. * \param ty lx,ty,rx,by: The expected desktop rect of the client. * \param rx lx,ty,rx,by: The expected desktop rect of the client. * \param by lx,ty,rx,by: The expected desktop rect of the client. * \return The handle to the layer on success, INV_LAYER_HANDLE on error. * * \sa GetLayerInfo, GetDesktopRect, ServerStartup */GHANDLE GUIAPI JoinLayer (const char* layer_name, const char* client_name,                 int lx, int ty, int rx, int by);#define SetDesktopRect(lx, ty, rx, by) \        JoinLayer ("", "", lx, ty, rx, by)/**  * \fn void GUIAPI GetDesktopRect (int* lx, int* ty, int* rx, int* by) * \brief Gets the desktop rectangle. * * After joined to a layer, client can call this function to get the * actual desktop rect of itself.  * * \param lx lx,ty,rx,by: The desktop rect will be returned through these pointers. * \param ty lx,ty,rx,by: The desktop rect will be returned through these pointers. * \param rx lx,ty,rx,by: The desktop rect will be returned through these pointers. * \param by lx,ty,rx,by: The desktop rect will be returned through these pointers. * * \sa JoinLayer */void GUIAPI GetDesktopRect (int* lx, int* ty, int* rx, int* by);#define NAME_SELF_LAYER     ""/**  * \fn GHANDLE GUIAPI GetLayerInfo (const char* layer_name, RECT* max_rect, int* nr_clients, BOOL* is_topmost, int* cli_active) * \brief Gets information of a layer. * * You can get the information of a layer through this function.  * The information will be returned through the pointer arguments  * if the specific pointer is not NULL. * * \param layer_name The name of the layer. * \param max_rect The max desktop rect can be obtained will be returned through this pointer. * \param nr_clients The number of clients in the layer will be returned through this pointer. * \param is_topmost A boolean which indicates whether the layer is the topmost layer will be returned. * \param cli_active The identifier of the active client in the layer. * \return Returns the handle to the layer on success, INV_LAYER_HANDLE on error. *

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩一区二区在线播放| 国产欧美一区二区精品婷婷| 欧美一区二区精美| 欧美一区二区在线免费观看| 69p69国产精品| 3d动漫精品啪啪1区2区免费| 欧美大片免费久久精品三p| 精品久久久久一区| 中文av一区特黄| 亚洲午夜一区二区| 婷婷开心久久网| 国产精品一区二区三区四区| 91在线视频18| 日韩欧美国产麻豆| 中文字幕永久在线不卡| 亚洲宅男天堂在线观看无病毒| 日韩电影在线观看电影| 成人a区在线观看| 欧美精品久久天天躁| 日韩视频在线永久播放| 91精品综合久久久久久| 欧美国产日韩一二三区| 亚洲韩国一区二区三区| 污片在线观看一区二区| 成人97人人超碰人人99| 精品国产精品网麻豆系列| 一区二区在线观看免费| 国产99久久久精品| 91精品一区二区三区久久久久久| 国产精品沙发午睡系列990531| 免费在线观看精品| 欧洲亚洲精品在线| 综合分类小说区另类春色亚洲小说欧美| 久久精品国产77777蜜臀| 欧美中文字幕亚洲一区二区va在线 | 精品日韩欧美在线| 中文字幕的久久| 亚洲福利视频一区| 91年精品国产| 亚洲视频1区2区| 懂色av一区二区夜夜嗨| 精品国产sm最大网站免费看| 日韩国产在线观看| 欧洲国内综合视频| 一区二区三区欧美久久| 91丨porny丨首页| 亚洲男女一区二区三区| 波多野结衣中文字幕一区二区三区| ww久久中文字幕| 国产精品夜夜嗨| 国产精品美女一区二区| 91美女片黄在线| 亚洲免费av高清| 91免费国产在线| 亚洲一区二区三区四区在线| 欧美三级电影一区| 日日摸夜夜添夜夜添亚洲女人| 日韩三级免费观看| 国产精品自拍毛片| 亚洲欧美另类综合偷拍| 欧美三区在线观看| 精品一区二区三区久久久| 久久久久久久久久美女| 91碰在线视频| 蜜桃一区二区三区四区| www亚洲一区| 一本色道久久综合亚洲aⅴ蜜桃| 中文字幕一区视频| 欧美成人精品1314www| 国产尤物一区二区在线| 亚洲日韩欧美一区二区在线| 亚洲色图一区二区三区| 激情文学综合网| 国产精品亚洲一区二区三区在线| 亚洲色图清纯唯美| 精品久久五月天| 欧美日韩午夜精品| 丁香五精品蜜臀久久久久99网站| 午夜国产精品一区| 一区在线播放视频| 日韩欧美一区在线观看| 91在线云播放| 成人av在线影院| 久久99热99| 日本成人中文字幕在线视频| 久久精品国产77777蜜臀| 亚洲在线免费播放| 亚洲三级久久久| 国产视频不卡一区| 精品久久人人做人人爰| 欧美一区二区三区免费视频| 91麻豆免费看片| 成人av小说网| 成人免费观看av| 国产suv精品一区二区883| 久久精品国产第一区二区三区| 亚洲成av人片www| 日韩一区精品字幕| 亚洲成人精品影院| 香蕉影视欧美成人| 亚洲一区二区三区在线播放| 亚洲一区二区在线观看视频| 亚洲美女免费视频| 亚洲乱码国产乱码精品精98午夜 | 久久精品一二三| 国产偷v国产偷v亚洲高清| 国产亚洲一区二区三区在线观看 | 国产成人午夜精品5599 | 国产**成人网毛片九色 | 色综合视频一区二区三区高清| 色婷婷综合久色| 欧美一区二区视频在线观看2020| 欧美高清www午色夜在线视频| 7777精品伊人久久久大香线蕉最新版| 5月丁香婷婷综合| 7777精品伊人久久久大香线蕉的| 欧美日韩在线三级| 在线一区二区三区四区五区 | 欧美一级日韩免费不卡| 日韩欧美国产综合| 久久精品这里都是精品| 中文字幕一区二区三中文字幕| 伊人性伊人情综合网| 日本一道高清亚洲日美韩| 蜜臀av一区二区在线观看| 国产中文字幕一区| 欧美午夜影院一区| 久久人人爽人人爽| 亚洲人xxxx| 蜜桃传媒麻豆第一区在线观看| 成人性生交大片免费看中文| 欧美日免费三级在线| 久久噜噜亚洲综合| 亚洲一区二三区| 国产美女一区二区| 欧美亚洲另类激情小说| 久久久影院官网| 日本va欧美va精品发布| 色就色 综合激情| 国产视频在线观看一区二区三区 | 中文字幕日本不卡| 韩国女主播一区| 欧美日韩一区成人| 亚洲图片另类小说| 国产精品一区久久久久| 日韩精品一区二| 天堂精品中文字幕在线| 在线观看日韩av先锋影音电影院| 精品88久久久久88久久久| 日本亚洲欧美天堂免费| 91官网在线免费观看| 国产日本欧洲亚洲| 精彩视频一区二区三区| 欧美日韩日日骚| 亚洲午夜久久久久久久久电影院 | 久久超碰97中文字幕| 7777精品伊人久久久大香线蕉完整版 | 精品国产三级电影在线观看| 欧美一区二区三区男人的天堂 | 国产精品国产三级国产| 日韩欧美一区二区不卡| 欧美日韩成人在线一区| 色哟哟在线观看一区二区三区| 久久众筹精品私拍模特| 日本va欧美va瓶| 国产suv一区二区三区88区| 色综合久久综合网97色综合 | 99综合电影在线视频| 欧美日韩黄色一区二区| 天天亚洲美女在线视频| 欧美激情综合五月色丁香小说| 色婷婷亚洲婷婷| 韩国v欧美v亚洲v日本v| 亚洲精品一卡二卡| 精品欧美黑人一区二区三区| 99精品视频中文字幕| 日韩**一区毛片| 亚洲色欲色欲www| 国产日韩av一区| 国产激情视频一区二区三区欧美| 成人不卡免费av| 欧美色视频在线观看| 五月婷婷色综合| 亚洲精品在线观看网站| 午夜精品一区二区三区电影天堂 | 亚洲成人先锋电影| 日韩精品一区二区三区视频| 国产成人精品在线看| 国产精品久久夜| 欧美一卡在线观看| 国产精品亚洲成人| 精品国产在天天线2019| 国产精品一区二区三区四区 | 欧美不卡视频一区| 五月婷婷欧美视频| 欧美xxxxxxxx| 不卡电影一区二区三区| 国产精品白丝在线| 欧美本精品男人aⅴ天堂| 日韩电影在线免费看|