Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

LCUI

A small C library for building user interfaces with C, XML and CSS.
Collective - Host: opensource - https://opencollective.com/lcui - Website: https://lcui.org - Code: https://github.com/lc-soft/LCUI

解决部件一直被重绘的问题

由于在重绘时更新了部件样式,部件尺寸也要进行更新,处理部件尺寸更新时,又需要重绘部件,就这样一直循环下去,做了很多无用操作。
解决方法:判断新设置的尺寸是否与部件现有尺寸一样,不一样则进行重绘...

github.com/lc-soft/LCUI - 0d53f073a3871ebb249a5fe27b72567186a1de76 authored over 11 years ago by Liu Chao <[email protected]>
update headerfile

github.com/lc-soft/LCUI - a0a6518a2be6f0e18e5d5c74a8e6a4089c633120 authored over 11 years ago by lc-soft <[email protected]>
update Makefile

github.com/lc-soft/LCUI - 6853a2ec065a16016a628fbe82cbd8213b2f2ec0 authored over 11 years ago by lc-soft <[email protected]>
修改有警告的代码

github.com/lc-soft/LCUI - add47ab8abd800b98b6cd7e3382e714c9a592903 authored over 11 years ago by lc-soft <[email protected]>
update configure file

github.com/lc-soft/LCUI - 866d8b46c5fb9ec1a2ae9c290f53f39f7e0d8e0f authored over 11 years ago by lc-soft <[email protected]>
update style.css

github.com/lc-soft/LCUI - 4a70302db55874ae34e2b9a65e54238af18412aa authored over 11 years ago by lc-soft <[email protected]>
完善GetIntOrFloat函数

添加数字位数的判断,若位数不大于0,则表示没有数字,返回-1

github.com/lc-soft/LCUI - b9f51668b0d63ded4ae11c097dbe27e621b79092 authored over 11 years ago by Liu Chao <[email protected]>
添加部件边框样式的解析

添加了style_border_convert函数。
修改了style_color_convert函数的返回值。

github.com/lc-soft/LCUI - 9d1f62308546bf44675ead92e937dc6950685189 authored over 11 years ago by Liu Chao <[email protected]>
update widget_bases.c

设置边框时不重绘部件和刷新部件区域.
在更新子部件位置和尺寸前,先判断宽或高是不是按百分比算的。

github.com/lc-soft/LCUI - daf4f32d6f27c267f0f1365ecc0b3e21a4a19812 authored over 11 years ago by Liu Chao <[email protected]>
添加正负符号的判断

github.com/lc-soft/LCUI - bb48f7c2d9e2a3a1e023685febb6b1f640b508da authored over 11 years ago by Liu Chao <[email protected]>
添加部件位置样式的解析

现在可以用align、left、top这三个样式属性来设置部件的位置了。

github.com/lc-soft/LCUI - 72591c039bef08bd04315b5f7abb92bf2eb9f9f4 authored over 11 years ago by Liu Chao <[email protected]>
update Makefile

github.com/lc-soft/LCUI - 175767b626cbbdf49f18540bc7ba4f4de7e1c387 authored over 11 years ago by lc-soft <[email protected]>
update Makefile

github.com/lc-soft/LCUI - 4309d20b1db76b2d21364d7c2cf09e6a983a6313 authored over 11 years ago by Liu Chao <[email protected]>
修改注释,去除源文件中的函数注释(static除外),函数注释写在头文件中

修改注释,是为了让doxygen能够正常生成文档。

github.com/lc-soft/LCUI - 8d0d56f960faf66d1b54dec3e598085920c34c26 authored over 11 years ago by Liu Chao <[email protected]>
更新测试程序

github.com/lc-soft/LCUI - 072e9e07b8afd62d0455e53518e310267585acfd authored over 11 years ago by Liu Chao <[email protected]>
更新样式文件

github.com/lc-soft/LCUI - d280f5c8e2d573a26c34d4d782a2b3e1d0f32c7c authored over 11 years ago by Liu Chao <[email protected]>
添加部件尺寸样式的解析

github.com/lc-soft/LCUI - 90d411a42386100848d600d95d6d827b948ab0fb authored over 11 years ago by Liu Chao <[email protected]>
get_PX_P_t函数更名为GetIntOrFloat

github.com/lc-soft/LCUI - f0ca04996dc70b296eb73b78e1b11b8a558a7502 authored over 11 years ago by Liu Chao <[email protected]>
PX_P_t更名为IntOrFloat_t,相关的函数也进行了更名

github.com/lc-soft/LCUI - fc9979dc9e6d922fe4101668cba0c32ecad2c026 authored over 11 years ago by Liu Chao <[email protected]>
更新测试程序

github.com/lc-soft/LCUI - f1b69837ba6f12d1f6f270080f290d8b707b10b4 authored over 11 years ago by Liu Chao <[email protected]>
添加从文件载入样式数据的功能

添加StyleLib_ScanStyle函数和style_scan_status数据类型,在打开并读取文件内容后会分段读取,并调用StyleLib_ScanStyle函数进行处理,StyleL...

github.com/lc-soft/LCUI - c736f35c4e4576db633f09a84c962b1b81bdc8ac authored over 11 years ago by Liu Chao <[email protected]>
更新注释

github.com/lc-soft/LCUI - 1e2248dbf7ae972a38b7d4371003a011c7287e6a authored over 11 years ago by Liu Chao <[email protected]>
添加部件样式测试程序

github.com/lc-soft/LCUI - 1f62cabcba9d3337ba0597f8a6bb957d489b7f1a authored over 11 years ago by Liu Chao <[email protected]>
加入部件样式的初始化和销毁代码

github.com/lc-soft/LCUI - 8d6879853c3b5adc90006d976cb2e153d4952732 authored over 11 years ago by Liu Chao <[email protected]>
Widget_ExecDraw函数改为调用Widget_ExecUpdate函数进行属性更新

直接调用WidgetFunc_Call( widget, FUNC_TYPE_UPDATE );,会使自定义的部件样式无法同步至部件。

github.com/lc-soft/LCUI - 81bcc028d5203b2351e24db5fbeb0ce67cb7f8c0 authored over 11 years ago by Liu Chao <[email protected]>
添加部件背景样式的设定,纠正background-color的解析问题

现在已经实现部件背景样式设置功能,可通过设定background-color、background-image、background-transparent、background-layout...

github.com/lc-soft/LCUI - 32c40351f101190b8ae324618c51269703f5bfae authored over 11 years ago by Liu Chao <[email protected]>
添加部件样式处理功能

github.com/lc-soft/LCUI - 4282aa7016584786863da520b4a0a408867b2112 authored over 11 years ago by Liu Chao <[email protected]>
更新 样式的解析功能

github.com/lc-soft/LCUI - 9a946fb7e94672cc2d92cdb5e0923d66bec9d33a authored over 11 years ago by Liu Chao <[email protected]>
更新win32平台下的按键输入处理

现在已经支持输入 -=,。、、;[] 这类字符了。

github.com/lc-soft/LCUI - 759efadb46863c23e1ab184b9713847bf752a0c3 authored over 11 years ago by Liu Chao <[email protected]>
更新VisualStudio2012项目文件

github.com/lc-soft/LCUI - c4d3263ae6643390f8093d5427d00a022263ae0a authored over 11 years ago by Liu Chao <[email protected]>
更新项目Makefile及源文件

github.com/lc-soft/LCUI - 928637acf6147f7499befea4e0c7081fb381b24d authored over 11 years ago by Liu Chao <[email protected]>
整理源码目录结构

github.com/lc-soft/LCUI - ac10902dcfb297a1e31903d25b4a1e6df9583e4c authored over 11 years ago by Liu Chao <[email protected]>
去除LCUI_EXPORT

github.com/lc-soft/LCUI - e4c18eb9be3694a8850c635f9d261e35af08df20 authored over 11 years ago by Liu Chao <[email protected]>
移除无用函数

github.com/lc-soft/LCUI - 0a96be160428961755f85104772c6c8830c52ca9 authored over 11 years ago by Liu Chao <[email protected]>
修改有警告的代码

github.com/lc-soft/LCUI - 169232d76b733f819053817db7b8f09651a01e03 authored over 11 years ago by Liu Chao <[email protected]>
由于显示问题,改回用CreateCompatibleBitmap函数

github.com/lc-soft/LCUI - ea4fe1a560e75af4801ce3e45391f0185b1aeb89 authored over 11 years ago by Liu Chao <[email protected]>
更新helloworld测试程序

github.com/lc-soft/LCUI - 56cd0042f39f9dea1e10bc28f08661905d3d7301 authored over 11 years ago by Liu Chao <[email protected]>
更新windows平台下的图像输出处理代码

改用CreateDIBSection函数代替CreateCompatibleDC函数,CPU占用率稍有下降。

github.com/lc-soft/LCUI - 2f12b817d434c59f081bc9fd6fe9f72c3d117b83 authored over 11 years ago by Liu Chao <[email protected]>
为函数添加返回值,以判断是否需要同步帧缓冲

github.com/lc-soft/LCUI - e6e2e4dbacacbc4760b000886cce409fbf8bda85 authored over 11 years ago by Liu Chao <[email protected]>
修改鼠标输入处理代码

github.com/lc-soft/LCUI - fd1a1551c53d19b0ed970d7a3fe8db75b4c8311f authored over 11 years ago by Liu Chao <[email protected]>
修改版权声明,LCUI_EXPORT改为LCUI_API

在某些代码编辑器下,LCUI_EXPORT会被识别为函数,显示在函数列表里,还会使编辑器不能正常跳转至函数定义处。
经过考虑,决定将LCUI_EXPORT改为LCUI_API,原先的代码:
L...

github.com/lc-soft/LCUI - f5e76d811feb53c049a361d16827485e8217e076 authored over 11 years ago by Liu Chao <[email protected]>
完善对点阵位图的支持,修改字体处理标志

github.com/lc-soft/LCUI - a82d5939102b885d3a1c3c91dcfd38317717cdb8 authored over 11 years ago by Liu Chao <[email protected]>
添加FontLIB_GetLibrary函数

github.com/lc-soft/LCUI - 2bad8ff1c58bc7cd930e91e5665204b3fd0ce95e authored over 11 years ago by Liu Chao <[email protected]>
添加LCUIScreen_SyncFrameBuffer函数声明

github.com/lc-soft/LCUI - a3f56602fa842ed1922d9b9979380365b5f104ad authored over 11 years ago by Liu Chao <[email protected]>
删除LCUI_FontBMP中的无用成员变量

github.com/lc-soft/LCUI - d904c25d96a2d86e0bf7c74a5a9959ec6f133ab7 authored over 11 years ago by Liu Chao <[email protected]>
更新LCUI的图像输出功能

之前是将LCUI记录的无效区域交给windows处理,在处理WM_PAINT消息时绘制图像;但存在一个问题:若鼠标一直在移动,LCUI就会一直添加无效区域,直到鼠标停止移动时,才会处理WM_P...

github.com/lc-soft/LCUI - 1e8811c5b552efc9eaaae7cbbd3c8168b55a3bbb authored over 11 years ago by Liu Chao <[email protected]>
暂时不对相交的矩形进行分割

github.com/lc-soft/LCUI - c587e8ec5773fc13d5455b12e97e585f0f39e5fb authored over 11 years ago by Liu Chao <[email protected]>
修改鼠标输入处理

github.com/lc-soft/LCUI - fa8ae3d7a9a3abaad0615ee5e875bb53e892279d authored over 11 years ago by Liu Chao <[email protected]>
完善矩形区域数据队列的处理功能

github.com/lc-soft/LCUI - 852a97e9d74984f82da64dcdf235a7d1d5807091 authored over 11 years ago by Liu Chao <[email protected]>
update LCUI_Widget.h

github.com/lc-soft/LCUI - b2e5542491caea69dc55d8a4cd8745a29ce9db83 authored over 11 years ago by Liu Chao <[email protected]>
更新屏幕无效区域的处理

github.com/lc-soft/LCUI - a79a30c2c1edbb685f1c3ee35b7e033a6ce0c8b8 authored over 11 years ago by Liu Chao <[email protected]>
更新部件的无效区域的处理

github.com/lc-soft/LCUI - 8fa1124834e3e901992f595c172f12157549d892 authored over 11 years ago by Liu Chao <[email protected]>
更新LCUI_TextLayer结构体定义

github.com/lc-soft/LCUI - 298675d41126cf9ef2c1df52534434fa2bc5b963 authored over 11 years ago by Liu Chao <[email protected]>
更新鼠标指针处理

github.com/lc-soft/LCUI - 02b3d9b37093563183853dbc33c9ecf12d57b0cb authored over 11 years ago by Liu Chao <[email protected]>
更新TextLayer的无效区域处理代码

github.com/lc-soft/LCUI - bf7a76503d587adefbffc191b2bdbc9f6fc3c04a authored over 11 years ago by Liu Chao <[email protected]>
添加LCUIScreen_GetInvalidAreaQueue函数

github.com/lc-soft/LCUI - 82129f120a2638ca777f34f501bca06203412455 authored over 11 years ago by Liu Chao <[email protected]>
invalid_area成员改用LCUI_RectQueue类型

github.com/lc-soft/LCUI - 4dbde83d47db992ad06cd8c3ad672c0d725b142a authored over 11 years ago by Liu Chao <[email protected]>
更新widget的无效区域的处理代码

github.com/lc-soft/LCUI - edae0ab743e70076e66ee9ea73a078d802d9fa2f authored over 11 years ago by Liu Chao <[email protected]>
更新屏幕区域的处理代码

github.com/lc-soft/LCUI - d2d39d6c3e232fc87d79e95909608b120ae6ad67 authored over 11 years ago by Liu Chao <[email protected]>
更新矩形区域数据队列的处理功能

RectQueue改用两个队列,一个为当前使用的,另一个为未使用的。
使用RectQueue_Swtich()函数可以切换未使用的队列为当前使用的队列。
LCUI中的无效区域的添加,使用Rec...

github.com/lc-soft/LCUI - 6b17094d875454494ec76e2424a77b69ee315856 authored over 11 years ago by Liu Chao <[email protected]>
更新头文件

github.com/lc-soft/LCUI - 77fd93466ba1be04f24e78823ba728920ff0d3bd authored over 11 years ago by Liu Chao <[email protected]>
修改函数指针的类型

github.com/lc-soft/LCUI - 56e486cd399756da5786cd6a86b2cf8a400b5c7e authored over 11 years ago by Liu Chao <[email protected]>
转移CallBackFunc类型定义至头文件

github.com/lc-soft/LCUI - c645e6e702890765ab09ad7ef0266c9d19cfe5cb authored over 11 years ago by Liu Chao <[email protected]>
解决部件图层排序的问题

github.com/lc-soft/LCUI - d112e1c71f514fc7b31ce18e3f9661be3044d7c3 authored over 11 years ago by Liu Chao <[email protected]>
ALPHA_BLENDING改为ALPHA_BLEND

github.com/lc-soft/LCUI - bc6eb65806dde85d40f2524d6d8d5bd82b0e2e21 authored over 11 years ago by Liu Chao <[email protected]>
修改Graph_Zoom函数的参数列表

github.com/lc-soft/LCUI - c11afbf8d1004486e70faabf131a5985ace60661 authored over 11 years ago by Liu Chao <[email protected]>
添加TextBox_Text_SetDefaultStyle函数

github.com/lc-soft/LCUI - 5508004c5cb9fba8e63d85c77209e383d38327d8 authored over 11 years ago by Liu Chao <[email protected]>
更新.gitignore文件

github.com/lc-soft/LCUI - 09cfa492b5952e1c4d96d1036dc2a41d76d8ffe1 authored over 11 years ago by Liu Chao <[email protected]>
应用ALPHA_BLEND宏

github.com/lc-soft/LCUI - c1faecb6c9de68ca5e1ea76b804c59f47967ef35 authored over 11 years ago by Liu Chao <[email protected]>
修改ALPHA_BLENDING宏,添加其它宏

ALPHA_BLENDING宏改为ALPHA_BLEND,添加RGB_FROM_RGB565、RGB_FROM_RGB555、RGB_FROM_RGB888等宏。

github.com/lc-soft/LCUI - da85850fce832edbbb39298b238731ab1d037680 authored over 11 years ago by Liu Chao <[email protected]>
修改Graph_Mix和Graph_Replace函数

github.com/lc-soft/LCUI - 33d5d2823fdb93e68e85c8ee107dee510f61c26c authored over 11 years ago by Liu Chao <[email protected]>
修改部件的事件处理代码

github.com/lc-soft/LCUI - 34487805df39024a40ef8d981d2450298b6586f6 authored over 11 years ago by Liu Chao <[email protected]>
完善部件的事件处理

github.com/lc-soft/LCUI - 2db6d7d0c401055eb1152c0321a6c5d5aee93ce6 authored over 11 years ago by Liu Chao <[email protected]>
修改Widget_At函数

在未找到符合要求的子部件时会返回NULL,之前是返回容器部件的指针。

github.com/lc-soft/LCUI - c4d71dafe913997742d5c8fb708e61145aff5b24 authored over 11 years ago by Liu Chao <[email protected]>
添加有效性判断

github.com/lc-soft/LCUI - 8ba9116a94b636f10402a44506c8af3b26bb260b authored over 11 years ago by Liu Chao <[email protected]>
修改窗口样式

github.com/lc-soft/LCUI - 8721ae90647a58289d7a6d62fab75154333aba17 authored over 11 years ago by Liu Chao <[email protected]>
update Makefile

github.com/lc-soft/LCUI - d6ceefc3a4bd14d9309cdabde2d737dd5753e4f7 authored over 11 years ago by Liu Chao <[email protected]>
add Geany project file

github.com/lc-soft/LCUI - da83363ad642fe2233dea49def23e280ff21201e authored over 11 years ago by Liu Chao <[email protected]>
add .gitignore

github.com/lc-soft/LCUI - 5c19bf26e5820c7c8b9530e2a98e30648aeaa638 authored over 11 years ago by Liu Chao <[email protected]>
修改部件焦点的设置

github.com/lc-soft/LCUI - f10010c20d271f0a91bba1569a02a3c728e10c99 authored over 11 years ago by Liu Chao <[email protected]>
修改了编译时会出现警告的代码

github.com/lc-soft/LCUI - c9b7d85b7616cfb687e9c1c44ad83ceac75a41b5 authored over 11 years ago by Liu Chao <[email protected]>
修改main函数的参数列表

github.com/lc-soft/LCUI - 4a7a767a56ebf2a76a953791ba5db9d0e9de3c69 authored over 11 years ago by Liu Chao <[email protected]>
解决文本光标闪烁会导致程序崩溃问题

当销毁文本框部件后,LCUI还会继续处理文本光标闪烁,由于没有进行有效性判断,导致数据访问越界。

