mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-02-06 18:31:57 +08:00
tune for version 4.0.0
This commit is contained in:
@@ -2101,7 +2101,10 @@ PREDEFINED = _MGRM_PROCESSES \
|
||||
_MGCTRL_ANIMATION \
|
||||
_MGFONT_FT2 \
|
||||
_MGFONT_UPF \
|
||||
_MGFONT_BMPF
|
||||
_MGFONT_BMPF \
|
||||
_MGGAL_DRI \
|
||||
_MGGAL_COMMLCD \
|
||||
_MGIAL_COMM
|
||||
|
||||
# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
|
||||
# tag can be used to specify a list of macro names that should be expanded. The
|
||||
|
||||
@@ -2101,7 +2101,10 @@ PREDEFINED = _MGRM_STANDALONE \
|
||||
_MGCTRL_ANIMATION \
|
||||
_MGFONT_FT2 \
|
||||
_MGFONT_UPF \
|
||||
_MGFONT_BMPF
|
||||
_MGFONT_BMPF \
|
||||
_MGGAL_DRI \
|
||||
_MGGAL_COMMLCD \
|
||||
_MGIAL_COMM
|
||||
|
||||
# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
|
||||
# tag can be used to specify a list of macro names that should be expanded. The
|
||||
|
||||
@@ -2101,7 +2101,10 @@ PREDEFINED = _MGRM_THREADS \
|
||||
_MGCTRL_ANIMATION \
|
||||
_MGFONT_FT2 \
|
||||
_MGFONT_UPF \
|
||||
_MGFONT_BMPF
|
||||
_MGFONT_BMPF \
|
||||
_MGGAL_DRI \
|
||||
_MGGAL_COMMLCD \
|
||||
_MGIAL_COMM
|
||||
|
||||
# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
|
||||
# tag can be used to specify a list of macro names that should be expanded. The
|
||||
|
||||
@@ -200,7 +200,9 @@ in order to support [HybridOS Foundation Class Library].
|
||||
|
||||
* Cleanup and tune code for GCC 7.3.
|
||||
|
||||
For more information, please refer to [RELEASE-NOTES.md](RELEASE-NOTES.md) file:
|
||||
For more information, please refer to `RELEASE-NOTES.md` file:
|
||||
|
||||
https://github.com/VincentWei/minigui/blob/master/RELEASE-NOTES.md
|
||||
|
||||
Because of the changes of some APIs, we recommended strongly that you
|
||||
use this version for new projects.
|
||||
@@ -213,7 +215,7 @@ We introduce some new features in MiniGUI Version 3.2.x:
|
||||
to support 64-bit platform.
|
||||
* Some enhancements and optimizations.
|
||||
|
||||
For more information, please refer to RELEASE-NOTES.md file:
|
||||
For more information, please refer to `RELEASE-NOTES.md` file:
|
||||
|
||||
https://github.com/VincentWei/minigui/blob/rel-3-2/RELEASE-NOTES.md
|
||||
|
||||
|
||||
@@ -62,35 +62,13 @@
|
||||
#ifndef GUI_EXSTUBS_H
|
||||
#define GUI_EXSTUBS_H
|
||||
|
||||
/* The pixel format defined by depth */
|
||||
#define COMMLCD_PSEUDO_RGB332 1
|
||||
#define COMMLCD_TRUE_RGB555 2
|
||||
#define COMMLCD_TRUE_RGB565 3
|
||||
#define COMMLCD_TRUE_RGB888 4
|
||||
#define COMMLCD_TRUE_RGB0888 5
|
||||
#define COMMLCD_TRUE_ARGB1555 6
|
||||
#define COMMLCD_TRUE_ARGB8888 7
|
||||
#define COMMLCD_TRUE_ABRG8888 8
|
||||
|
||||
#define COMMLCD_UPDATE_NONE 0
|
||||
#define COMMLCD_UPDATE_SYNC 1
|
||||
#define COMMLCD_UPDATE_ASYNC 2
|
||||
|
||||
struct commlcd_info {
|
||||
int height; // vertical resolution of the screen
|
||||
int width; // horinzontal resolution of the screen
|
||||
int pitch; // Length of one scan line in bytes
|
||||
int bpp; // Depth (bits-per-pixel)
|
||||
int type; // Pixel type
|
||||
int update_method; // Update method: none, asynchronously, or synchronously.
|
||||
Uint8* fb; // Frame buffer
|
||||
};
|
||||
|
||||
#define COMM_MOUSEINPUT 0x01
|
||||
#define COMM_KBINPUT 0x02
|
||||
|
||||
#define COMM_MOUSELBUTTON 0x01
|
||||
#define COMM_MOUSERBUTTON 0x04
|
||||
/**
|
||||
* \defgroup external_stubs External Stubs
|
||||
*
|
||||
* The stubs (callbacks) you need to implement for external target.
|
||||
*
|
||||
* @{
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -278,14 +256,39 @@ typedef struct _DriDriverOps {
|
||||
|
||||
} DriDriverOps;
|
||||
|
||||
/* implement this stub to return the DRI driver operators */
|
||||
/** Implement this stub to return the DRI driver operators */
|
||||
DriDriverOps* __dri_ex_driver_get (const char* driver_name);
|
||||
|
||||
#endif /* _MGGAL_DRI */
|
||||
|
||||
/* external stubs for COMMLCD NEWGAL engine */
|
||||
#ifdef _MGGAL_COMMLCD
|
||||
|
||||
/* external stubs for COMMLCD NEWGAL engine */
|
||||
|
||||
/* The pixel format defined by depth */
|
||||
#define COMMLCD_PSEUDO_RGB332 1
|
||||
#define COMMLCD_TRUE_RGB555 2
|
||||
#define COMMLCD_TRUE_RGB565 3
|
||||
#define COMMLCD_TRUE_RGB888 4
|
||||
#define COMMLCD_TRUE_RGB0888 5
|
||||
#define COMMLCD_TRUE_ARGB1555 6
|
||||
#define COMMLCD_TRUE_ARGB8888 7
|
||||
#define COMMLCD_TRUE_ABRG8888 8
|
||||
|
||||
#define COMMLCD_UPDATE_NONE 0
|
||||
#define COMMLCD_UPDATE_SYNC 1
|
||||
#define COMMLCD_UPDATE_ASYNC 2
|
||||
|
||||
struct commlcd_info {
|
||||
int height; // vertical resolution of the screen
|
||||
int width; // horinzontal resolution of the screen
|
||||
int pitch; // Length of one scan line in bytes
|
||||
int bpp; // Depth (bits-per-pixel)
|
||||
int type; // Pixel type
|
||||
int update_method; // Update method: none, asynchronously, or synchronously.
|
||||
Uint8* fb; // Frame buffer
|
||||
};
|
||||
|
||||
int __commlcd_drv_init (void);
|
||||
int __commlcd_drv_getinfo (struct commlcd_info *li,
|
||||
int width, int height, int depth);
|
||||
@@ -297,6 +300,14 @@ int __commlcd_drv_update (const RECT* rc_dirty);
|
||||
|
||||
#ifdef _MGIAL_COMM
|
||||
|
||||
/* external stubs for COMM IAL engine */
|
||||
|
||||
#define COMM_MOUSEINPUT 0x01
|
||||
#define COMM_KBINPUT 0x02
|
||||
|
||||
#define COMM_MOUSELBUTTON 0x01
|
||||
#define COMM_MOUSERBUTTON 0x04
|
||||
|
||||
int __comminput_init (void);
|
||||
int __comminput_ts_getdata (short *x, short *y, short *button);
|
||||
int __comminput_kb_getdata (short *key, short *status);
|
||||
@@ -309,5 +320,7 @@ void __comminput_deinit (void);
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/** @} end of general_rw_fns */
|
||||
|
||||
#endif /* GUI_EXSTUBS_H */
|
||||
|
||||
|
||||
@@ -1470,14 +1470,14 @@ extern DWORD __mg_interval_time;
|
||||
#define AXIS_SOURCE_WHEEL_TILT 4
|
||||
|
||||
/**
|
||||
* \def MSG_INPUT_AXIS
|
||||
* \def MSG_EXIN_AXIS
|
||||
* \brief Indicates an axis input event.
|
||||
*
|
||||
* This message is sent to the active window when the user
|
||||
* operates the axis of a pointer device such as a mouse.
|
||||
*
|
||||
* \code
|
||||
* MSG_INPUT_AXIS
|
||||
* MSG_EXIN_AXIS
|
||||
* int scroll = LOSWORD(wParam);
|
||||
* int source = HISWORD(wParam);
|
||||
* int value = LOSWORD(lParam);
|
||||
|
||||
Reference in New Issue
Block a user