61 Commits
Author SHA1 Message Date
Liu e533853908 feat: update css library
feat(css): add css value definition parser

refactor(css): change the parameter types of css_parse_* functions

refactor(css): migrate to new data types

refactor(css): migrate to new data types (2)

refactor(css): migrate to new data types (3)

test: add valdef test

feat(css): add css_valdef_parser_finish()

refactor(css): split css_library.c

refactor(css): css_data_type.c -> css_data_types.c

fix(css): the parsing error message of sign is not truncated

fix(css): correct initialization of data type library

fix(css): error message should not be empty

feat(css): add css_valdef_to_string()

feat(css): add double bar combinator

feat(css): add double ampersand combinator

feat(css): add curly braces multiplier

feat(css): add brackets combinator parser

docs: update css value matcher section

feat(css): add question mark multiplier

test(css): add test for brackets combinator

docs(css): update libcss_css_value.md

docs: update directory structure

refactor: numberic -> numeric

refactor(css): delete style property parser

refactor: migrate to css property API

docs(css): add css value converter section

feat(css): add css_computed_style_t

refactor(css): rename `css_style` associated identifiers

feat(css): add css_cascade_style()

refactor(css): change type of css_value_matcher_t::value

refactor(css): update args of css_register_property()

refactor(css): move css_computed_style_t

feat(css): update opacity property

feat(css): update z-index property

feat(css): update display property

feat(css): update pointer-events property

feat(css): update flex-wrap property

feat(css): update flex-direction property

feat(css): update flex-grow property

feat(css): update flex-shrink property

feat(css): update align-items property

feat(css): update justify-content property

feat(css): update position property

feat(css): update box-sizing property

feat(css): update align-content property

feat(css): update white-space property

feat(css): update content property

feat(css): update text-align property

feat(css): automatically register new keywords

feat(css): update font-style property

feat(css): update visibility property

feat(css): update border-*-style property

refactor: update css_unit_t definition

feat(css): update border-*-*-radius properties

refactor(css): delete CSS_PERCENTAGE_VALUE

refactor(css): css_cascade_length() -> css_cascade_length_auto()

refactor(css): update enum definitions

feat(css): update border-*-width properties

feat(css): update border-*-color properties

feat(css): add css_array_value_get_length()

feat(css): add border-width shorthand property

feat(css): add border-style shorthand property

feat(css): add border-radius shorthand property

feat(css): add border-color shorthand property

feat(css): add border shorthand property

feat(css): add margin shorthand property

feat(css): add padding shorthand property

feat(css): update size related properties

feat(css): update top, right, bottom, left properties

feat(css): update flex-basis property

feat(css): update line-height property

feat(css): update color property

refactor(css): add css_cascade_bg_border_color()

refactor(css): bits -> keyword_bits

refactor(css): flag -> keyword

refactor(css): update css_color_value_t definition

feat(css): add CSS_COLOR_TRANSPARENT

refactor(css): remove transparent keyword

feat(css): update font-size property

feat(css): update font-family property

feat(css): update background shorthand property

feat(css): update vertical-align property

feat(css): update box-shadow property

feat(css): update the computing of the box-shadow property

 feat(css): update the computing of the background property

feat(css): update the computing of the border property

refactor(css): keyword_bits -> type_bits

refactor(css): enum css_*_e -> uint8_t

feat(css): add absolute size computing

feat(css): add absolute padding computing

feat(css): add absolute margin computing

style(css): format code

feat(css): add top, right, bottom, and left absolute value computing

feat(css): add flex-basis absolute value computing

refactor(ui): replace data type of computed style

feat(ui): update widget background style computing

feat(ui): update widget box-shadow style computing

feat(ui): update widget border style computing

feat(ui): update widget box computing

feat(ui): use tabindex instead of focusable

feat(css): remove focusable property

feat(css): update font-weight property

fix(css): clear compile errors

