sync up with github

This commit is contained in:
idea4good 2018-09-03 14:45:08 +08:00
parent b5938e1996
commit 8b5c96fcd3
5 changed files with 21 additions and 11 deletions

View File

@ -1,4 +1,18 @@
# GuiLite - 简洁出奇迹
- GuiLite超轻量UI框架是6千行代码的**全平台UI框架**可以完美运行在iOSAndroidWindows包含VRMac单片机*和市面所有的 ARM Linux物联网终端设备上。
- GuiLite可以嵌入在iOS、Android、MFC、QT等其他UI系统中让你的界面集百家之长又不失个性。
- GuiLite鼓励混合编程开发者可以用GuiLite接管UI部分用SwiftJavaGoC#Python发开业务部分。
## 新功能:“云”管理
智能统计各个工程(GuiLite, GuiLiteSamples)的编译情况
![BuildInfo](doc/BuildInfo.png)
设备端的数据,实时同步至“云端”
![DataOnCloud](doc/data_on_cloud.png)
## 卓越的跨平台能力
在Mac, iOS下的运行效果:
![Mac](doc/Mac.gif) ![iOS](doc/Ios.landscape.gif)
@ -11,10 +25,6 @@
![Win MR](doc/WinMR.gif) ![QQ group: 527251257](doc/qq.group.jpg)
- GuiLite超轻量UI框架是6千行代码的**全平台UI框架**可以完美运行在iOSAndroidWindows包含VRMac单片机*和市面所有的 ARM Linux物联网终端设备上。
- GuiLite可以嵌入在iOS、Android、MFC、QT等其他UI系统中让你的界面集百家之长又不失个性。
- GuiLite鼓励混合编程开发者可以用GuiLite接管UI部分用SwiftJavaGoC#Python发开业务部分。
相比QT、MFCGuiLite不预设开发者的使用场景不在具体功能上大包大揽用框架的简洁换取开发的自由GuiLite在图形绘制上面力图一步到位运行效率感人。
## 为什么开发GuiLite如何使用

View File

@ -15,12 +15,12 @@ void do_assert(const char* file, int line);
void log_out(const char* log);
#define GLT_RGB(r, g, b) ((0xFF << 24) | (r << 16) | (g << 8) | b)
#define GLT_RGB_R(rgb) ((rgb >> 16) & 0xFF)
#define GLT_RGB_G(rgb) ((rgb >> 8) & 0xFF)
#define GLT_RGB_B(rgb) (rgb & 0xFF)
#define GLT_RGB_32_to_16(rgb) (((rgb & 0xFF) >> 3) | ((rgb & 0xFC00) >> 5) | ((rgb & 0xF80000) >> 8))
#define GLT_RGB_16_to_32(rgb) (((rgb & 0x1F) << 3) | ((rgb & 0x7E0) << 5) | ((rgb & 0xF800) << 8))
#define GLT_RGB(r, g, b) ((0xFF << 24) | (((unsigned int)(r)) << 16) | (((unsigned int)(g)) << 8) | ((unsigned int)(b)))
#define GLT_RGB_R(rgb) ((((unsigned int)(rgb)) >> 16) & 0xFF)
#define GLT_RGB_G(rgb) ((((unsigned int)(rgb)) >> 8) & 0xFF)
#define GLT_RGB_B(rgb) (((unsigned int)(rgb)) & 0xFF)
#define GLT_RGB_32_to_16(rgb) (((((unsigned int)(rgb)) & 0xFF) >> 3) | ((((unsigned int)(rgb)) & 0xFC00) >> 5) | ((((unsigned int)(rgb)) & 0xF80000) >> 8))
#define GLT_RGB_16_to_32(rgb) (((((unsigned int)(rgb)) & 0x1F) << 3) | ((((unsigned int)(rgb)) & 0x7E0) << 5) | ((((unsigned int)(rgb)) & 0xF800) << 8))
typedef struct _T_TIME
{

View File

@ -95,7 +95,7 @@ const GLT_MSG_ENTRY* c_cmd_target::FindMsgEntry(const GLT_MSG_ENTRY *pEntry,
while (MSG_CALLBACK_NULL != pEntry->callbackType)
{
if ( (msgType == pEntry->msgType) && (msgId == pEntry->msgId) && (void*)ctrlId == pEntry->pObject)
if ( (msgType == pEntry->msgType) && (msgId == pEntry->msgId) && (void*)(unsigned long)ctrlId == pEntry->pObject)
{
return pEntry;
}

BIN
doc/BuildInfo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

BIN
doc/data_on_cloud.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 KiB