A wrapper of the Light Versatile Graphic Library (LVGL) for Nim.
- SLD2
- wayland-client?
- xkbcommon?
Install as usual:
$ nimble install https://github.com/mantielero/lvgl.nim
The wrapper seems to work in Linux. There is no sugar yet, so right now is not very friendly.
You can find some working examples.
The wrapper creation is done using nimterop.
It just required:
- Running the file:
src/wrapper/create_wrapper.sh
- Running the file:
src/wrapper/compiles.sh
- Manually creating the file
src/lvgl.nim
-
To reproduce the examples found in the manual.
- To understand
LV_IMG_DECLARE
- To understand
-
How to deal with callbacks?
-
Move it to c2nim and individual files.
-
Make it more friendly
-
What to do with
src/components/lv_conf.h
? -
Multiplatform?
-
To understand better: LV_SIZE_CONTENT (see ex06)
-
Export to webassembly:
-
Using dynamic library or static library
-
Importing .png during the compilation process would be great. This would avoid the need for converting them to other formats or even into C code. This could be achieved with: staticRead.
I added lvgl
as a submodule:
$ git submodule add https://github.com/lvgl/lvgl.git src/components/lvgl