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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? minigui.h

?? MINIGUI 加UCOS 很好的源代碼 找了好久才找到了 拿出來與大家一起分享!
?? H
?? 第 1 頁 / 共 5 頁
字號(hào):
/**
 * \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-2004 Feynman Software.

    This file is part of MiniGUI, a compact cross-platform Graphics 
    User Interface (GUI) support system for real-time embedded systems.

    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.91 2004/07/30 05:51:22 panweiguo Exp $
 * 
 *             MiniGUI for Linux/uClinux, eCos, uC/OS-II, and VxWorks version 1.6.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 __cplusplus
extern "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_VERSION
BOOL 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 

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩精品系列| 精品影院一区二区久久久| 日韩女优av电影| 日本道在线观看一区二区| 精品一区二区三区视频| 一区二区理论电影在线观看| 国产精品麻豆久久久| 日韩视频免费观看高清完整版| 激情图区综合网| 日本中文在线一区| 亚洲成va人在线观看| 一区二区视频在线看| 亚洲手机成人高清视频| 中文字幕 久热精品 视频在线| 亚洲精品在线电影| 91精品综合久久久久久| 欧美一级黄色大片| 91精品国产入口| 欧美日韩免费一区二区三区| 成人黄动漫网站免费app| 久久国产剧场电影| 激情伊人五月天久久综合| 久久国产综合精品| 久久97超碰色| 国产精品自拍在线| 国产不卡视频一区| 不卡视频在线观看| 99国产精品视频免费观看| 99久久久无码国产精品| 成人av先锋影音| 91丝袜国产在线播放| 国产91丝袜在线播放九色| 国产一区二区调教| 成人av动漫网站| 色综合色综合色综合| 欧美日韩一区三区四区| 日韩一区二区三区电影在线观看 | 久久嫩草精品久久久精品| 在线播放国产精品二区一二区四区| 欧美性色综合网| 日韩一级欧美一级| 3d动漫精品啪啪| 亚洲欧洲av一区二区三区久久| 亚洲一级不卡视频| 国产白丝精品91爽爽久久| 91成人免费网站| 欧美电影免费观看高清完整版在线| 中文字幕亚洲欧美在线不卡| 亚洲一区二区三区四区不卡| 亚洲夂夂婷婷色拍ww47| 国产综合久久久久影院| 4438成人网| 亚洲婷婷综合色高清在线| 日韩国产欧美在线视频| 亚洲激情在线激情| 不卡视频一二三四| 日韩欧美一区二区免费| 亚洲高清不卡在线| 成人深夜视频在线观看| 欧美一卡二卡三卡| 国产精品少妇自拍| 日韩福利电影在线| 99久久国产免费看| 久久奇米777| 亚洲色图一区二区三区| 国产一区二区三区综合| 欧美体内she精高潮| 国产精品久久久久一区二区三区| 无吗不卡中文字幕| 99久久免费国产| 久久久久国产成人精品亚洲午夜| 亚洲主播在线观看| 成人app在线观看| 亚洲精品一区二区三区四区高清| 亚洲色欲色欲www| 麻豆成人91精品二区三区| 欧洲国产伦久久久久久久| 国产精品久久久久国产精品日日| 久久99国产精品久久99果冻传媒| 色婷婷一区二区三区四区| 亚洲国产精品国自产拍av| 亚洲高清一区二区三区| 91玉足脚交白嫩脚丫在线播放| 国产丝袜欧美中文另类| 日本亚洲欧美天堂免费| 一本一道久久a久久精品综合蜜臀| 精品日产卡一卡二卡麻豆| 午夜欧美一区二区三区在线播放| 99久久伊人网影院| 国产精品免费av| 国产91综合网| 国产欧美日韩综合精品一区二区| 激情久久五月天| 欧美精品一区二区三区蜜臀| 日韩激情中文字幕| 欧美丰满高潮xxxx喷水动漫| 亚洲图片欧美综合| 欧美日韩一区在线观看| 日韩av在线免费观看不卡| 欧美日韩亚洲综合一区二区三区| 亚洲免费伊人电影| 欧美性猛片aaaaaaa做受| 亚洲日本在线a| 欧美色倩网站大全免费| 热久久久久久久| 欧美片网站yy| 韩国一区二区三区| 国产三级精品视频| 北岛玲一区二区三区四区| 亚洲视频综合在线| 欧美性大战久久久| 日本中文字幕一区| 久久久www成人免费毛片麻豆| 国产suv一区二区三区88区| 国产精品久久久久影院亚瑟 | 色综合网色综合| 久久久99精品久久| 欧美日韩国产色站一区二区三区| 美女网站视频久久| 亚洲欧美在线aaa| 91精品国产欧美日韩| 色妹子一区二区| 国产资源精品在线观看| 日韩美女啊v在线免费观看| 日韩美女在线视频| 91女厕偷拍女厕偷拍高清| 亚洲一区二区视频在线观看| 久久午夜免费电影| 欧美影视一区在线| 国产91精品露脸国语对白| 亚洲成人av资源| 久久久久久电影| 欧美群妇大交群的观看方式| 国产福利一区在线| 三级影片在线观看欧美日韩一区二区| 久久综合中文字幕| 91蝌蚪porny| 国产一区二区在线免费观看| 一区二区三区成人在线视频 | 一区二区三区在线观看国产| 欧美mv日韩mv亚洲| 91国产免费观看| 成人黄色小视频在线观看| 六月丁香婷婷色狠狠久久| 亚洲视频在线一区| 337p日本欧洲亚洲大胆精品| 欧美日韩视频第一区| 成人一二三区视频| 精品一区二区三区在线播放| 亚洲女女做受ⅹxx高潮| 久久综合色8888| 欧美一区二区三区四区五区| 91小视频免费观看| 国内精品伊人久久久久av一坑| 亚洲午夜久久久| 中文字幕在线一区免费| 久久久国际精品| 日韩美一区二区三区| 在线综合视频播放| 欧美日韩综合在线| 91麻豆成人久久精品二区三区| 国产精品香蕉一区二区三区| 久久国产精品99久久人人澡| 中文字幕亚洲不卡| 久久综合色婷婷| 欧美日韩一卡二卡| 日本道色综合久久| 色狠狠色狠狠综合| 色综合天天视频在线观看| 成人av免费在线| 国产福利精品一区二区| 国产伦精品一区二区三区在线观看| 亚洲成人高清在线| 日韩精品乱码av一区二区| 亚洲在线视频一区| 亚洲国产一区二区视频| 一区二区在线观看视频在线观看| 中文字幕国产一区| 欧美激情一区二区三区不卡| www成人在线观看| 欧美激情在线一区二区三区| 欧美日韩视频在线第一区| 欧美另类videos死尸| 欧美videos大乳护士334| 久久久久久久久久久久久久久99| 久久久99久久| 国产精品久久久久影院色老大 | 欧美性生交片4| 精品国产乱码久久久久久蜜臀| 欧美国产97人人爽人人喊| 亚洲一区二区av电影| 国产在线国偷精品免费看| 91成人免费网站| 久久色中文字幕| 亚洲v中文字幕| 成人爱爱电影网址| 精品国一区二区三区| 三级不卡在线观看| 91麻豆产精品久久久久久| 精品国产乱码久久久久久夜甘婷婷|