refactor(ui): adapt to new computed style data structure

refactor(ui): delete ui_widget_box_model_t

fix: clear some compiler warnings

refactor(ui): ui_font_style.c -> ui_text_style.c

feat(ui): remove unnecessary helper functions

fix: clear some compiler warnings

fix(font): correct bitmap cache access

fix(css): correct the key assignment of keywords

fix(css): some memory access errors

fix: missing NULL at the end of font names

fix: clear gcc errors

refactor: clear gcc warnings

fix(css): array subscript is above array bounds

fix(css): incorrect property name memory allocation

fix(css): style parser memory leak

fix(css): prop->valdef memory leak

refactor(css): logger_debug -> DEBUG_MSG

refactor(ui-builder): clear warnings

fix(css): css_properties.list memory leak

fix(css): css_style_link_group_create() memory leak

fix(css): incorrect keyword storage

test(css): correct color_value comparison

test: clear compiler errors

fix(css): correct the return value of css_register_keyword()

fix(css): correct integer type value parsing

chore(css): _DEBUG -> DEBUG

feat(css): add string value parsing

fix(css): correct font-family initial value

test(css): add test_css_computed.c

fix(css): value read error in css_cascade_background()

fix(css): add some missing properties

feat(css): add flex shorthand property

build: update rundir of lcui-css-test

fix(css): font-family parsing error

feat(css): style array value to string

chore(vscode): add compileCommands

fix(css): string value parsing error

fix(css): correct content property initial value

fix(css): the parsed style data is not stored correctly

fix(css): correct cascading of some properties

fix(css): percentage value parsing inccorect

fix(css): <length> should not contain <percentage>

fix(css): css_array_value_duplicate() did not copy the last value

feat(css): add visible keyword

feat(css): cascade each property in order

refactor(css): add style_decl.c

refactor(css): use css_style_decl_t instead of css_style_t

fix(css): incorrect number of resolved values

refactor(css): add css_style.c

feat(css): parse shorthand properties in the parsing phase

refactor(css): add background property parser

refactor(css): add border property parser

refactor(css): css_select_style_decl -> css_find_style_store

refactor(css): add css_select_style_with_cache()

refactor(css): add margin property parser

refactor(css): add padding property parser

refactor(css): add flex property parser

fix(ui): incorrect widget style cascading order

refactor(css): const css_propdef_t* -> css_propdef_t*

refactor(css): update arguments of shorthand property parser

fix(css): incorrect value parsing of shorthand property

fix(css): unexpected truncation while parsing color value

fix(css): correct value matching and style computing

fix(ui): correct css style operation

fix(platform): crash when closing window

refactor(css): delete file prefix

refactor(css): delete style.c

refactor(css): clear compiler warnings

refactor: update directory structure and build configuration

feat(css): add dump functions

fix(css): correct valdef parser cursor operation

fix(css): correct the definition of margin and padding

fix(css): correct flex property parsing and definition

refactor(ui): adjust the use of calculated styles in the layout engine

chore: tests/helloword -> examples/hello

fix(ui): some bugs in block layout

fix(css): correct flex property definition

refactor(ui): simplify the naming of widget style and layout diff API

refactor(ui): update reflow trigger rules

refactor(ui): ui_widget_auto_reflow -> ui_widget_reflow

feat(ui): allow multiple observers to connect to the same widget

refactor(ui): simplify widget update process

refactor(ui): adjust row processing in block layout

refactor(ui): adjust the data structure used in the flexbox layout

fix(ui): correct flex layout algorithm

build: update config
2023-04-01 22:36:07 +08:00
Liu 03f726eba5 docs: add libcss design document 2023-04-01 22:35:26 +08:00
Liu e669e2695b docs: update README.md 2023-04-01 22:35:20 +08:00
Liu 90f595ea20 refactor: redesign platform and ui libraries
feat: redesign the ui library

fixup! feat: redesign the app library

