⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vcongui.h

📁 usoc在北京博创兴业有限公司的实验平台s3c2410上运行。 2. 各实验的全部源代码分别存放在各实验目录下面。
💻 H
字号:
/** * \file vcongui.h * \author Wei Yongming <ymwei@minigui.org> * \date 2002/01/06 *  * This file includes interfaces for libvcongui, which provides  * a virtual console on 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: vcongui.h,v 1.22 2004/02/25 02:34:49 weiym Exp $ * *             MiniGUI for Linux, uClinux, eCos, and uC/OS-II version 1.5.x *             Copyright (C) 1999-2001 Wei Yongming. *             Copyright (C) 2002-2004 Feynman Software. * * Some idea and source come from CCE (Console Chinese Environment)  * Thank He Rui and Takashi MANABE for their great work and good license. * * The copyright statement of CCE and KON2: * * KON2 - Kanji ON Console - * Copyright (C) 1992-1996 Takashi MANABE (manabe@papilio.tutics.tut.ac.jp) * * CCE - Console Chinese Environment - * Copyright (C) 1998-1999 Rui He (herui@cs.duke.edu) * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright *    notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer in the *    documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED.  IN NO EVENT SHALL THE TERRENCE R. LAMBERT BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. *  */#ifndef	_MGUI_VCONGUI_H#define	_MGUI_VCONGUI_H#ifdef __cplusplusextern "C" {#endif  /* __cplusplus */    /**     * \addtogroup vcongui_fns Interfaces of VCOnGUI library (libvcongui)     *     * Libvcongui provides a virtual console in a main window of MiniGUI.     *     * @{     */#ifndef __cplusplustypedef	enum {false, true} bool;#endif#define VCONGUI_VERSION "Version 0.5 (Nov. 2001)"#define MIN_COLS    10#define MAX_COLS    100#define MIN_ROWS    10#define MAX_ROWS    60#define GetCharWidth GetSysCharWidth#define GetCCharWidth GetSysCCharWidth#define GetCharHeight GetSysCharHeight/** * Information of child process created by libvcongui. * \sa VCOnMiniGUI */typedef struct _CHILDINFO{    /** Whether display start up messages. */    bool startupMessage;    /** Customized string will be displayed as a startup message. */    const char* startupStr;    /**     * The program should be executed when startup     * (If it is NULL, MiniGUI will try to execute the default shell).     */    const char* execProg;    /** The argument of the startup program if \a execProg is NULL. */    const char* execArgs;        /**     * The customized default window procedure of vcongui main window     * (If it is NULL, MiniGUI will call the default main window procedure).     */    WNDPROC     DefWinProc;    /** Whether display a menu */    bool        fMenu;    /** The initial position of the vcongui main window. */    int         left, top;    /** The number of terminal rows and columns. */    int         rows, cols;}CHILDINFO;typedef CHILDINFO* PCHILDINFO;/** * \fn void* VCOnMiniGUI (void* data) * \brief Creates a vcongui main window. * * This function creates a vcongui main window, and enter a message loop. *  * \param data The pointer to a CHILDINFO structure. */void* VCOnMiniGUI (void* data);#ifndef _LITE_VERSIONvoid* NewVirtualConsole (PCHILDINFO pChildInfo);#endif    /** @} end of vcongui_fns */#ifdef __cplusplus}#endif  /* __cplusplus */#endif /* _MGUI_VCONGUI_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -