Commit graph

10 commits

Author SHA1 Message Date
MatthewColvin
235d8e043f Convert Lvgl resource manager to recursive mutex to allow re locking in thread.
This helps with creation and getting values and should be safe since it still keeps lvgl on  one thread at a time.

Add OnLvglEvent to UIElement that allows foreasy place for UI Elements  to respond to LVGL events .

Add button  class that can react to being presssed via a  callback function.

Add GetBottom() api to allow easy grabbing of bottom Y coordinate.

use some new stuff in the settings  page to sort test it all out.
2023-10-06 22:11:15 -05:00
MatthewColvin
a19e84ee80 convert single LvglMutex into a Lvgl resource manager that will allow for easy multi threaded use of Lvgl through program. 2023-10-03 20:40:17 -05:00
MatthewColvin
94d75fa4d5 Make Key press sim use SDL event watcher for key event grabbing.
Create a mutex for UI that will help make it possible to run handlers that update UI elements on seprate threads.

its far from perfect but should hold up for now.
2023-10-02 20:41:42 -05:00
MatthewColvin
a44e92ea5d Add boiler plate Key Handling Into the UI code for UI elements 2023-09-29 16:03:51 -05:00
MatthewColvin
f5b7b7bc5f Merge remote-tracking branch 'upstream/abstraction' into UIRefactor 2023-09-17 19:45:03 -05:00
MatthewColvin
52cb2e7ce2 Add background color setter in UIElement
Use main to spawn refacoredBasic UI
Start using new screen manager and
screen concepts
2023-09-16 16:44:15 -05:00
MatthewColvin
1458aa7992 clang format code 2023-09-16 15:34:16 -05:00
MatthewColvin
91d7c9fffc put old UI in UI::Basic namespace 2023-09-16 15:24:48 -05:00
MatthewColvin
64a868a907 rename UIAbstract to UIBase and extend basic UI from it 2023-09-16 14:19:12 -05:00
MatthewColvin
5c6008c491 Add UI abstract and move some files into a basic folder 2023-09-16 12:45:12 -05:00