merge from rel-3-0 branch

This commit is contained in:
Vincent Wei
2017-10-26 13:34:57 +08:00
parent 06b9ee9263
commit 267d9c1b12
116 changed files with 4333 additions and 873 deletions
+3 -3
View File
@@ -8,10 +8,10 @@
*
\verbatim
Copyright (C) 2002-2009 Feynman Software.
Copyright (C) 2002-2012 FMSoft.
Copyright (C) 1998-2002 Wei Yongming.
All rights reserved by Feynman Software.
All rights reserved by FMSoft (http://www.fmsoft.cn).
This file is part of MiniGUI, a compact cross-platform Graphics
User Interface (GUI) support system for real-time embedded systems.
@@ -25,7 +25,7 @@
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*
* Copyright (C) 2002-2009 Feynman Software.
* Copyright (C) 2002-2012 FMSoft.
* Copyright (C) 1998-2002 Wei Yongming.
*
* The definitions of some data types and byte order macros
+3 -3
View File
@@ -7,10 +7,10 @@
*
\verbatim
Copyright (C) 2002-2009 Feynman Software.
Copyright (C) 2002-2012 FMSoft.
Copyright (C) 1998-2002 Wei Yongming.
All rights reserved by Feynman Software.
All rights reserved by FMSoft (http://www.fmsoft.cn).
This file is part of MiniGUI, a compact cross-platform Graphics
User Interface (GUI) support system for real-time embedded systems.
@@ -24,7 +24,7 @@
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*
* Copyright (C) 2002-2009 Feynman Software.
* Copyright (C) 2002-2012 FMSoft.
* Copyright (C) 1999-2002 Wei Yongming.
*/
+26 -8
View File
@@ -1,12 +1,30 @@
/**
* \file customial.h
* \author Wei Yongming <ymwei@minigui.org>
* \date 2007/06/06
*
* This file is the head file for Custom IAL Engine.
*
\verbatim
Copyright (C) 2007-2012 FMSoft.
All rights reserved by FMSoft (http://www.fmsoft.cn).
This file is part of MiniGUI, a compact cross-platform Graphics
User Interface (GUI) support system for real-time embedded systems.
\endverbatim
*/
/*
** $Id: customial.h 11349 2009-03-02 05:00:43Z weiym $
**
** custom.h:. the head file for Custom IAL Engine.
**
** Copyright (C) 2007 ~ 2009 Feynman Software.
**
** Created by Wei YongMing, 2007/06/06
*/
* $Id: customial.h 11349 2009-03-02 05:00:43Z weiym $
*
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*
* Copyright (C) 2007-2012 FMSoft.
*/
#ifndef GUI_IAL_CUSTOM_H
#define GUI_IAL_CUSTOM_H
+3 -3
View File
@@ -10,10 +10,10 @@
*
\verbatim
Copyright (C) 2002-2009 Feynman Software.
Copyright (C) 2002-2012 FMSoft.
Copyright (C) 1998-2002 Wei Yongming.
All rights reserved by Feynman Software.
All rights reserved by FMSoft.
This file is part of MiniGUI, a compact cross-platform Graphics
User Interface (GUI) support system for real-time embedded systems.
@@ -27,7 +27,7 @@
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*
* Copyright (C) 2002-2009 Feynman Software.
* Copyright (C) 2002-2012 FMSoft.
* Copyright (C) 1998-2002 Wei Yongming.
*
* The idea comes from LGPL'ed SDL by Sam Lantinga.
+3 -3
View File
@@ -7,10 +7,10 @@
*
\verbatim
Copyright (C) 2002-2009 Feynman Software.
Copyright (C) 2002-2012 FMSoft.
Copyright (C) 1998-2002 Wei Yongming.
All rights reserved by Feynman Software.
All rights reserved by FMSoft (http://www.fmsoft.cn).
This file is part of MiniGUI, a compact cross-platform Graphics
User Interface (GUI) support system for real-time embedded systems.
@@ -24,7 +24,7 @@
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*
* Copyright (C) 2002-2009 Feynman Software.
* Copyright (C) 2002-2012 FMSoft.
* Copyright (C) 1998-2002 Wei Yongming.
*
* Fixed-point math routins come from Allegro (a gift software)
+47 -14
View File
@@ -7,10 +7,10 @@
*
\verbatim
Copyright (C) 2002-2009 Feynman Software.
Copyright (C) 2002-2012 FMSoft.
Copyright (C) 1998-2002 Wei Yongming.
All rights reserved by Feynman Software.
All rights reserved by FMSoft (http://www.fmsoft.cn).
This file is part of MiniGUI, a compact cross-platform Graphics
User Interface (GUI) support system for real-time embedded systems.
@@ -24,7 +24,7 @@
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*
* Copyright (C) 2002-2009 Feynman Software.
* Copyright (C) 2002-2012 FMSoft.
* Copyright (C) 1998-2002 Wei Yongming.
*/
@@ -2311,7 +2311,7 @@ MG_EXPORT int GUIAPI SetRasterOperation (HDC hdc, int rop);
*
* \sa SetPalette
*/
MG_EXPORT BOOL GUIAPI GetPalette (HDC hdc, int start, int len, GAL_Color* cmap);
MG_EXPORT int GUIAPI GetPalette (HDC hdc, int start, int len, GAL_Color* cmap);
/**
* \fn BOOL GUIAPI SetPalette (HDC hdc, int start, int len, GAL_Color* cmap)
@@ -7419,6 +7419,9 @@ struct _BITMAP
/*void* bmAlphaPixelFormat;*/
/** The Alpha Mask array of the bitmap */
Uint8* bmAlphaMask;
/** The Alpha Pitch of the bitmap */
Uint32 bmAlphaPitch;
};
/** @} end of bmp_struct */
@@ -8018,6 +8021,11 @@ MG_EXPORT void GUIAPI ExpandMonoBitmap (HDC hdc, BYTE* bits, Uint32 pitch,
const BYTE* my_bits, Uint32 my_pitch,
Uint32 w, Uint32 h, DWORD flags, Uint32 bg, Uint32 fg);
MG_EXPORT void GUIAPI Expand16CBitmapEx (HDC hdc, BYTE* bits, Uint32 pitch,
const BYTE* my_bits, Uint32 my_pitch,
Uint32 w, Uint32 h, DWORD flags,
const RGB* pal, BYTE use_pal_alpha, BYTE alpha);
/**
* \fn void GUIAPI Expand16CBitmap (HDC hdc, BYTE* bits, Uint32 pitch,
* const BYTE* my_bits, Uint32 my_pitch,
@@ -8039,12 +8047,21 @@ MG_EXPORT void GUIAPI ExpandMonoBitmap (HDC hdc, BYTE* bits, Uint32 pitch,
*
* \sa ExpandMonoBitmap, Expand256CBitmap
*/
MG_EXPORT void GUIAPI Expand16CBitmap (HDC hdc, BYTE* bits, Uint32 pitch,
static inline void GUIAPI Expand16CBitmap (HDC hdc, BYTE* bits, Uint32 pitch,
const BYTE* my_bits, Uint32 my_pitch,
Uint32 w, Uint32 h, DWORD flags, const RGB* pal);
Uint32 w, Uint32 h, DWORD flags, const RGB* pal)
{
Expand16CBitmapEx (hdc, bits, pitch, my_bits, my_pitch,
w, h, flags, pal, FALSE, 0xFF);
}
MG_EXPORT void GUIAPI Expand256CBitmapEx (HDC hdc, BYTE* bits, Uint32 pitch,
const BYTE* my_bits, Uint32 my_pitch,
Uint32 w, Uint32 h, DWORD flags,
const RGB* pal, BYTE use_pal_alpha, BYTE alpha,
CB_DRAW_PIXEL cb_draw, MYBITMAP_CONTXT* mybmp);
/**
* \fn void GUIAPI Expand16CBitmap (HDC hdc, BYTE* bits, Uint32 pitch,
* \fn void GUIAPI Expand256CBitmap (HDC hdc, BYTE* bits, Uint32 pitch,
* const BYTE* my_bits, Uint32 my_pitch,
* Uint32 w, Uint32 h, DWORD flags, const RGB* pal,
* CB_DRAW_PIXEL cb_draw, MYBITMAP_CONTXT* mybmp);
@@ -8067,10 +8084,14 @@ MG_EXPORT void GUIAPI Expand16CBitmap (HDC hdc, BYTE* bits, Uint32 pitch,
*
* \sa ExpandMonoBitmap, Expand16CBitmap
*/
MG_EXPORT void GUIAPI Expand256CBitmap (HDC hdc, BYTE* bits, Uint32 pitch,
static inline void GUIAPI Expand256CBitmap (HDC hdc, BYTE* bits, Uint32 pitch,
const BYTE* my_bits, Uint32 my_pitch,
Uint32 w, Uint32 h, DWORD flags, const RGB* pal,
CB_DRAW_PIXEL cb_draw, MYBITMAP_CONTXT* mybmp);
Uint32 w, Uint32 h, DWORD flags, const RGB* pal,
CB_DRAW_PIXEL cb_draw, MYBITMAP_CONTXT* mybmp)
{
Expand256CBitmapEx (hdc, bits, pitch, my_bits, my_pitch,
w, h, flags, pal, FALSE, 0xFF, cb_draw, mybmp);
}
/**
* \fn void GUIAPI CompileRGBABitmap (HDC hdc, BYTE* bits, Uint32 pitch, \
@@ -8125,9 +8146,21 @@ MG_EXPORT void GUIAPI ExpandPartMonoBitmap (HDC hdc, BYTE* bits, Uint32 pitch,
const BYTE* my_bits, Uint32 my_pitch,
Uint32 w, Uint32 h, DWORD flags, Uint32 bg, Uint32 fg,
int stepx, CB_DRAW_PIXEL cb_draw, MYBITMAP_CONTXT* mybmp);
MG_EXPORT void GUIAPI ExpandPart16CBitmap (HDC hdc, BYTE* bits, Uint32 pitch, const BYTE* my_bits,
Uint32 my_pitch, Uint32 w, Uint32 h, DWORD flags, const RGB* pal,
int stepx, CB_DRAW_PIXEL cb_draw, MYBITMAP_CONTXT* mybmp);
MG_EXPORT void GUIAPI ExpandPart16CBitmapEx (HDC hdc, BYTE* bits, Uint32 pitch,
const BYTE* my_bits, Uint32 my_pitch,
Uint32 w, Uint32 h, DWORD flags,
const RGB* pal, BYTE use_pal_alpha, BYTE alpha,
int stepx, CB_DRAW_PIXEL cb_draw, MYBITMAP_CONTXT* mybmp);
static inline void GUIAPI ExpandPart16CBitmap (HDC hdc, BYTE* bits, Uint32 pitch,
const BYTE* my_bits, Uint32 my_pitch,
Uint32 w, Uint32 h, DWORD flags, const RGB* pal,
int stepx, CB_DRAW_PIXEL cb_draw, MYBITMAP_CONTXT* mybmp)
{
ExpandPart16CBitmapEx (hdc, bits, pitch, my_bits, my_pitch,
w, h, flags, pal, FALSE, 0xFF, stepx, cb_draw, mybmp);
}
#endif
+3 -3
View File
@@ -7,10 +7,10 @@
*
\verbatim
Copyright (C) 2002-2009 Feynman Software.
Copyright (C) 2002-2012 FMSoft.
Copyright (C) 1998-2002 Wei Yongming.
All rights reserved by Feynman Software.
All rights reserved by FMSoft (http://www.fmsoft.cn).
This file is part of MiniGUI, a compact cross-platform Graphics
User Interface (GUI) support system for real-time embedded systems.
@@ -24,7 +24,7 @@
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*
* Copyright (C) 2002-2009 Feynman Software.
* Copyright (C) 2002-2012 FMSoft.
* Copyright (C) 1998-2002 Wei Yongming.
*/
+3 -3
View File
@@ -12,9 +12,9 @@
*
\verbatim
Copyright (C) 2005~2009 Feynman Software.
Copyright (C) 2005-2012 FMSoft.
All rights reserved by Feynman Software.
All rights reserved by FMSoft (http://www.fmsoft.cn).
This file is part of MiniGUI, a compact cross-platform Graphics
User Interface (GUI) support system for real-time embedded systems.
@@ -38,7 +38,7 @@
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*
* Copyright (C) 2005~2009 Feynman Software.
* Copyright (C) 2005-2012 FMSoft.
*/
#ifndef FMNU_PTHREAD_H
+3 -3
View File
@@ -12,9 +12,9 @@
*
\verbatim
Copyright (C) 2005~2009 Feynman Software.
Copyright (C) 2005~2012 FMSoft.
All rights reserved by Feynman Software.
All rights reserved by FMSoft (http://www.fmsoft.cn).
This file is part of MiniGUI, a compact cross-platform Graphics
User Interface (GUI) support system for real-time embedded systems.
@@ -37,7 +37,7 @@
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*
* Copyright (C) 2005~2009 Feynman Software.
* Copyright (C) 2005~2012 FMSoft.
*/
#ifndef FMNU_SEMAPHORE_H
+4 -4
View File
@@ -1,6 +1,6 @@
/*
* \file ose_semaphore.h
* \author Qingzhou Long <qzlong@minigui.org>
* \author Wei Yongming <ymwei@minigui.org>
* \date 2006/05/19
*
* Description:
@@ -12,9 +12,9 @@
*
\verbatim
Copyright (C) 2005-2009 Feynman Software.
Copyright (C) 2005-2012 FMSoft.
All rights reserved by Feynman Software.
All rights reserved by FMSoft (http://www.fmsoft.cn).
This file is part of MiniGUI, a compact cross-platform Graphics
User Interface (GUI) support system for real-time embedded systems.
@@ -37,7 +37,7 @@
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*
* Copyright (C) 2005-2009 Feynman Software.
* Copyright (C) 2005-2012 FMSoft.
*/
#ifndef FMOSE_SEMAPHORE_H
+3 -3
View File
@@ -7,10 +7,10 @@
*
\verbatim
Copyright (C) 2002-2009 Feynman Software.
Copyright (C) 2002-2012 FMSoft.
Copyright (C) 1998-2002 Wei Yongming.
All rights reserved by Feynman Software.
All rights reserved by FMSoft (http://www.fmsoft.cn).
This file is part of MiniGUI, a compact cross-platform Graphics
User Interface (GUI) support system for real-time embedded systems.
@@ -24,7 +24,7 @@
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*
* Copyright (C) 2002-2009 Feynman Software.
* Copyright (C) 2002-2012 FMSoft.
* Copyright (C) 1998-2002 Wei Yongming.
*/
+5 -5
View File
@@ -10,9 +10,9 @@
*
\verbatim
Copyright (C) 2008-2009 Feynman Software.
Copyright (C) 2008-2012 FMSoft.
All rights reserved by Feynman Software.
All rights reserved by FMSoft (http://www.fmsoft.cn).
This file is part of MiniGUI, a compact cross-platform Graphics
User Interface (GUI) support system for real-time embedded systems.
@@ -21,14 +21,14 @@
*/
/*
* $Id: psos_pthread.h 7183 2007-05-16 08:19:34Z weiym $
* $Id: psos.h 7183 2007-05-16 08:19:34Z weiym $
*
* This is the pSOS+ header file (<psos.h>) written by Feynman Software.
* This is the pSOS+ header file (<psos.h>) written by FMSoft.
*
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*
* Copyright (C) 2008-2009 Feynman Software.
* Copyright (C) 2008-2012 FMSoft.
*/
#ifndef _PSOS_H
+3 -3
View File
@@ -12,9 +12,9 @@
*
\verbatim
Copyright (C) 2008-2009 Feynman Software.
Copyright (C) 2008-2012 FMSoft.
All rights reserved by Feynman Software.
All rights reserved by FMSoft (http://www.fmsoft.cn).
This file is part of MiniGUI, a compact cross-platform Graphics
User Interface (GUI) support system for real-time embedded systems.
@@ -37,7 +37,7 @@
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*
* Copyright (C) 2008-2009 Feynman Software.
* Copyright (C) 2008-2012 FMSoft.
*/
#ifndef FM_PSOS_PTHREAD_H
+3 -3
View File
@@ -12,9 +12,9 @@
*
\verbatim
Copyright (C) 2008-2009 Feynman Software.
Copyright (C) 2008-2012 FMSoft.
All rights reserved by Feynman Software.
All rights reserved by FMSoft (http://www.fmsoft.cn).
This file is part of MiniGUI, a compact cross-platform Graphics
User Interface (GUI) support system for real-time embedded systems.
@@ -37,7 +37,7 @@
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*
* Copyright (C) 2008-2009 Feynman Software.
* Copyright (C) 2008-2012 FMSoft.
*/
#ifndef FM_PSOS_SEMAPHORE_H
+3 -3
View File
@@ -12,9 +12,9 @@
*
\verbatim
Copyright (C) 2005~2009 Feynman Software.
Copyright (C) 2005~2012 FMSoft.
All rights reserved by Feynman Software.
All rights reserved by FMSoft (http://www.fmsoft.cn).
This file is part of MiniGUI, a compact cross-platform Graphics
User Interface (GUI) support system for real-time embedded systems.
@@ -37,7 +37,7 @@
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*
* Copyright (C) 2005~2009 Feynman Software.
* Copyright (C) 2005~2012 FMSoft.
*/
#ifndef FMTX_PTHREAD_H
+3 -3
View File
@@ -12,9 +12,9 @@
*
\verbatim
Copyright (C) 2005-2009 Feynman Software.
Copyright (C) 2005-2012 FMSoft.
All rights reserved by Feynman Software.
All rights reserved by FMSoft (http://www.fmsoft.cn).
This file is part of MiniGUI, a compact cross-platform Graphics
User Interface (GUI) support system for real-time embedded systems.
@@ -37,7 +37,7 @@
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*
* Copyright (C) 2005-2009 Feynman Software.
* Copyright (C) 2005-2012 FMSoft.
*/
#ifndef FMTX_SEMAPHORE_H
+3 -3
View File
@@ -8,9 +8,9 @@
*
\verbatim
Copyright (C) 2004~2009 Feynman Software.
Copyright (C) 2004~2012 FMSoft.
All rights reserved by Feynman Software.
All rights reserved by FMSoft (http://www.fmsoft.cn).
This file is part of MiniGUI, a compact cross-platform Graphics
User Interface (GUI) support system for real-time embedded systems.
@@ -24,7 +24,7 @@
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*
* Copyright (C) 2004-2009 Feynman Software.
* Copyright (C) 2004-2012 FMSoft.
*/
#ifndef UCOSII_PTHREAD_H
+3 -3
View File
@@ -8,9 +8,9 @@
*
\verbatim
Copyright (C) 2004~2009 Feynman Software.
Copyright (C) 2004~2012 FMSoft.
All rights reserved by Feynman Software.
All rights reserved by FMSoft (http://www.fmsoft.cn).
This file is part of MiniGUI, a compact cross-platform Graphics
User Interface (GUI) support system for real-time embedded systems.
@@ -24,7 +24,7 @@
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*
* Copyright (C) 2004-2009 Feynman Software.
* Copyright (C) 2004-2012 FMSoft.
*/
#ifndef UCOSII_SEMAPHORE_H
+3 -3
View File
@@ -8,10 +8,10 @@
*
\verbatim
Copyright (C) 2002-2009 Feynman Software.
Copyright (C) 2002-2012 FMSoft.
Copyright (C) 1998-2002 Wei Yongming.
All rights reserved by Feynman Software.
All rights reserved by FMSoft (http://www.fmsoft.cn).
This file is part of MiniGUI, a compact cross-platform Graphics
User Interface (GUI) support system for real-time embedded systems.
@@ -25,7 +25,7 @@
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*
* Copyright (C) 2002-2009 Feynman Software.
* Copyright (C) 2002-2012 FMSoft.
* Copyright (C) 1998-2002 Wei Yongming.
*
* Some idea and source come from CCE (Console Chinese Environment)
+3 -3
View File
@@ -11,9 +11,9 @@
*
\verbatim
Copyright (C) 2005~2009 Feynman Software.
Copyright (C) 2005~2012 FMSoft.
All rights reserved by Feynman Software.
All rights reserved by FMSoft (http://www.fmsoft.cn).
This file is part of MiniGUI, a compact cross-platform Graphics
User Interface (GUI) support system for real-time embedded systems.
@@ -37,7 +37,7 @@
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*
* Copyright (C) 2005~2009 Feynman Software.
* Copyright (C) 2005~2012 FMSoft.
*/
#ifndef FMVX_PTHREAD_H
+3 -3
View File
@@ -12,9 +12,9 @@
*
\verbatim
Copyright (C) 2005~2009 Feynman Software.
Copyright (C) 2005~2012 FMSoft.
All rights reserved by Feynman Software.
All rights reserved by FMSoft (http://www.fmsoft.cn).
This file is part of MiniGUI, a compact cross-platform Graphics
User Interface (GUI) support system for real-time embedded systems.
@@ -37,7 +37,7 @@
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*
* Copyright (C) 2005-2009 Feynman Software.
* Copyright (C) 2005-2012 FMSoft.
*/
#ifndef FMVX_SEMAPHORE_H
+38 -25
View File
@@ -7,10 +7,10 @@
*
\verbatim
Copyright (C) 2002-2009 Feynman Software.
Copyright (C) 2002-2012 FMSoft.
Copyright (C) 1998-2002 Wei Yongming.
All rights reserved by Feynman Software.
All rights reserved by FMSoft (http://www.fmsoft.cn).
This file is part of MiniGUI, a compact cross-platform Graphics
User Interface (GUI) support system for real-time embedded systems.
@@ -24,7 +24,7 @@
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*
* Copyright (C) 2002-2009 Feynman Software.
* Copyright (C) 2002-2012 FMSoft.
* Copyright (C) 1998-2002 Wei Yongming.
*/
@@ -491,6 +491,27 @@ extern "C" {
*/
#define MSG_SYSKEYUP 0x0015
/* keyboard longpress supported */
/**
* \def MSG_KEYLONGPRESS
* \brief A key is long pressed.
*
* This message is sent when a key is pressed exceed user-defined long
* time value.
*/
#define MSG_KEYLONGPRESS 0x0016
/**
* \def MSG_KEYALWAYSPRESS
* \brief A key is always pressed.
*
* This message is sent when a key is pressed to exceed user-defined
* always time value.
*/
#define MSG_KEYALWAYSPRESS 0x0017
/**
* \def MSG_KEYSYM
* \brief A key symbol translated from MSG_KEYDOWN messages.
@@ -516,27 +537,7 @@ extern "C" {
*
* \sa MSG_SYSCHAR, TranslateMessage, key_defs
*/
#define MSG_KEYSYM 0x0016
/* keyboard longpress supported */
/**
* \def MSG_KEYLONGPRESS
* \brief A key is long pressed.
*
* This message is sent when a key is pressed exceed user-defined long
* time value.
*/
#define MSG_KEYLONGPRESS 0x0017
/**
* \def MSG_KEYALWAYSPRESS
* \brief A key is always pressed.
*
* This message is sent when a key is pressed to exceed user-defined
* always time value.
*/
#define MSG_KEYALWAYSPRESS 0x0018
#define MSG_KEYSYM 0x0018
/**
* \def DEF_LPRESS_TIME
@@ -1266,9 +1267,11 @@ extern unsigned int __mg_interval_time;
*
* \code
* MSG_ERASEBKGND
* HDC hdc = (HDC)wParam;
* const RECT* inv_rect = (const RECT*)lParam;
* \endcode
*
* \param hdc The device context.
* \param inv_rect The pointer to a RECT structure contains the rectangle
* should be erase. The rectangle is in client coordinates system.
* If it is NULL, the whole client area should be erased.
@@ -1293,6 +1296,17 @@ extern unsigned int __mg_interval_time;
/**
* \def MSG_NCPAINT
* \brief Indicates that paints non-client area.
*
* \code
* MSG_NCPAINT
* HDC hdc = (HDC)wParam;
* const RECT* inv_rect = (const RECT*)lParam;
* \endcode
*
* \param hdc The device context.
* \param inv_rect The pointer to a RECT structure contains the rectangle
* should be paint. The rectangle is in client coordinates system.
* If it is NULL, the whole nc client area should be paint.
*/
#define MSG_NCPAINT 0x00B2
@@ -1504,7 +1518,6 @@ extern unsigned int __mg_interval_time;
#define MSG_DT_KEYUP 0x00EA
#define MSG_DT_SYSKEYDOWN 0x00EB
#define MSG_DT_SYSKEYUP 0x00ED
#define MSG_DT_SYSCHAR 0x00EC
+4 -4
View File
@@ -1,16 +1,16 @@
/**
* \file xvfb.h
* \author Feynman Software
* \author FMSoft
* \date 2007/10/25
*
* This file includes global and miscellaneous interfaces of xVFB for MiniGUI.
*
\verbatim
Copyright (C) 2002-2009 Feynman Software.
Copyright (C) 2002-2012 FMSoft.
Copyright (C) 1998-2002 Wei Yongming.
All rights reserved by Feynman Software.
All rights reserved by FMSoft (http://www.fmsoft.cn).
This file is part of MiniGUI, a compact cross-platform Graphics
User Interface (GUI) support system for real-time embedded systems.
@@ -24,7 +24,7 @@
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*
* Copyright (C) 2002-2009 Feynman Software.
* Copyright (C) 2002-2012 FMSoft.
* Copyright (C) 1998-2002 Wei Yongming.
*/