https://github.com/thebracket/bracket-ui
A user-interface library for bracket-lib.
https://github.com/thebracket/bracket-ui
Last synced: about 1 year ago
JSON representation
A user-interface library for bracket-lib.
- Host: GitHub
- URL: https://github.com/thebracket/bracket-ui
- Owner: thebracket
- License: mit
- Created: 2021-03-03T15:50:58.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-03T22:08:31.000Z (over 5 years ago)
- Last Synced: 2025-04-06T01:41:19.427Z (about 1 year ago)
- Language: Rust
- Size: 43 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bracket-UI
**Work-in-progress. Not ready for human consumption.**
Bracket-UI is intended to provide a user-interface module for use with [Bracket-lib](https://github.com/amethyst/bracket-lib) projects. It won't do *everything*, but should provide enough functionality to reduce the tedium of UI building.
## What currently works?
You can find examples showing in-development functionality of building layouts and querying elements:
* `minimal` is the "hello world" of bracket-ui.
* `panel_layouts` demonstrates early panel functionality, with absolute and relative placements supported. Nesting panels is encouraged.
* `splits` shows how to use the panel `split_horizontal` and `split_vertical` functions to sub-divide panels into sections.
* `updates` uses the widget query/set system to push UI updates. Currently updates a label, a title, and shows/hides a panel.
* `mouse` is the genesis of mouse support with buttons. Not very far along yet.
The syntax is still pretty wretched. That will be a later target; make it work first, and then make it pretty!
## What doesn't work yet?
A lot of things. Most notably, any sort of user interaction with controls. I'm also hoping for a stylesheet system and a builder pattern to make UI building less painful.
Oh, and I haven't documented *anything* yet. I'd like to get closer to a final interface before I do that.