亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
亚洲欧洲性图库| 日韩美女啊v在线免费观看| 成人妖精视频yjsp地址| 亚洲一级二级三级在线免费观看| 日韩免费观看2025年上映的电影| 成人午夜电影小说| 日本亚洲欧美天堂免费| 18欧美乱大交hd1984| 日韩免费看的电影| 欧美三级韩国三级日本一级| 国产乱子伦一区二区三区国色天香| 一区二区久久久久| 久久久99精品久久| 欧美久久婷婷综合色| 成人av电影在线网| 国产原创一区二区三区| 石原莉奈在线亚洲二区| 亚洲婷婷在线视频| 欧美国产日韩精品免费观看| 日韩欧美另类在线| 欧洲激情一区二区| av成人免费在线观看| 国产永久精品大片wwwapp| 三级影片在线观看欧美日韩一区二区| 亚洲日本青草视频在线怡红院| 久久影院午夜片一区| 日韩欧美国产一区二区在线播放| 欧美性淫爽ww久久久久无| 色综合视频一区二区三区高清| 国产九色sp调教91| 精品在线一区二区| 免费成人性网站| 日本网站在线观看一区二区三区| 亚洲香肠在线观看| 亚洲国产日韩综合久久精品| 一级做a爱片久久| 一区二区三区在线高清| 亚洲欧美乱综合| ...av二区三区久久精品| 国产精品色眯眯| 中文成人综合网| 国产日韩欧美综合在线| 中文字幕av不卡| 国产色综合久久| 国产亚洲精品久| 国产精品素人视频| 国产日产亚洲精品系列| 中文字幕乱码久久午夜不卡| 欧美国产日韩一二三区| 中文字幕亚洲视频| 亚洲另类在线视频| 一区二区三区中文在线| 一区二区三区国产精品| 一区二区三区高清| 亚洲国产精品一区二区久久 | 午夜影视日本亚洲欧洲精品| 亚洲h精品动漫在线观看| 亚洲成人av福利| 美洲天堂一区二卡三卡四卡视频 | 亚洲国产成人自拍| 中文字幕不卡一区| 一区二区高清免费观看影视大全| 亚洲激情自拍偷拍| 蜜臀av在线播放一区二区三区 | 欧美日韩欧美一区二区| 欧美精品第1页| 精品国产凹凸成av人网站| 久久午夜色播影院免费高清| 欧美激情在线免费观看| 亚洲欧洲精品天堂一级| 一区二区日韩av| 久久99久久精品| 不卡av免费在线观看| 精品1区2区3区| 久久综合久久综合亚洲| 亚洲人快播电影网| 日韩激情视频在线观看| 福利一区福利二区| 欧美久久久久久久久| 久久精品视频免费| 亚洲午夜激情av| 国产精一品亚洲二区在线视频| 色综合久久综合网97色综合 | 国产亚洲一区二区三区在线观看| 1024国产精品| 免费高清在线一区| 色婷婷av一区二区三区gif| 91精品一区二区三区久久久久久 | 国产一区视频导航| 在线观看视频91| 2023国产精品自拍| 亚洲自拍偷拍av| 国产成人啪午夜精品网站男同| 日本黄色一区二区| 亚洲精品在线免费播放| 亚洲高清在线视频| 成人一区二区三区在线观看| 欧美一卡2卡三卡4卡5免费| 国产精品萝li| 激情综合五月天| 精品视频1区2区| 亚洲天堂免费看| 韩国精品免费视频| 欧美剧情电影在线观看完整版免费励志电影| 欧美经典一区二区| 蜜乳av一区二区三区| 在线观看av不卡| 日韩理论片中文av| 国产麻豆精品一区二区| 在线成人免费视频| 亚洲色图欧美激情| 国产成人综合在线| 日韩免费电影一区| 日韩高清不卡一区二区三区| 色一情一乱一乱一91av| 国产欧美一区二区精品性| 日本特黄久久久高潮| 欧美日韩国产美| 一区二区三区在线免费播放| aaa欧美大片| 国产欧美一区二区精品忘忧草 | 成人一区二区三区在线观看| 精品免费视频一区二区| 蜜臀av亚洲一区中文字幕| 欧美中文字幕一区二区三区 | 国产欧美日韩精品在线| 老司机一区二区| 欧美一级搡bbbb搡bbbb| 亚洲一区二区三区影院| 色欧美88888久久久久久影院| 国产精品美女久久久久av爽李琼| 国产精一区二区三区| 久久久久久久久97黄色工厂| 九九**精品视频免费播放| 日韩一级成人av| 奇米精品一区二区三区在线观看| 91 com成人网| 青青草原综合久久大伊人精品| 欧美喷水一区二区| 午夜精品福利视频网站| 欧美精品 国产精品| 五月天亚洲精品| 91精品欧美久久久久久动漫 | 日韩美女视频19| 99久久久国产精品免费蜜臀| 中文字幕一区二区在线观看| 成人a免费在线看| 1024成人网| 欧美视频一区在线| 丝袜美腿一区二区三区| 日韩美女视频在线| 国产一区中文字幕| 国产精品系列在线| 99综合电影在线视频| 亚洲美女区一区| 欧美日韩一区小说| 日本sm残虐另类| 久久久久久一二三区| 成人高清免费观看| 一区二区三区加勒比av| 欧美一区二区三区思思人| 加勒比av一区二区| 国产精品人妖ts系列视频| 色系网站成人免费| 丝袜亚洲另类欧美| 国产亚洲精品aa| 91在线云播放| 日韩精品一二三四| 国产三级欧美三级日产三级99 | 亚洲精品一区二区三区影院| 国产69精品久久久久毛片| 亚洲桃色在线一区| 欧美一区二区成人| 成人毛片老司机大片| 亚洲午夜在线视频| 久久一日本道色综合| 色哟哟日韩精品| 激情综合网av| 一区二区三区免费网站| 精品美女被调教视频大全网站| 91在线云播放| 极品少妇xxxx精品少妇| 一个色综合网站| 欧美精品一区二区不卡| 一本到不卡免费一区二区| 麻豆国产欧美日韩综合精品二区| 国产精品毛片久久久久久| 欧美人妖巨大在线| bt7086福利一区国产| 日韩福利视频网| 中文字幕一区二区三| 欧美sm极限捆绑bd| 色老汉一区二区三区| 国产一区二区毛片| 婷婷六月综合网| 中文字幕在线视频一区| 日韩久久久精品| 欧美日韩综合在线免费观看| 成人av在线观| 久久国产精品99久久久久久老狼|