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

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

?? minigui.h

?? 這是ARM嵌入式系統的實驗教程中的MINIGUI的實驗源代碼!
?? 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-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 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲日穴在线视频| 欧美日韩一级二级| 狠狠色丁香婷婷综合| 美国一区二区三区在线播放| 三级在线观看一区二区| 亚洲一区二区视频在线观看| 亚洲免费电影在线| 亚洲国产精品影院| 日韩国产精品久久久久久亚洲| 视频在线观看一区| 久久99精品久久久久久| 国产激情偷乱视频一区二区三区| 国产精华液一区二区三区| 国产精品一区二区久久不卡| 国产成人免费视频网站高清观看视频| 国产盗摄一区二区| 色综合视频一区二区三区高清| 91色乱码一区二区三区| 在线播放一区二区三区| 精品1区2区在线观看| 中文字幕高清不卡| 一区二区三区蜜桃网| 秋霞国产午夜精品免费视频| 国产精品亚洲第一| 色噜噜狠狠一区二区三区果冻| 欧美日韩免费不卡视频一区二区三区| 6080国产精品一区二区| 久久免费美女视频| 一区二区三区色| 久久99精品网久久| 99久久精品国产麻豆演员表| 正在播放一区二区| 国产欧美日韩麻豆91| 亚洲一区二区三区三| 国产精品自拍av| 欧美日韩久久不卡| 中文字幕欧美日本乱码一线二线| 亚洲一区二区三区在线| 国产精品综合网| 91.com在线观看| 国产精品成人免费在线| 美女性感视频久久| 91国偷自产一区二区三区成为亚洲经典| 日韩欧美电影在线| 亚洲一区二区三区在线看| 国产精品亚洲一区二区三区妖精 | 国产清纯在线一区二区www| 亚洲欧美日韩系列| 国产成人综合在线观看| 6080亚洲精品一区二区| 一区二区视频在线看| 丁香另类激情小说| 欧美精品一区二区精品网| 亚洲第一av色| 在线观看一区二区视频| 亚洲欧美自拍偷拍色图| 国产激情精品久久久第一区二区 | 色偷偷久久一区二区三区| 久久久久一区二区三区四区| 日本视频中文字幕一区二区三区| 色国产精品一区在线观看| 亚洲国产高清不卡| 国产福利一区二区三区| 久久久影视传媒| 麻豆成人在线观看| 日韩视频一区二区在线观看| 五月婷婷色综合| 欧美日韩一区精品| 亚洲成人精品在线观看| 欧美视频中文字幕| 亚洲国产综合人成综合网站| 色又黄又爽网站www久久| 亚洲精品伦理在线| 在线视频欧美精品| 亚洲第一会所有码转帖| 欧美日韩在线观看一区二区| 亚洲妇女屁股眼交7| 欧美日韩一区二区三区在线 | 555夜色666亚洲国产免| 天堂久久一区二区三区| 欧美日本不卡视频| 青青草原综合久久大伊人精品优势 | 不卡av免费在线观看| 成人欧美一区二区三区1314| 91麻豆精东视频| 偷拍自拍另类欧美| 精品欧美一区二区久久| 国产成人在线视频网址| 1000部国产精品成人观看| 在线欧美小视频| 免费在线观看一区二区三区| 欧美成人一区二区三区| 丁香婷婷深情五月亚洲| 亚洲三级久久久| 91精品国产综合久久福利 | 亚洲色图一区二区三区| 在线精品视频一区二区三四| 日韩国产一二三区| 国产女人18毛片水真多成人如厕 | 狂野欧美性猛交blacked| 久久综合色婷婷| 99r精品视频| 琪琪一区二区三区| 国产精品午夜免费| 欧美日韩高清一区| 大桥未久av一区二区三区中文| 亚洲视频小说图片| 91精品国产欧美一区二区18 | 日本不卡一区二区三区高清视频| 精品国产乱码久久| 欧美中文字幕一区| 国产精品一区二区x88av| 怡红院av一区二区三区| 欧美大胆一级视频| 欧美亚洲国产一区二区三区| 蜜桃视频免费观看一区| 亚洲日本电影在线| 精品国产91乱码一区二区三区| 色婷婷综合久久久久中文| 激情深爱一区二区| 亚洲伊人色欲综合网| 亚洲国产电影在线观看| 精品日韩一区二区| 欧美精品一二三四| 91久久一区二区| 成人h精品动漫一区二区三区| 奇米色777欧美一区二区| 一区二区三区影院| 国产精品视频麻豆| 久久久高清一区二区三区| 欧美日韩国产免费| 日本道精品一区二区三区| 国产91精品免费| 国产乱子伦视频一区二区三区 | 精品一区二区三区免费| 亚洲在线视频一区| 亚洲色图欧美激情| 国产精品乱码人人做人人爱| 国产视频亚洲色图| 久久久av毛片精品| 久久综合国产精品| 亚洲精品一线二线三线| 欧美一区午夜视频在线观看| 欧美日韩国产综合视频在线观看| 欧美影视一区二区三区| 一本到三区不卡视频| 97se亚洲国产综合自在线观| 丁香激情综合国产| 94-欧美-setu| 色婷婷av一区二区三区gif| 99精品视频在线播放观看| 成人免费视频一区| 9人人澡人人爽人人精品| 99精品国产热久久91蜜凸| 成人黄色国产精品网站大全在线免费观看| 极品尤物av久久免费看| 久久精品国产精品亚洲红杏| 日本va欧美va欧美va精品| 久久成人羞羞网站| 国产乱码字幕精品高清av | 日本欧美一区二区| 久久99精品国产.久久久久| 久久99精品国产麻豆婷婷洗澡| 久久国产欧美日韩精品| 国产成人午夜高潮毛片| 男人的天堂久久精品| 美日韩一级片在线观看| 久色婷婷小香蕉久久| 福利一区二区在线| 色诱亚洲精品久久久久久| 欧美精品三级在线观看| 欧美电影免费观看高清完整版在线 | 亚洲成a人v欧美综合天堂下载| 亚洲国产cao| 韩国精品主播一区二区在线观看| 粉嫩av一区二区三区粉嫩| 色综合久久综合网97色综合| 日本乱码高清不卡字幕| 国产一级精品在线| 不卡的电影网站| 欧美日韩精品久久久| 欧美喷水一区二区| 国产日本亚洲高清| 香蕉久久一区二区不卡无毒影院| 麻豆精品在线播放| 91影院在线免费观看| 欧美一级精品大片| 一区在线观看视频| 蜜桃精品在线观看| 色综合一区二区三区| 欧美大片国产精品| 亚洲欧美另类小说| 国产精品自拍一区| 欧美人牲a欧美精品| 国产精品福利影院| 久久99精品久久久久| 欧美日韩美少妇| 亚洲区小说区图片区qvod| 久久99精品国产麻豆婷婷洗澡| 欧美三级资源在线|