Commit Graph
11 Commits
Author SHA1 Message Date
Liu 7ea167efc5 refactor: redesign CSS Library API 2023-04-01 22:35:26 +08:00
GregoryLiand李刚毅 c44562b45b refactor(paint): migrate to new naming style (#265)
* ib/paint 目录内代码及相关调用代码的重命名

* Revert "ib/paint 目录内代码及相关调用代码的重命名"

This reverts commit 6369a3b7bc.

* lib/paint 目录内代码及相关调用代码的重命名

* 添加 PandaGL 优化文档

* 修改部分命名规范

* - 将paint 中的LCUI_BOOL 更改为 pd_bool 其他地方保持 LCUI_BOOL
- 将 .h 文件中 PandaGL 函数更改为以 pd_ 前缀
- 将 paint 中 graph 更改为 canvas

* 退回 LCUI_StyleValue 与 LCUI_StyleType 的修改

* - 根据使用范围修改 types.h 中 LCUI_BOOL 与 pd_bool
- 回退LCUI_Style、LCUI_StyleRec
- 回退LCUI_Background

* 将 pd_paint_context 修改为 pd_paint_context_t *

* 替换 PDASSIGN

* 修改logger_debug

* 更改logger_error

Co-authored-by: 李刚毅 <gregoryli@foxmail.com>
2023-04-01 22:34:33 +08:00
YDYKand李梓豪 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 5720346749 test: add tests for graphic processing 2021-05-05 22:09:57 +08:00
Liu a4d2f0a84d fix(textlayer): incorrect text line height calculation (#169) 2019-03-17 21:50:00 +08:00
Liu Chao 15c6a00bc7 build: add test programs 2018-03-17 20:09:29 +08:00
Liu Chao d9eb92d76d Improve font data storage and operation method 2017-11-30 21:55:53 +08:00
Liu Chao b35e2068da Clear compiler errors 2017-11-28 23:06:20 +08:00
Liu Chao b2db8ee573 Clear compiler errors 2017-07-03 22:42:05 +08:00
Liu Chao d265a85c59 Add image reader, update image operation functions 2017-02-11 21:49:48 +08:00
Liu Chao a96fb4d3c7 补充测试用例 2016-11-20 18:27:11 +08:00