YDYK and 李梓豪
b46306ddea
refactor(util): add yutil library ( #264 )
...
* add yutil
* add yutil to util.h
* remove util file that same as yutil's
* replace the old header file like '#include <LCUI/util/*>' with yutil's head file
* Replace the old UTIL module associated data structures and function call code
* change timer
* Replace the old UTIL module associated data structures and function call code
* fix
* fix compilation problems(RGB to YUTIL_TEST_RGB)
* turn some useless changes back to origin
* change YUTIL_TEST_RGB back to RGB and add lcui-util/xmake.lua include
* update github action
* update github action
* update github action
* change new yutil func name
* update xmake and change way to include yutil
* update include to <yutil.h>
* update list_for_each to for(list_each())
* fix
* add graph.h to test_*
* add #include <LCUI/graph.h>
* update yutil
* change timer func name and update submodule
* update submodules
* test strncpy
* turn useless code back origin
* fix lose RGB issue
* fix yutil charset
* update yutil
* update yutil
* add yutil_test instead of lcui-util test
* change timer func name style
Co-authored-by: 李梓豪 <yidianyiko@foxmail.com >
2023-04-01 22:34:33 +08:00
Liu
27e92fa80d
build: use __attribute__((visibility("default")))
2023-04-01 22:34:29 +08:00
Liu
20abb19ce3
fix(util): the preset dict types are not exported correctly
2019-12-01 19:44:30 +08:00
Liu
085c15083d
style: clear compiler warnings
2019-10-07 14:14:42 +08:00
Liu Chao
f9ecdb7fcf
refactor: make config.h private
2019-10-07 14:14:31 +08:00
Liu
173b92fc89
feat(logger): support setting logging level
2019-10-03 15:21:40 +08:00
Liu
d8075d974d
feat(graph): add LCUI_OverPixel()
2019-10-03 15:21:29 +08:00
Liu
e53b42c84a
chore: update version
2019-03-10 14:32:31 +08:00
Liu Chao
70660de28d
fix: PACKAGE_VERSION is not defined
2018-09-08 23:25:52 +08:00
Liu
bf9d3277f5
Change license to MIT ( #127 )
2018-02-10 21:53:15 +08:00
Liu Chao
0b26f57c4f
refactor(display): add painter.c
2018-01-30 22:30:30 +08:00
Liu Chao
b7fa783577
Add ENABLE_TOUCH_SUPPORT macro
2017-04-25 22:14:32 +08:00
Liu Chao
96c6abe093
添加宽字符版的日志输出接口
2016-11-27 20:52:19 +08:00
Liu Chao
99200a1ae3
printf() -> LOG()
2016-11-26 23:40:23 +08:00
Liu Chao
72d2636fc5
修改宏命名格式 #31
2016-05-30 23:35:47 +08:00
Liu Chao
78d388d0c9
取消使用 inline,将头文件中的函数定义转移至源文件中
2015-12-03 22:11:27 +08:00
Liu Chao
d1b7dd94ed
添加XML解析支持
...
已经添加XML解析功能的代码, 现在能根据解析结果来创建相应结构的部件树, 但功能有待测试。
2015-11-04 20:19:58 +08:00
Liu Chao
9d1c4e535e
删除按钮部件的代码,其它地方做些小调整
2015-06-30 22:10:03 +08:00
Liu Chao
1ee800dbc0
解决 linux 下的编译问题
2015-06-16 18:31:11 +08:00
Liu Chao
c3b71c90a8
更新头文件
2015-03-08 20:26:22 +08:00
Liu Chao
fa043f1c51
取消使用 LC_CONFIG_H
2014-11-10 14:22:32 +08:00
Liu Chao
b41df16628
删除以前的头文件路径宏定义
2014-10-29 19:51:45 +08:00
Liu Chao
4bec6978fb
移除 LCUI_Queue 的头文件及源文件
...
不再使用 LCUI_Queue,LinkedList 可以替代它。
其它用到 LCUI_Queue 的代码,会在以后进行修改。
2014-07-12 00:34:28 +08:00
Liu Chao
e12f15c1b3
LC_KERNEL_SLEEPER_H -> LC_KERNEL_COND_H
2014-07-02 22:01:44 +08:00
Liu Chao
ce706d8fa3
移除 task.c 及 task.h
2014-06-29 14:52:00 +08:00
Liu Chao
d3a386d96b
添加帧数控制模块
2014-06-07 13:26:16 +08:00
Liu Chao
4a41fdfae6
添加 surface 模块,主要封装 windows 的窗口操作,有待完善
2014-06-02 22:44:32 +08:00
Liu Chao
b4576d88cc
添加 BoxShadow,用于为矩形绘制阴影
2014-04-19 17:41:50 +08:00
Liu Chao
5b1c900431
修改各种模式的宏定义,移除LC_RES_H
2014-04-16 16:01:21 +08:00
Liu Chao
a7f054a60c
加上 widget_paint.h 头文件路径的宏定义
2014-03-31 22:13:47 +08:00
Liu Chao
4ddf1e6b12
让LCUI_Misc.h 包含 linkedlist.h 和 rbtree.h
2014-03-12 10:53:09 +08:00
Liu Chao
4a1ac0486c
移除_CRT_SECURE_NO_WARNINGS宏定义
...
没必要在头文件中定义 _CRT_SECURE_NO_WARNINGS 宏。
2013-12-04 19:09:12 +08:00
Liu Chao
1a02c30008
添加 sleeper.h 头文件路径的宏定义
2013-08-12 13:22:56 +08:00
Liu Chao
37a4b377d7
添加 inline 宏,以使用__inline关键字
2013-08-07 11:49:55 +08:00
Liu Chao
889051fceb
移除 C++头文件 的宏定义
2013-08-05 15:55:51 +08:00
Liu Chao
cf994f4840
添加 LC_MISC_DIRENT_H
...
_CRT_SECURE_NO_WARNINGS 宏用于去除windows平台的部分函数的警告
2013-06-15 20:49:28 +08:00
Liu Chao
58e819de82
删除LCUIMainFunc宏及相关宏
2013-06-01 21:34:09 +08:00
Liu Chao
f80d2fb2f1
添加WinMain函数实现代码,间接调用main函数
...
这样可以在windows系统下
实现直接用main函数实现windows窗口程序,舍弃之前LCUIMainFunc宏封装main和WinMain的方法。
2013-06-01 13:24:14 +08:00
Liu Chao
b638861ae9
win32控制台程序使用main函数
2013-05-17 20:43:56 +08:00
Liu Chao
4a647cbb7f
添加部件消息处理模块
2013-05-16 16:20:27 +08:00
Liu Chao
4282aa7016
添加部件样式处理功能
2013-05-06 22:05:25 +08:00
Liu Chao
ac10902dcf
整理源码目录结构
2013-05-05 19:40:39 +08:00
Liu Chao
f5e76d811f
修改版权声明,LCUI_EXPORT改为LCUI_API
...
在某些代码编辑器下,LCUI_EXPORT会被识别为函数,显示在函数列表里,还会使编辑器不能正常跳转至函数定义处。
经过考虑,决定将LCUI_EXPORT改为LCUI_API,原先的代码:
LCUI_EXPORT(返回值类型) 函数名( 参数列表 )
也更改为:
LCUI_API 返回值 函数名( 参数列表 )
2013-05-03 14:11:11 +08:00
Liu Chao
4a7a767a56
修改main函数的参数列表
2013-04-19 21:30:51 +08:00
Liu Chao
266aa76591
调整宏定义
2013-04-13 15:07:04 +08:00
Liu Chao
d9a82ac11d
调整宏定义的位置
...
在使用LC_CONFIG_H宏时,LC_CONFIG_H宏没有定义,会出现错误。此问题会在在linux环境下出现。解决方法就是调整宏定义的位置至LC_CONFIG_H宏定义之后。
2013-04-13 10:29:16 +08:00
Liu Chao
a4ca7a38eb
天LCUI_InputMethod.h头文件
2013-03-27 21:11:29 +08:00
Liu Chao
373fb0a086
修改LCUIMainFunc宏定义
2013-03-26 21:06:03 +08:00
Liu Chao
18eca18213
添加宏定义以封装main函数
...
LCUI.h里的 宏定义条件判断代码 转移至 LCUI_Build.h。
用宏定义封装main函数,windows下用WinMain,linux下用main,而main函数的参数列表也用宏定义代替,这样就方便多了,不必自己再判断LCUI_BUILD_IN_WIN32宏,定义不同的main函数。
2013-03-24 21:02:49 +08:00
Liu Chao
0f3364657b
更新头文件
2013-03-13 18:26:31 +08:00