feat: add the ui-server library

fixup! feat: redesign the ui library

fixup! feat: redesign the app library

fixup! feat: redesign the ui library

fixup! feat: redesign the app library

fixup! feat: redesign the app library

feat(ui): add mutation observer

fixup! feat: add the ui-server library

fixup! feat(ui): add mutation observer

feat: migrate to new app and ui libraries

refactor: rename LCUI_Build.h and remove some macros related to malloc

build: copy lib/yutil/include/yutil/*.h into the include/LCUI/util

refactor: lib/app -> lib/platform

refactor: clear compilation errors in Linux

fix: conditional jump depends on uninitialised value

fix(platform): incorrect Linux app driver

feat(platform): add --use-linux-input-event option

fix(platform): correct app driver and data types

fix: test_settings failed

fix: test errors and memcheck errors

fix: undefined reference to 'WinMain'

fix(platform): the error message is not formatted correctly

fix(platform): the mouse position in the mouse event is incorrect

fix(platform): incorrect window size

fix(util): undefined reference to 'logger_log'

refactor: remove the dependency of fontlibrary.h on graph.h

fix: freetype.dll not found

fix(ui): the wheel event was not dispatched correctly

fix(ui-server): the window in the minmaxinfo event is not required

fix: the widget is not connected to the window

fix(ui): mutation observer connection node incorrect

refactor(css): update LCUI_StyleListNode structure

refactor(ui): LCUI_WSTATE_* -> UI_WIDGET_STATE_*

fix: the root widget must have a fixed size for the layout to be correct

fix(ui): root widget did not trigger the ready event

fix(ui): mutation observer not working

fix(ui-server): widget mutation handler is not working

fix: the UI is not redrawn when resizing the window

fix(platform): APP_EVENT_QUIT not working

fix(platform): Incorrect peekmessage usage

test: use the event functions provided by the libui

docs: add README.md for some libraries

feat(ui): add ui logger

fix(ui-server):  `wnd_mutation` is uninitialized

fix(platform): fb app engine not work

build: fix xmake file matching warning

test: update scroll bar test code

build: use system libxml2

build: delete unneeded openMP rules

refactor(platform): remove tick thread

refactor(ui): clear compilation warnings

fix: memory leak bug

test: fix compilation errors

build: add "headers" target

refactor: LCUI_USER -> APP_EVENT_USER

fix: ui image event was not processed

refactor: delete steptimer.h

test: update requires

fix(platform): incorrect window size

refactor: simplify window creation in ui display mode switching

fix(platform): window position not updated

feat(ui-server): set the initial position of the window to center

feat(platform): add APP_EVENT_VISIBILITY_CHANGE

fix(ui-server): the window content is not completely drawn

fix(platform): windows cannot be maximized and minimized

refactor(ui): change image loader API to public

fix: the window size is incorrect in fullscreen mode

refactor(ui): move some types into ui.h
2023-04-01 22:34:36 +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
Liu 5981711194 docs: add design documents 2023-04-01 22:34:28 +08:00
Liu Chao 4e4d211963 docs: update coding style 2018-05-06 16:10:22 +08:00
Liu Chao 17eb2c0797 docs: remove FAQ 2018-05-06 16:01:27 +08:00
Liu Chao ddcef35628 docs(CHANGELOG): move the CHANGELOG file to top dir 2018-03-17 20:22:06 +08:00
Liu Chao 772073b87b docs: add v1.0.0-beta changelog 2018-02-06 21:01:37 +08:00
Liu Chao 18a01d1120 docs: Update README.zh-cn.md 2018-02-06 21:00:52 +08:00
Liu Chao 9887e605f1 Update CodingStyle.zh-cn.md 2017-12-10 16:26:09 +08:00
Liu Chao 0984339b4d Add v1.0-alpha2 changelog 2017-07-10 23:48:17 +08:00
Liu 96a1b63e65 Update CodingStyle.zh-cn.md 2017-07-08 23:07:05 +08:00
Liu a7d22ed6f3 Update CodingStyle.zh-cn.md 2017-07-02 20:21:08 +08:00
Liu Chao 487eb0327d Update CHANGES.md 2017-04-17 22:45:10 +08:00
Liu Chao ce01770a3b 更新 Makefile.am,移动 LICENSE.TXT 到根目录 2016-09-11 12:36:04 +08:00
Liu Chao 4a43a13da6 纠正示例代码 2016-04-17 22:48:32 +08:00
Liu Chao 828af65d22 补充内容 2016-04-17 22:47:34 +08:00
Liu Chao fe7939478b 更新说明文档 2016-04-17 22:41:52 +08:00
Liu Chao 279f5de043 补充几个字 2014-08-08 19:42:47 +08:00
Liu Chao 9cd1967530 继续补充内容 2014-08-08 19:39:09 +08:00
Liu Chao 7704a0e3c9 补充内容 2014-08-08 11:12:43 +08:00
Liu Chao a4104a0851 共用 -> 公用 2014-04-19 17:40:58 +08:00
Liu Chao 278ba9e42a 更新代码风格说明文档的内容 2014-03-31 12:10:08 +08:00
Liu Chao e944af94a6 更新内容 2013-12-22 21:22:08 +08:00
Liu Chao 78e42fd46b Updated CodingStyle.zh-cn.md 2013-12-22 21:16:32 +08:00
lc-soft 5825f95a8f 添加一些内容 2013-11-21 11:56:13 +08:00
Liu Chao 6d12e57e13 改用markdown语法 2013-11-14 12:59:37 +08:00
Liu Chao abfc791604 更新CodingStyle.zh-cn.md 2013-11-14 12:53:17 +08:00
Liu Chao cc6e0b423b 更新FAQ内容 2013-11-14 12:24:32 +08:00
Liu Chao 2c317a264a 改用Markdown语法 2013-11-13 22:25:01 +08:00
Liu Chao 04a371087d 开头大写 2013-11-13 22:24:47 +08:00
Liu Chao 26e5f008ed 更新英文版的更新记录 2013-11-13 22:13:19 +08:00
Liu Chao ee2672d456 还原标题字体大小的调整 2013-11-13 21:21:05 +08:00
Liu Chao 98a5b868fc 调整标题字体大小 2013-11-13 21:19:35 +08:00
Liu Chao 3612b7983a 修改版本更新记录 2013-11-13 21:17:20 +08:00
Liu Chao 0914598440 更新版本变更记录 2013-06-13 19:36:35 +08:00
Liu Chao 1806b7a8ff 添加版本变化 2013-06-12 21:45:24 +08:00
lc-soft 033655313e delete html doc 2013-06-11 19:56:00 +08:00
Liu Chao 931f593bc0 更新项目 2013-03-09 23:30:09 +08:00
Liu Chao 20d023d4b0 添加LCUI 0.13.0版本更新记录 2013-03-09 22:53:32 +08:00
Liu Chao 30dd5dab22 修改设计文档
还未添加任何内容
2013-03-09 21:58:03 +08:00
Liu Chao 70b36275bc 更新CodingStyle文档 2013-03-09 21:57:40 +08:00
Liu Chao 78713a869b 调整内容格式 2013-01-23 14:32:17 +08:00
Liu Chao 303661ebfb 调整内容格式 2013-01-23 14:28:38 +08:00
Liu Chao 5e056b0373 修改内容 2013-01-23 14:26:50 +08:00
Liu Chao 790459f413 添加CodingStyle.zh-cn.md 2013-01-23 14:24:02 +08:00
Liu Chao f2cc611f93 添加LCUI的设计文档,有待完善 2013-01-19 21:33:55 +08:00
Liu Chao 44993f2875 更新中文版的FAQ的内容 2012-12-12 22:22:01 +08:00