Commit Graph
207 Commits
Author SHA1 Message Date
Liu 53fe257cae build: config.win.h.in -> config.win32.h.in 2021-05-23 15:16:02 +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 bd08cf73bf build: update dependencies 2020-10-07 21:53:33 +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
Liu 96fbc75400 build(vs2017): rename Win32 to x86 2020-04-11 16:36:58 +08:00
Liu fecd054986 build: update UWP project files 2020-03-01 20:16:50 +08:00
Liu 10805d104e build: update version to 2.0.0 2020-03-01 20:16:44 +08:00
Liu 08ed51cb98 refactor(gui): add widget_shadow.h
BREAKING CHANGE: The widget shadow operation interface has been changed to private
2020-03-01 20:16:36 +08:00
Liu d69fbb0b7f refactor(gui): add widget_background.h
BREAKING CHANGE: The widget background operation interface has been changed to private
2020-03-01 20:16:35 +08:00
Liu 843232efd0 refactor(gui): add widget_border.h
BREAKING CHANGE: The widget border operation interface has been changed to private
2020-03-01 20:16:34 +08:00
Liu 1e57d9dc88 perf(display): OpenMP is enabled only when the render area is large 2020-03-01 20:16:31 +08:00
Liu 3587dacac5 refactor(gui): add widget_hash.c 2020-03-01 20:16:30 +08:00
Liu 4ff0689ab7 test: update tests 2020-03-01 20:16:27 +08:00
Liu b7aadc9d4b refactor(gui): add widget_diff.c 2020-03-01 20:16:26 +08:00
Liu fb4c83930a test: add test_flex_layout 2020-02-16 17:43:53 +08:00
Liu 3cbb246556 feat(gui): add flexible box layout 2020-02-16 17:43:52 +08:00
Liu ae8dc7b32d build(vs): add test_textview_resize project 2020-02-16 17:43:47 +08:00
Liu eab71b05de test: add test_block_layout 2020-02-16 17:43:45 +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
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 778912dcd5 build(vs): update build configuration 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 f9ecdb7fcf refactor: make config.h private 2019-10-07 14:14:31 +08:00
Liu Chao 621d91e33e build: fix make distcheck failed 2019-10-07 14:14:26 +08:00
Liu e246843e22 feat(gui): add canvas widget 2019-10-03 15:22:50 +08:00
Liu 062f713edb build: update vs configuration 2019-06-17 21:57:49 +08:00
Liu 241c6522f7 feat(util): add object wrapper and operation set 2019-06-17 21:57:46 +08:00
Liu 1c89bd9ec7 build: update project configuration 2019-03-10 14:12:45 +08:00
Liu 51eef6837f fix(gui): TextEdit_SetTextW() does not clear the previous content 2019-03-09 15:25:50 +08:00
Liu c49efa8da2 build: update vs project files 2019-03-04 22:48:41 +08:00
Liu cb0612db6e test: add test linkedlist 2019-03-04 22:48:40 +08:00
Liu ac3ac068ba test: add test widget 2019-03-04 22:48:39 +08:00
Liu be06b9360c build: add test_scrollbar project file 2019-03-04 22:48:36 +08:00
Liu f611936490 perf(gui): save classes and status with strlist 2019-03-04 22:48:31 +08:00
Liu c843df1201 feat(util): add strpool 2019-03-04 22:48:30 +08:00
Liu 40d45593a8 test: update layout test 2019-03-04 22:48:30 +08:00
Liu 926684c960 build: update project configuration 2019-03-04 22:48:28 +08:00
Liu 9991545594 refactor(util): move chartset.c file 2019-03-03 21:53:27 +08:00
Liu 2491eece23 build: update x64 build configuration, clear compiler warnings 2019-03-03 21:53:26 +08:00
Liu 8a36c25d58 build: update uwp project configuration 2018-11-20 22:30:14 +08:00
Liu a8ab0faaa8 refactor(gui): split code by category 2018-11-18 22:46:51 +08:00
Liu 366cd3ff37 test: update test_widget_opacity 2018-11-18 22:46:50 +08:00
Liu ec20c9944c feat(util): add OpenUri() 2018-11-18 22:46:50 +08:00
Liu 491992f152 chore(build): update dependencies 2018-11-18 22:46:49 +08:00
Liu feab3c5d71 chore(build): update vs project files 2018-11-11 19:26:03 +08:00
Liu 093a8734c3 chore(build): remove dependencies 2018-10-10 23:00:17 +08:00
Liu Chao d5e162c8c6 feat(builder): <resource> support load xml file 2018-10-01 15:17:56 +08:00