Commit Graph

14 Commits

Author SHA1 Message Date
Joe Bellus a1686899e5 Fixed thread test 2024-04-19 19:52:34 -04:00
Joe Bellus 5896818dbd Sync feature
The sync feature uses Arc<RwLock<T>> in place of Rc<RefCell<T>> for Res
and State. This allows state and resource objects to be thread safe.

Added threading example

Added threading documentation
2024-04-19 19:43:42 -04:00
Joe Bellus 3b099bfbb0 Readme & CI
Added a project readme and setup CI pipelines for GH Actions.
Pipelines added for user guide publishing and tests.
2024-04-19 15:06:45 -04:00
Joe Bellus 8f8bd96dae Cleaned up old files
Removed plugins and components modules. These may
be added back in, but with a different implementation.
2024-04-19 06:22:56 -04:00
Joe Bellus c3a14d6c33 Documentation
Added documentation to many public functions

Added Codex documentaiton for the project as a whole

Added build pipline for generating codex site
2024-04-19 01:44:24 -04:00
Joe Bellus 6abfc6aa54 Aded doc tests throughout 2024-04-18 15:07:21 -04:00
Joe Bellus 972ddb57ca Stack alignment
Stacks now have an alignment property, which allows them to align their
content.

Horizontal stacks can be aligned Top Bottom Center.

Vertical stacks can be aligned Left Right Center.

This is respected for both Stack::insert and Stack::component.

Alignment expects Stack::insert to contain a single line string, which
is a functional requirement for both Stack::insert and ViewContext::insert.
2024-04-15 13:14:30 -04:00
Joe Bellus 3e50d269e5 Fill functions now support a Color as an argument
Fill functions were modified to support Into<Rune> and
From<Color> was implemented for Rune and Runes. This allows
Passing a color to functions such as View::fill and View::fill_all.
to set the background color.
2024-04-13 00:23:40 -04:00
Joe Bellus 44baee56b0 Added shifting functions for Rect
Added Rect::expand and Rect::translate for conveniently mutating Rects
2024-04-13 00:23:01 -04:00
Joe Bellus 3655f3269e Added handling for modifier keys
Modifier key detection is now available in the keyboard resource
2024-04-13 00:22:40 -04:00
Joe Bellus 82e044a34a Render Signal
App now has a renderer object that can be retrieved to send a render
signal from outside the application.

This is useful for rendering based on operations taking place in other
threads.
2023-12-01 13:20:21 -05:00
Joe Bellus ba7703e4c2 sync commit 2023-09-02 22:46:50 -04:00
Joe Bellus 3388ae4096 doc strings and doc tests 2023-05-29 20:46:21 -04:00
Joe Bellus aaa51179ad refactor 2023-05-29 16:11:04 -04:00