github.com/lc-soft/LCUI - 91b1bf7526ba088eca38539c7ad4e5845036099a authored over 11 years ago by Liu Chao <[email protected]>
完善部件事件的处理

子部件若没有关联指定ID的事件的函数,则该事件会传给父级部件,直到父级有能够响应该事件的部件,或者没有部件响应它 为止。

github.com/lc-soft/LCUI - 6097bf534f63c9d819d3f21d73e183f28f3ae95d authored over 11 years ago by Liu Chao <[email protected]>
更新LCUI_Graph.c

github.com/lc-soft/LCUI - 922eabbe0ceea067b64e3034a7c0a8830a849e21 authored over 11 years ago by Liu Chao <[email protected]>
添加EVENT_MOUSEMOTION事件处理代码

github.com/lc-soft/LCUI - 97c98a155089d2731c65c40773d8207de97d47b2 authored over 11 years ago by Liu Chao <[email protected]>
修改Widget_ToRelPos函数

之前的Widget_ToRelPos函数,是将全局坐标转换成相对于指定部件所在容器的坐标,现在已经改为转换成相对于指定部件的坐标。

github.com/lc-soft/LCUI - 89d1eb540ce5db3c8215315f22525d55f48fe4d8 authored over 11 years ago by Liu Chao <[email protected]>
修改函数指针参数的定义

github.com/lc-soft/LCUI - fbb8c7d1f6854805e29596911221ab40a4e08da5 authored over 11 years ago by Liu Chao <[email protected]>
更新Widget的事件相关数据定义

github.com/lc-soft/LCUI - 38e69bfda19feb4cd28e31907cf26232af76e156 authored over 11 years ago by Liu Chao <[email protected]>
添加对鼠标右键的支持

github.com/lc-soft/LCUI - 4bebcab0e7b6d19e6de8f9afc80551af25513eca authored over 11 years ago by Liu Chao <[email protected]>
应用GlobalPos_ConvTo_RelativePos函数名的更改

github.com/lc-soft/LCUI - cd0098d18e5145c006da19ddb2fd0d1f1c7ffd31 authored over 11 years ago by Liu Chao <[email protected]>
添加EVENT_MOUSEBUTTON事件

github.com/lc-soft/LCUI - 5a418bd36b6913dc5289d6b009d66041c2a7ae0c authored over 11 years ago by Liu Chao <[email protected]>
初始化LCUIIME_Register函数使用的LCUIString

github.com/lc-soft/LCUI - 4f81f031c2279ce97f5c504713622c839bc16c07 authored over 11 years ago by Liu Chao <[email protected]>
GlobalPos_ConvTo_RelativePos函数更名为Widget_ToRelPos

github.com/lc-soft/LCUI - 6a6175cfd3300b0c18b364f872120393e9c47fc2 authored over 11 years ago by Liu Chao <[email protected]>
加上注释

github.com/lc-soft/LCUI - 03a9477f9c7a0d99e134af88b4d8913231735363 authored over 11 years ago by Liu Chao <[email protected]>
调整宏定义

github.com/lc-soft/LCUI - 266aa76591fd61a47763fc68c51104f3431b53fc authored over 11 years ago by Liu Chao <[email protected]>
更新missing

github.com/lc-soft/LCUI - 9b52eb33497988e1ee6d0a17f96fa11082bb6a79 authored over 11 years ago by Liu Chao <[email protected]>
更新ltman.sh

github.com/lc-soft/LCUI - e9326b8b0ce4695c1007eaf8a421aa7661076193 authored over 11 years ago by Liu Chao <[email protected]>
更新configure相关的文件

github.com/lc-soft/LCUI - 78db8d32ff98ec0345e0e6b0f0958f548756d628 authored over 11 years ago by Liu Chao <[email protected]>
更新depcomp

github.com/lc-soft/LCUI - b56da944847c5e719dfeddb00bec45e57a55162c authored over 11 years ago by Liu Chao <[email protected]>