Commit Graph
330 Commits
Author SHA1 Message Date
Liu 38d44608ba build: update Makefile.am 2021-05-24 23:43:58 +08:00
Liu ee2695198b test: fix message color 2021-05-23 15:16:04 +08:00
Liu 31dee2494d fix(gui): the horizontal scroll bar does not work (#219) 2021-05-15 22:50:49 +08:00
Liu 5720346749 test: add tests for graphic processing 2021-05-05 22:09:57 +08:00
Liu aa2b501545 test: add test for absolutely positioned progress bar 2020-10-07 21:53:37 +08:00
Liu 707f88166a test: correct calculation of time 2020-10-07 21:53:34 +08:00
James DuongandJames Duong 1b8c6e6863 feat: add settings api (#191) (#211) (#212)
- Add API for retrieving and modifying global settings
- Utilize this API in the codebase
- Add event for when global settings are changed
- Add event handler for updating the frame rate cap
- Add event handler to notify paint flashing changes
- Add unit tests

Fixes #192

Co-authored-by: James Duong <jduong@dremio.com>

feat: add settings api (#191) (#211) (#212)

Restore and re-implement LCUIDisplay_EnablePaintFlashing.

Fixes #191
2020-07-02 15:22:28 +08:00
James DuongandJames Duong 17d7d86530 test: update to use libtest.h (#197) (#208)
Change tests to use libtest.h as specified in
Issue #197.

Co-authored-by: James Duong <jduong@dremio.com>
2020-06-17 22:31:08 +08:00
Liu 54b423d490 ci(travis): update config file 2020-04-11 14:29:08 +08:00
Liu b93aa2d6fb test: update output 2020-04-06 17:48:41 +08:00
Liu f92477d18b test: ignore param check in libomp (#206) 2020-04-06 17:47:55 +08:00
Liu b19bb61e01 test: ignore possible memory leak in libgomp (#206) 2020-04-06 16:22:58 +08:00
Liu e69804cb45 test: update test_mainloop.c 2020-03-30 22:17:02 +08:00
Vasilyy 6978f468ed fix(mainloop): move out paint event trigger from openmp parallel loop (#204) (#205)
* fix(mainloop): move out paint event trigger from openmp parallel loop (#204)

Signed-off-by: Vasilyy Balyasnyy <v.balyasnyy@gmail.com>

* fix(test): fix mainloop test

 - trigger MOUSEDOWN + MOUSEUP events to push button
 - fix exited flag comparison

Signed-off-by: Vasilyy Balyasnyy <v.balyasnyy@gmail.com>
2020-03-30 09:57:38 +08:00
Liu 3758e21939 test: add test_mainloop.c 2020-03-28 21:19:06 +08:00
Liu 863ea9c070 test: add timing 2020-03-28 21:19:06 +08:00
Liu 8e1f1365c9 fix(gui): invalid area are not added after the widget is destroyed 2020-03-14 15:29:51 +08:00
Liu 090ee41492 test: update test_textview_resize.c 2020-03-01 20:16:51 +08:00
Liu 1c59b64cd4 test: add browser layout test 2020-03-01 20:16:39 +08:00
Liu 298ffa4fd1 feat(display): add LCUIDisplay_EnablePaintFlashing()
BREAKING CHANGE: LCUIDisplay_ShowRectBorder() LCUIDisplay_HideRectBorder() have been removed.
2020-03-01 20:16:38 +08:00
Liu 22a8cc0b1d style: clear compile warnings 2020-03-01 20:16:29 +08:00
Liu 4ff0689ab7 test: update tests 2020-03-01 20:16:27 +08:00
Liu 68a5adbedd test: disable logger 2020-02-16 17:44:01 +08:00
Liu c6d7684770 test: update return value 2020-02-16 17:43:54 +08:00
Liu fb4c83930a test: add test_flex_layout 2020-02-16 17:43:53 +08:00
Liu 07d2911372 feat(css): add flexbox property parser 2020-02-16 17:43:51 +08:00
Liu eab71b05de test: add test_block_layout 2020-02-16 17:43:45 +08:00
Liu 2287f97f1e test: rewrite test_widget_rect.c 2020-02-16 17:43:40 +08:00
Liu 1a50aeca37 refactor(gui): improve widget update processing
BREAKING CHANGE: Some widget operation functions have been renamed or removed.
2020-02-16 17:43:35 +08:00
Liu 09d33abdbe test: add test_widget_event.c 2020-01-19 17:48:26 +08:00
Liu cecb39331a test: update test_render.c 2020-01-19 17:48:23 +08:00
d4yvectorandLiu d8583337fb perf: add OpenMP support for widget rendering (#118) (#189)
* perf: Add OpenMP support for widget rendering (#118)

- Modified src/Makefile.am and added compiler option.
- Modified src/display.c and added preprocessor directives for OpenMP.
- To check whether multithreading is possible, the string is output to standard output. However, I will remove it before merging.

* test: add rendering performance test

* build: add OpenMP configure option

* refactor: change include path of `config.h` and remove printf()

* perf: split the dirty rectangles into four parts for rendering

* fix(linux): missing surface size access method

* refactor(display): update dirty rectangle collection method

* test: update test_render.c

* build: add vs project file for test render

* fix(display): Convert `rects` list to array and follow a "Canonical Loop Form" defined in OpenMP

* refactor: Change where variable i is initialized

* fix: Widget_GenerateHash() not work

* test: improved widget update performance

Co-authored-by: Liu <lc-soft@live.cn>
2020-01-19 17:48:21 +08:00
Liu 45444def49 test: remove unused function declaration 2019-10-07 14:14:44 +08:00
Liu d0048c2e85 test: update box-shadow tests 2019-10-07 14:14:42 +08:00
Liu f36d071bf3 feat: add rounded border rendering (#174) 2019-10-07 14:14:36 +08:00
Liu Chao 9b4841e059 build: add debian directory for build .deb package 2019-10-07 14:14:33 +08:00
Liu Chao 904fc6b6d2 test: exclude test_widget() from test.c 2019-10-07 14:14:32 +08:00
Liu Chao 36d656d664 test: remove png file output 2019-10-07 14:14:32 +08:00
Liu Chao d0dccb8172 test: format code style 2019-10-07 14:14:28 +08:00
Liu Chao 9d85db3b52 test: remove LoggerHandler() 2019-10-07 14:14:26 +08:00
Liu e246843e22 feat(gui): add canvas widget 2019-10-03 15:22:50 +08:00
Liu 173b92fc89 feat(logger): support setting logging level 2019-10-03 15:21:40 +08:00
Liu 4f6a01c29f feat(builder): tag name can be an existing widget type name 2019-10-03 15:21:33 +08:00
Liu 184b7bf1d8 style(test): format code 2019-06-17 21:57:48 +08:00
Liu c9d8ded81e feat(gui): add TextEdit_BindProperty() 2019-06-17 21:57:47 +08:00
Liu 02714bf8fc feat(gui): add Widget_SetText() 2019-06-17 21:57:47 +08:00
Liu 13465c7dcd feat(util): add Object_ToString() 2019-06-17 21:57:47 +08:00
Liu 241c6522f7 feat(util): add object wrapper and operation set 2019-06-17 21:57:46 +08:00
Liu a4d2f0a84d fix(textlayer): incorrect text line height calculation (#169) 2019-03-17 21:50:00 +08:00
Liu 51eef6837f fix(gui): TextEdit_SetTextW() does not clear the previous content 2019-03-09 15:25:50 +08:00