Skip to content

A simple, zero-dependency property-binding framework.

License

Notifications You must be signed in to change notification settings

trashbyte/binder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Binder

GitHub Workflow Status Crates.io MIT licensed Docs.rs Test Coverage Maintenance Lines of code Libraries.io dependency status for GitHub repo

A simple, zero-dependency property-binding framework. It was originally designed to use imgui-rs without drowning in mutable references to everything and constantly fighting with the borrow checker. It uses internal mutability and runtime borrow checking to avoid lifetime issues. Designed to be fully memory- and thread-safe, although there might be bugs since it's brand-new.

Usage

pub struct PropHaver {
    pub prop: binder::Property<f32>
}
fn use_prop(p: &PropHaver, ui: &imgui::Ui) {
    ui.slider("wow what a cool slider", &mut p.prop.bind());
}

Stability

This thing is brand-new, so expect bugs and/or API-breaking changes in the near future.

License

Binder is licensed under the MIT License.

About

A simple, zero-dependency property-binding framework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published