亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
国产一区二区不卡老阿姨| 7777精品伊人久久久大香线蕉的| 在线免费视频一区二区| 日韩欧美国产精品| 亚洲日本中文字幕区| 国产精品综合一区二区三区| 欧美性受xxxx| 成人欧美一区二区三区小说 | 欧美日韩一区二区三区高清 | 日韩欧美国产一区二区在线播放| 最新日韩在线视频| 精品在线观看视频| 欧美一级艳片视频免费观看| 亚洲一区二区三区影院| 91亚洲精华国产精华精华液| 国产无遮挡一区二区三区毛片日本 | 亚洲一区二区在线免费观看视频 | 久久精品国产精品亚洲综合| 在线观看亚洲a| 成人欧美一区二区三区| 丁香激情综合五月| 久久精品无码一区二区三区| 蜜桃精品视频在线| 91精品国产福利在线观看| 亚洲va韩国va欧美va| 欧美日韩精品专区| 亚洲成人福利片| 欧美精品在线一区二区| 亚洲国产成人高清精品| 欧美美女网站色| 日日夜夜精品视频天天综合网| 欧美影院精品一区| 亚洲一区二区三区不卡国产欧美| 在线精品观看国产| 午夜不卡av在线| 日韩一级片在线观看| 久久99国产精品麻豆| 日韩三级高清在线| 国内精品在线播放| 国产欧美视频一区二区| 粉嫩av一区二区三区粉嫩| 国产精品久久三| 色综合久久综合网97色综合| 亚洲一二三四区| 欧美精品 日韩| 久久精品国产第一区二区三区| 久久一二三国产| 成人精品电影在线观看| 亚洲柠檬福利资源导航| 欧美这里有精品| 六月丁香综合在线视频| 国产午夜精品福利| 在线视频观看一区| 美女高潮久久久| 日本一区二区三区免费乱视频 | 一区二区三区色| 欧美年轻男男videosbes| 奇米影视一区二区三区| 国产婷婷色一区二区三区在线| a亚洲天堂av| 午夜久久福利影院| 国产日韩精品一区二区浪潮av| 色综合久久久网| 另类成人小视频在线| 中文字幕一区二区三区不卡| 91精品国产综合久久精品app| 国产精品亚洲综合一区在线观看| 亚洲激情av在线| 精品国产成人在线影院| 色综合久久九月婷婷色综合| 久久国产夜色精品鲁鲁99| 亚洲欧美日韩一区二区三区在线观看| 欧美美女一区二区三区| 成人精品一区二区三区中文字幕| 亚洲一二三四在线| 国产精品理论片| 日韩欧美一级特黄在线播放| 91色在线porny| 国产精品系列在线观看| 日韩国产在线观看一区| 亚洲日本在线天堂| 国产午夜精品福利| 日韩欧美国产麻豆| 欧美三级视频在线观看| av电影在线观看一区| 久久精品99久久久| 五月激情综合色| 亚洲精品免费电影| 国产精品天干天干在观线| 欧美sm极限捆绑bd| 欧美一区二区三区喷汁尤物| 一本一本大道香蕉久在线精品 | 欧美亚洲尤物久久| 成人不卡免费av| 国产福利精品一区二区| 蜜臀久久99精品久久久久久9| 亚洲一二三四区| 亚洲免费看黄网站| 亚洲欧洲精品天堂一级| 国产精品三级av| 国产三级一区二区三区| 精品99999| 亚洲精品在线观看视频| 精品美女在线观看| 欧美大片在线观看一区二区| 91麻豆精品国产91久久久使用方法 | 91电影在线观看| av亚洲精华国产精华精| 成人h动漫精品| 成人一道本在线| 成人激情校园春色| av一区二区三区| 91视频一区二区三区| 色综合久久99| 在线日韩av片| 欧美日韩中文字幕一区二区| 欧美自拍偷拍午夜视频| 欧美日韩视频在线观看一区二区三区 | 97se亚洲国产综合在线| av午夜一区麻豆| 91久久精品一区二区| 日本韩国精品一区二区在线观看| 91在线观看视频| 欧美综合在线视频| 欧美人牲a欧美精品| 日韩一卡二卡三卡| 国产亚洲精品bt天堂精选| 国产精品女主播在线观看| 亚洲视频中文字幕| 亚洲福中文字幕伊人影院| 日韩av一区二区在线影视| 韩国av一区二区三区在线观看| 粉嫩一区二区三区在线看| 91美女片黄在线观看91美女| 欧美无乱码久久久免费午夜一区| 欧美精品丝袜中出| 久久久久99精品一区| 综合久久国产九一剧情麻豆| 亚洲高清免费视频| 精品无码三级在线观看视频| 国产精品一级片在线观看| 91蝌蚪porny九色| 91精品国产综合久久久蜜臀图片| 久久久久亚洲蜜桃| 亚洲一区二区av在线| 麻豆成人免费电影| 99久久国产综合精品女不卡| 51精品国自产在线| 国产精品不卡一区| 日本欧洲一区二区| 暴力调教一区二区三区| 欧美老女人第四色| 中文一区一区三区高中清不卡| 亚洲愉拍自拍另类高清精品| 麻豆中文一区二区| 99re免费视频精品全部| 欧美zozozo| 一区二区三区在线免费视频| 国产精品538一区二区在线| 欧美熟乱第一页| 日本一区免费视频| 天天操天天干天天综合网| 成人国产一区二区三区精品| 欧美片网站yy| 亚洲少妇最新在线视频| 国内精品伊人久久久久av影院| 欧美在线观看18| 国产精品久久久久久久久快鸭| 日本成人在线不卡视频| 色综合久久66| 国产精品久久看| 国产一区二区福利视频| 91精品久久久久久久91蜜桃 | 欧美精品自拍偷拍| 亚洲人成人一区二区在线观看| 精品一二线国产| 欧美猛男gaygay网站| 亚洲免费视频成人| www.日韩在线| 国产欧美一区二区精品仙草咪| 蓝色福利精品导航| 欧美日韩精品系列| 亚洲精品国产无天堂网2021| 高清日韩电视剧大全免费| 精品久久久久一区二区国产| 亚洲成人精品在线观看| 欧美tickling网站挠脚心| 蜜桃精品在线观看| 欧美一区二区在线不卡| 亚洲第一精品在线| 欧洲一区二区三区在线| 亚洲乱码日产精品bd| 成人h动漫精品一区二区| 欧美激情在线观看视频免费| 国产黄人亚洲片| 久久精品亚洲麻豆av一区二区| 狠狠色丁香久久婷婷综合_中| 精品国产一区二区三区久久久蜜月 | 一个色在线综合| 色香蕉成人二区免费|